1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dfareporting_v3_3.html">DCM/DFA Reporting And Trafficking API</a> . <a href="dfareporting_v3_3.sites.html">sites</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#get">get(profileId, id)</a></code></p>
79<p class="firstline">Gets one site by ID.</p>
80<p class="toc_element">
81  <code><a href="#insert">insert(profileId, body)</a></code></p>
82<p class="firstline">Inserts a new site.</p>
83<p class="toc_element">
84  <code><a href="#list">list(profileId, unmappedSite=None, campaignIds=None, acceptsInStreamVideoPlacements=None, pageToken=None, acceptsPublisherPaidPlacements=None, sortOrder=None, acceptsInterstitialPlacements=None, maxResults=None, adWordsSite=None, approved=None, searchString=None, subaccountId=None, directorySiteIds=None, sortField=None, ids=None)</a></code></p>
85<p class="firstline">Retrieves a list of sites, possibly filtered. This method supports paging.</p>
86<p class="toc_element">
87  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
90  <code><a href="#patch">patch(profileId, id, body)</a></code></p>
91<p class="firstline">Updates an existing site. This method supports patch semantics.</p>
92<p class="toc_element">
93  <code><a href="#update">update(profileId, body)</a></code></p>
94<p class="firstline">Updates an existing site.</p>
95<h3>Method Details</h3>
96<div class="method">
97    <code class="details" id="get">get(profileId, id)</code>
98  <pre>Gets one site by ID.
99
100Args:
101  profileId: string, User profile ID associated with this request. (required)
102  id: string, Site ID. (required)
103
104Returns:
105  An object of the form:
106
107    { # Contains properties of a site.
108      "kind": "dfareporting#site", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#site".
109      "subaccountId": "A String", # Subaccount ID of this site. This is a read-only field that can be left blank.
110      "name": "A String", # Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.
111      "videoSettings": { # Video Settings # Default video settings for new placements created under this site. This value will be used to populate the placements.videoSettings field, when no value is specified for the new placement.
112        "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site.
113          "skippable": True or False, # Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.
114          "kind": "dfareporting#siteSkippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteSkippableSetting".
115          "skipOffset": { # Video Offset # Amount of time to play videos served to this site before the skip button should appear. Applicable when skippable is true.
116            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
117            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
118          },
119          "progressOffset": { # Video Offset # Amount of time to play videos served to this site template before counting a view. Applicable when skippable is true.
120            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
121            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
122          },
123        },
124        "kind": "dfareporting#siteVideoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
125        "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this site.
126          "kind": "dfareporting#siteCompanionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteCompanionSetting".
127          "companionsDisabled": True or False, # Whether companions are disabled for this site template.
128          "imageOnly": True or False, # Whether to serve only static images as companions.
129          "enabledSizes": [ # Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.
130            { # Represents the dimensions of ads, placements, creatives, or creative assets.
131              "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
132              "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
133              "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
134              "id": "A String", # ID of this size. This is a read-only, auto-generated field.
135              "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
136            },
137          ],
138        },
139        "orientation": "A String", # Orientation of a site template used for video. This will act as default for new placements created under this site.
140        "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site.
141          "kind": "dfareporting#siteTranscodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteTranscodeSetting".
142          "enabledVideoFormats": [ # Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.
143            42,
144          ],
145        },
146      },
147      "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
148        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
149        "value": "A String", # The value of the dimension.
150        "dimensionName": "A String", # The name of the dimension.
151        "etag": "A String", # The eTag of this response for caching purposes.
152        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
153        "id": "A String", # The ID associated with the value if available.
154      },
155      "siteSettings": { # Site Settings # Site-wide settings.
156        "activeViewOptOut": True or False, # Whether active view creatives are disabled for this site.
157        "videoActiveViewOptOutTemplate": True or False, # Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.
158        "disableNewCookie": True or False, # Whether new cookies are disabled for this site.
159        "tagSetting": { # Tag Settings # Configuration settings for dynamic and image floodlight tags.
160          "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
161          "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
162          "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
163          "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
164        },
165        "vpaidAdapterChoiceTemplate": "A String", # Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).
166            #
167            # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
168        "adBlockingOptOut": True or False, # Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.
169      },
170      "approved": True or False, # Whether this site is approved.
171      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this site. This is a read-only, auto-generated field.
172        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
173        "value": "A String", # The value of the dimension.
174        "dimensionName": "A String", # The name of the dimension.
175        "etag": "A String", # The eTag of this response for caching purposes.
176        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
177        "id": "A String", # The ID associated with the value if available.
178      },
179      "siteContacts": [ # Site contacts.
180        { # Site Contact
181          "firstName": "A String", # First name of this site contact.
182          "title": "A String", # Title or designation of this site contact.
183          "lastName": "A String", # Last name of this site contact.
184          "address": "A String", # Address of this site contact.
185          "email": "A String", # Email address of this site contact. This is a required field.
186          "phone": "A String", # Primary phone number of this site contact.
187          "contactType": "A String", # Site contact type.
188          "id": "A String", # ID of this site contact. This is a read-only, auto-generated field.
189        },
190      ],
191      "keyName": "A String", # Key name of this site. This is a read-only, auto-generated field.
192      "directorySiteId": "A String", # Directory site associated with this site. This is a required field that is read-only after insertion.
193      "id": "A String", # ID of this site. This is a read-only, auto-generated field.
194      "accountId": "A String", # Account ID of this site. This is a read-only field that can be left blank.
195    }</pre>
196</div>
197
198<div class="method">
199    <code class="details" id="insert">insert(profileId, body)</code>
200  <pre>Inserts a new site.
201
202Args:
203  profileId: string, User profile ID associated with this request. (required)
204  body: object, The request body. (required)
205    The object takes the form of:
206
207{ # Contains properties of a site.
208    "kind": "dfareporting#site", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#site".
209    "subaccountId": "A String", # Subaccount ID of this site. This is a read-only field that can be left blank.
210    "name": "A String", # Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.
211    "videoSettings": { # Video Settings # Default video settings for new placements created under this site. This value will be used to populate the placements.videoSettings field, when no value is specified for the new placement.
212      "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site.
213        "skippable": True or False, # Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.
214        "kind": "dfareporting#siteSkippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteSkippableSetting".
215        "skipOffset": { # Video Offset # Amount of time to play videos served to this site before the skip button should appear. Applicable when skippable is true.
216          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
217          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
218        },
219        "progressOffset": { # Video Offset # Amount of time to play videos served to this site template before counting a view. Applicable when skippable is true.
220          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
221          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
222        },
223      },
224      "kind": "dfareporting#siteVideoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
225      "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this site.
226        "kind": "dfareporting#siteCompanionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteCompanionSetting".
227        "companionsDisabled": True or False, # Whether companions are disabled for this site template.
228        "imageOnly": True or False, # Whether to serve only static images as companions.
229        "enabledSizes": [ # Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.
230          { # Represents the dimensions of ads, placements, creatives, or creative assets.
231            "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
232            "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
233            "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
234            "id": "A String", # ID of this size. This is a read-only, auto-generated field.
235            "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
236          },
237        ],
238      },
239      "orientation": "A String", # Orientation of a site template used for video. This will act as default for new placements created under this site.
240      "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site.
241        "kind": "dfareporting#siteTranscodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteTranscodeSetting".
242        "enabledVideoFormats": [ # Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.
243          42,
244        ],
245      },
246    },
247    "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
248      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
249      "value": "A String", # The value of the dimension.
250      "dimensionName": "A String", # The name of the dimension.
251      "etag": "A String", # The eTag of this response for caching purposes.
252      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
253      "id": "A String", # The ID associated with the value if available.
254    },
255    "siteSettings": { # Site Settings # Site-wide settings.
256      "activeViewOptOut": True or False, # Whether active view creatives are disabled for this site.
257      "videoActiveViewOptOutTemplate": True or False, # Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.
258      "disableNewCookie": True or False, # Whether new cookies are disabled for this site.
259      "tagSetting": { # Tag Settings # Configuration settings for dynamic and image floodlight tags.
260        "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
261        "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
262        "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
263        "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
264      },
265      "vpaidAdapterChoiceTemplate": "A String", # Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).
266          #
267          # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
268      "adBlockingOptOut": True or False, # Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.
269    },
270    "approved": True or False, # Whether this site is approved.
271    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this site. This is a read-only, auto-generated field.
272      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
273      "value": "A String", # The value of the dimension.
274      "dimensionName": "A String", # The name of the dimension.
275      "etag": "A String", # The eTag of this response for caching purposes.
276      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
277      "id": "A String", # The ID associated with the value if available.
278    },
279    "siteContacts": [ # Site contacts.
280      { # Site Contact
281        "firstName": "A String", # First name of this site contact.
282        "title": "A String", # Title or designation of this site contact.
283        "lastName": "A String", # Last name of this site contact.
284        "address": "A String", # Address of this site contact.
285        "email": "A String", # Email address of this site contact. This is a required field.
286        "phone": "A String", # Primary phone number of this site contact.
287        "contactType": "A String", # Site contact type.
288        "id": "A String", # ID of this site contact. This is a read-only, auto-generated field.
289      },
290    ],
291    "keyName": "A String", # Key name of this site. This is a read-only, auto-generated field.
292    "directorySiteId": "A String", # Directory site associated with this site. This is a required field that is read-only after insertion.
293    "id": "A String", # ID of this site. This is a read-only, auto-generated field.
294    "accountId": "A String", # Account ID of this site. This is a read-only field that can be left blank.
295  }
296
297
298Returns:
299  An object of the form:
300
301    { # Contains properties of a site.
302      "kind": "dfareporting#site", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#site".
303      "subaccountId": "A String", # Subaccount ID of this site. This is a read-only field that can be left blank.
304      "name": "A String", # Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.
305      "videoSettings": { # Video Settings # Default video settings for new placements created under this site. This value will be used to populate the placements.videoSettings field, when no value is specified for the new placement.
306        "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site.
307          "skippable": True or False, # Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.
308          "kind": "dfareporting#siteSkippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteSkippableSetting".
309          "skipOffset": { # Video Offset # Amount of time to play videos served to this site before the skip button should appear. Applicable when skippable is true.
310            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
311            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
312          },
313          "progressOffset": { # Video Offset # Amount of time to play videos served to this site template before counting a view. Applicable when skippable is true.
314            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
315            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
316          },
317        },
318        "kind": "dfareporting#siteVideoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
319        "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this site.
320          "kind": "dfareporting#siteCompanionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteCompanionSetting".
321          "companionsDisabled": True or False, # Whether companions are disabled for this site template.
322          "imageOnly": True or False, # Whether to serve only static images as companions.
323          "enabledSizes": [ # Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.
324            { # Represents the dimensions of ads, placements, creatives, or creative assets.
325              "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
326              "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
327              "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
328              "id": "A String", # ID of this size. This is a read-only, auto-generated field.
329              "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
330            },
331          ],
332        },
333        "orientation": "A String", # Orientation of a site template used for video. This will act as default for new placements created under this site.
334        "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site.
335          "kind": "dfareporting#siteTranscodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteTranscodeSetting".
336          "enabledVideoFormats": [ # Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.
337            42,
338          ],
339        },
340      },
341      "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
342        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
343        "value": "A String", # The value of the dimension.
344        "dimensionName": "A String", # The name of the dimension.
345        "etag": "A String", # The eTag of this response for caching purposes.
346        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
347        "id": "A String", # The ID associated with the value if available.
348      },
349      "siteSettings": { # Site Settings # Site-wide settings.
350        "activeViewOptOut": True or False, # Whether active view creatives are disabled for this site.
351        "videoActiveViewOptOutTemplate": True or False, # Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.
352        "disableNewCookie": True or False, # Whether new cookies are disabled for this site.
353        "tagSetting": { # Tag Settings # Configuration settings for dynamic and image floodlight tags.
354          "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
355          "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
356          "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
357          "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
358        },
359        "vpaidAdapterChoiceTemplate": "A String", # Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).
360            #
361            # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
362        "adBlockingOptOut": True or False, # Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.
363      },
364      "approved": True or False, # Whether this site is approved.
365      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this site. This is a read-only, auto-generated field.
366        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
367        "value": "A String", # The value of the dimension.
368        "dimensionName": "A String", # The name of the dimension.
369        "etag": "A String", # The eTag of this response for caching purposes.
370        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
371        "id": "A String", # The ID associated with the value if available.
372      },
373      "siteContacts": [ # Site contacts.
374        { # Site Contact
375          "firstName": "A String", # First name of this site contact.
376          "title": "A String", # Title or designation of this site contact.
377          "lastName": "A String", # Last name of this site contact.
378          "address": "A String", # Address of this site contact.
379          "email": "A String", # Email address of this site contact. This is a required field.
380          "phone": "A String", # Primary phone number of this site contact.
381          "contactType": "A String", # Site contact type.
382          "id": "A String", # ID of this site contact. This is a read-only, auto-generated field.
383        },
384      ],
385      "keyName": "A String", # Key name of this site. This is a read-only, auto-generated field.
386      "directorySiteId": "A String", # Directory site associated with this site. This is a required field that is read-only after insertion.
387      "id": "A String", # ID of this site. This is a read-only, auto-generated field.
388      "accountId": "A String", # Account ID of this site. This is a read-only field that can be left blank.
389    }</pre>
390</div>
391
392<div class="method">
393    <code class="details" id="list">list(profileId, unmappedSite=None, campaignIds=None, acceptsInStreamVideoPlacements=None, pageToken=None, acceptsPublisherPaidPlacements=None, sortOrder=None, acceptsInterstitialPlacements=None, maxResults=None, adWordsSite=None, approved=None, searchString=None, subaccountId=None, directorySiteIds=None, sortField=None, ids=None)</code>
394  <pre>Retrieves a list of sites, possibly filtered. This method supports paging.
395
396Args:
397  profileId: string, User profile ID associated with this request. (required)
398  unmappedSite: boolean, Select only sites that have not been mapped to a directory site.
399  campaignIds: string, Select only sites with these campaign IDs. (repeated)
400  acceptsInStreamVideoPlacements: boolean, This search filter is no longer supported and will have no effect on the results returned.
401  pageToken: string, Value of the nextPageToken from the previous result page.
402  acceptsPublisherPaidPlacements: boolean, Select only sites that accept publisher paid placements.
403  sortOrder: string, Order of sorted results.
404    Allowed values
405      ASCENDING -
406      DESCENDING -
407  acceptsInterstitialPlacements: boolean, This search filter is no longer supported and will have no effect on the results returned.
408  maxResults: integer, Maximum number of results to return.
409  adWordsSite: boolean, Select only AdWords sites.
410  approved: boolean, Select only approved sites.
411  searchString: string, Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, "site*2015" will return objects with names like "site June 2015", "site April 2015", or simply "site 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "site" will match objects with name "my site", "site 2015", or simply "site".
412  subaccountId: string, Select only sites with this subaccount ID.
413  directorySiteIds: string, Select only sites with these directory site IDs. (repeated)
414  sortField: string, Field by which to sort the list.
415    Allowed values
416      ID -
417      NAME -
418  ids: string, Select only sites with these IDs. (repeated)
419
420Returns:
421  An object of the form:
422
423    { # Site List Response
424    "nextPageToken": "A String", # Pagination token to be used for the next list operation.
425    "kind": "dfareporting#sitesListResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#sitesListResponse".
426    "sites": [ # Site collection.
427      { # Contains properties of a site.
428          "kind": "dfareporting#site", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#site".
429          "subaccountId": "A String", # Subaccount ID of this site. This is a read-only field that can be left blank.
430          "name": "A String", # Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.
431          "videoSettings": { # Video Settings # Default video settings for new placements created under this site. This value will be used to populate the placements.videoSettings field, when no value is specified for the new placement.
432            "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site.
433              "skippable": True or False, # Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.
434              "kind": "dfareporting#siteSkippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteSkippableSetting".
435              "skipOffset": { # Video Offset # Amount of time to play videos served to this site before the skip button should appear. Applicable when skippable is true.
436                "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
437                "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
438              },
439              "progressOffset": { # Video Offset # Amount of time to play videos served to this site template before counting a view. Applicable when skippable is true.
440                "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
441                "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
442              },
443            },
444            "kind": "dfareporting#siteVideoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
445            "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this site.
446              "kind": "dfareporting#siteCompanionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteCompanionSetting".
447              "companionsDisabled": True or False, # Whether companions are disabled for this site template.
448              "imageOnly": True or False, # Whether to serve only static images as companions.
449              "enabledSizes": [ # Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.
450                { # Represents the dimensions of ads, placements, creatives, or creative assets.
451                  "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
452                  "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
453                  "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
454                  "id": "A String", # ID of this size. This is a read-only, auto-generated field.
455                  "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
456                },
457              ],
458            },
459            "orientation": "A String", # Orientation of a site template used for video. This will act as default for new placements created under this site.
460            "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site.
461              "kind": "dfareporting#siteTranscodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteTranscodeSetting".
462              "enabledVideoFormats": [ # Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.
463                42,
464              ],
465            },
466          },
467          "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
468            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
469            "value": "A String", # The value of the dimension.
470            "dimensionName": "A String", # The name of the dimension.
471            "etag": "A String", # The eTag of this response for caching purposes.
472            "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
473            "id": "A String", # The ID associated with the value if available.
474          },
475          "siteSettings": { # Site Settings # Site-wide settings.
476            "activeViewOptOut": True or False, # Whether active view creatives are disabled for this site.
477            "videoActiveViewOptOutTemplate": True or False, # Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.
478            "disableNewCookie": True or False, # Whether new cookies are disabled for this site.
479            "tagSetting": { # Tag Settings # Configuration settings for dynamic and image floodlight tags.
480              "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
481              "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
482              "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
483              "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
484            },
485            "vpaidAdapterChoiceTemplate": "A String", # Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).
486                #
487                # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
488            "adBlockingOptOut": True or False, # Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.
489          },
490          "approved": True or False, # Whether this site is approved.
491          "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this site. This is a read-only, auto-generated field.
492            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
493            "value": "A String", # The value of the dimension.
494            "dimensionName": "A String", # The name of the dimension.
495            "etag": "A String", # The eTag of this response for caching purposes.
496            "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
497            "id": "A String", # The ID associated with the value if available.
498          },
499          "siteContacts": [ # Site contacts.
500            { # Site Contact
501              "firstName": "A String", # First name of this site contact.
502              "title": "A String", # Title or designation of this site contact.
503              "lastName": "A String", # Last name of this site contact.
504              "address": "A String", # Address of this site contact.
505              "email": "A String", # Email address of this site contact. This is a required field.
506              "phone": "A String", # Primary phone number of this site contact.
507              "contactType": "A String", # Site contact type.
508              "id": "A String", # ID of this site contact. This is a read-only, auto-generated field.
509            },
510          ],
511          "keyName": "A String", # Key name of this site. This is a read-only, auto-generated field.
512          "directorySiteId": "A String", # Directory site associated with this site. This is a required field that is read-only after insertion.
513          "id": "A String", # ID of this site. This is a read-only, auto-generated field.
514          "accountId": "A String", # Account ID of this site. This is a read-only field that can be left blank.
515        },
516    ],
517  }</pre>
518</div>
519
520<div class="method">
521    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
522  <pre>Retrieves the next page of results.
523
524Args:
525  previous_request: The request for the previous page. (required)
526  previous_response: The response from the request for the previous page. (required)
527
528Returns:
529  A request object that you can call 'execute()' on to request the next
530  page. Returns None if there are no more items in the collection.
531    </pre>
532</div>
533
534<div class="method">
535    <code class="details" id="patch">patch(profileId, id, body)</code>
536  <pre>Updates an existing site. This method supports patch semantics.
537
538Args:
539  profileId: string, User profile ID associated with this request. (required)
540  id: string, Site ID. (required)
541  body: object, The request body. (required)
542    The object takes the form of:
543
544{ # Contains properties of a site.
545    "kind": "dfareporting#site", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#site".
546    "subaccountId": "A String", # Subaccount ID of this site. This is a read-only field that can be left blank.
547    "name": "A String", # Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.
548    "videoSettings": { # Video Settings # Default video settings for new placements created under this site. This value will be used to populate the placements.videoSettings field, when no value is specified for the new placement.
549      "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site.
550        "skippable": True or False, # Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.
551        "kind": "dfareporting#siteSkippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteSkippableSetting".
552        "skipOffset": { # Video Offset # Amount of time to play videos served to this site before the skip button should appear. Applicable when skippable is true.
553          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
554          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
555        },
556        "progressOffset": { # Video Offset # Amount of time to play videos served to this site template before counting a view. Applicable when skippable is true.
557          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
558          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
559        },
560      },
561      "kind": "dfareporting#siteVideoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
562      "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this site.
563        "kind": "dfareporting#siteCompanionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteCompanionSetting".
564        "companionsDisabled": True or False, # Whether companions are disabled for this site template.
565        "imageOnly": True or False, # Whether to serve only static images as companions.
566        "enabledSizes": [ # Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.
567          { # Represents the dimensions of ads, placements, creatives, or creative assets.
568            "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
569            "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
570            "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
571            "id": "A String", # ID of this size. This is a read-only, auto-generated field.
572            "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
573          },
574        ],
575      },
576      "orientation": "A String", # Orientation of a site template used for video. This will act as default for new placements created under this site.
577      "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site.
578        "kind": "dfareporting#siteTranscodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteTranscodeSetting".
579        "enabledVideoFormats": [ # Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.
580          42,
581        ],
582      },
583    },
584    "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
585      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
586      "value": "A String", # The value of the dimension.
587      "dimensionName": "A String", # The name of the dimension.
588      "etag": "A String", # The eTag of this response for caching purposes.
589      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
590      "id": "A String", # The ID associated with the value if available.
591    },
592    "siteSettings": { # Site Settings # Site-wide settings.
593      "activeViewOptOut": True or False, # Whether active view creatives are disabled for this site.
594      "videoActiveViewOptOutTemplate": True or False, # Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.
595      "disableNewCookie": True or False, # Whether new cookies are disabled for this site.
596      "tagSetting": { # Tag Settings # Configuration settings for dynamic and image floodlight tags.
597        "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
598        "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
599        "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
600        "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
601      },
602      "vpaidAdapterChoiceTemplate": "A String", # Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).
603          #
604          # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
605      "adBlockingOptOut": True or False, # Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.
606    },
607    "approved": True or False, # Whether this site is approved.
608    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this site. This is a read-only, auto-generated field.
609      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
610      "value": "A String", # The value of the dimension.
611      "dimensionName": "A String", # The name of the dimension.
612      "etag": "A String", # The eTag of this response for caching purposes.
613      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
614      "id": "A String", # The ID associated with the value if available.
615    },
616    "siteContacts": [ # Site contacts.
617      { # Site Contact
618        "firstName": "A String", # First name of this site contact.
619        "title": "A String", # Title or designation of this site contact.
620        "lastName": "A String", # Last name of this site contact.
621        "address": "A String", # Address of this site contact.
622        "email": "A String", # Email address of this site contact. This is a required field.
623        "phone": "A String", # Primary phone number of this site contact.
624        "contactType": "A String", # Site contact type.
625        "id": "A String", # ID of this site contact. This is a read-only, auto-generated field.
626      },
627    ],
628    "keyName": "A String", # Key name of this site. This is a read-only, auto-generated field.
629    "directorySiteId": "A String", # Directory site associated with this site. This is a required field that is read-only after insertion.
630    "id": "A String", # ID of this site. This is a read-only, auto-generated field.
631    "accountId": "A String", # Account ID of this site. This is a read-only field that can be left blank.
632  }
633
634
635Returns:
636  An object of the form:
637
638    { # Contains properties of a site.
639      "kind": "dfareporting#site", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#site".
640      "subaccountId": "A String", # Subaccount ID of this site. This is a read-only field that can be left blank.
641      "name": "A String", # Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.
642      "videoSettings": { # Video Settings # Default video settings for new placements created under this site. This value will be used to populate the placements.videoSettings field, when no value is specified for the new placement.
643        "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site.
644          "skippable": True or False, # Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.
645          "kind": "dfareporting#siteSkippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteSkippableSetting".
646          "skipOffset": { # Video Offset # Amount of time to play videos served to this site before the skip button should appear. Applicable when skippable is true.
647            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
648            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
649          },
650          "progressOffset": { # Video Offset # Amount of time to play videos served to this site template before counting a view. Applicable when skippable is true.
651            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
652            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
653          },
654        },
655        "kind": "dfareporting#siteVideoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
656        "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this site.
657          "kind": "dfareporting#siteCompanionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteCompanionSetting".
658          "companionsDisabled": True or False, # Whether companions are disabled for this site template.
659          "imageOnly": True or False, # Whether to serve only static images as companions.
660          "enabledSizes": [ # Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.
661            { # Represents the dimensions of ads, placements, creatives, or creative assets.
662              "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
663              "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
664              "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
665              "id": "A String", # ID of this size. This is a read-only, auto-generated field.
666              "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
667            },
668          ],
669        },
670        "orientation": "A String", # Orientation of a site template used for video. This will act as default for new placements created under this site.
671        "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site.
672          "kind": "dfareporting#siteTranscodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteTranscodeSetting".
673          "enabledVideoFormats": [ # Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.
674            42,
675          ],
676        },
677      },
678      "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
679        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
680        "value": "A String", # The value of the dimension.
681        "dimensionName": "A String", # The name of the dimension.
682        "etag": "A String", # The eTag of this response for caching purposes.
683        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
684        "id": "A String", # The ID associated with the value if available.
685      },
686      "siteSettings": { # Site Settings # Site-wide settings.
687        "activeViewOptOut": True or False, # Whether active view creatives are disabled for this site.
688        "videoActiveViewOptOutTemplate": True or False, # Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.
689        "disableNewCookie": True or False, # Whether new cookies are disabled for this site.
690        "tagSetting": { # Tag Settings # Configuration settings for dynamic and image floodlight tags.
691          "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
692          "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
693          "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
694          "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
695        },
696        "vpaidAdapterChoiceTemplate": "A String", # Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).
697            #
698            # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
699        "adBlockingOptOut": True or False, # Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.
700      },
701      "approved": True or False, # Whether this site is approved.
702      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this site. This is a read-only, auto-generated field.
703        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
704        "value": "A String", # The value of the dimension.
705        "dimensionName": "A String", # The name of the dimension.
706        "etag": "A String", # The eTag of this response for caching purposes.
707        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
708        "id": "A String", # The ID associated with the value if available.
709      },
710      "siteContacts": [ # Site contacts.
711        { # Site Contact
712          "firstName": "A String", # First name of this site contact.
713          "title": "A String", # Title or designation of this site contact.
714          "lastName": "A String", # Last name of this site contact.
715          "address": "A String", # Address of this site contact.
716          "email": "A String", # Email address of this site contact. This is a required field.
717          "phone": "A String", # Primary phone number of this site contact.
718          "contactType": "A String", # Site contact type.
719          "id": "A String", # ID of this site contact. This is a read-only, auto-generated field.
720        },
721      ],
722      "keyName": "A String", # Key name of this site. This is a read-only, auto-generated field.
723      "directorySiteId": "A String", # Directory site associated with this site. This is a required field that is read-only after insertion.
724      "id": "A String", # ID of this site. This is a read-only, auto-generated field.
725      "accountId": "A String", # Account ID of this site. This is a read-only field that can be left blank.
726    }</pre>
727</div>
728
729<div class="method">
730    <code class="details" id="update">update(profileId, body)</code>
731  <pre>Updates an existing site.
732
733Args:
734  profileId: string, User profile ID associated with this request. (required)
735  body: object, The request body. (required)
736    The object takes the form of:
737
738{ # Contains properties of a site.
739    "kind": "dfareporting#site", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#site".
740    "subaccountId": "A String", # Subaccount ID of this site. This is a read-only field that can be left blank.
741    "name": "A String", # Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.
742    "videoSettings": { # Video Settings # Default video settings for new placements created under this site. This value will be used to populate the placements.videoSettings field, when no value is specified for the new placement.
743      "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site.
744        "skippable": True or False, # Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.
745        "kind": "dfareporting#siteSkippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteSkippableSetting".
746        "skipOffset": { # Video Offset # Amount of time to play videos served to this site before the skip button should appear. Applicable when skippable is true.
747          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
748          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
749        },
750        "progressOffset": { # Video Offset # Amount of time to play videos served to this site template before counting a view. Applicable when skippable is true.
751          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
752          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
753        },
754      },
755      "kind": "dfareporting#siteVideoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
756      "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this site.
757        "kind": "dfareporting#siteCompanionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteCompanionSetting".
758        "companionsDisabled": True or False, # Whether companions are disabled for this site template.
759        "imageOnly": True or False, # Whether to serve only static images as companions.
760        "enabledSizes": [ # Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.
761          { # Represents the dimensions of ads, placements, creatives, or creative assets.
762            "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
763            "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
764            "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
765            "id": "A String", # ID of this size. This is a read-only, auto-generated field.
766            "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
767          },
768        ],
769      },
770      "orientation": "A String", # Orientation of a site template used for video. This will act as default for new placements created under this site.
771      "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site.
772        "kind": "dfareporting#siteTranscodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteTranscodeSetting".
773        "enabledVideoFormats": [ # Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.
774          42,
775        ],
776      },
777    },
778    "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
779      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
780      "value": "A String", # The value of the dimension.
781      "dimensionName": "A String", # The name of the dimension.
782      "etag": "A String", # The eTag of this response for caching purposes.
783      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
784      "id": "A String", # The ID associated with the value if available.
785    },
786    "siteSettings": { # Site Settings # Site-wide settings.
787      "activeViewOptOut": True or False, # Whether active view creatives are disabled for this site.
788      "videoActiveViewOptOutTemplate": True or False, # Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.
789      "disableNewCookie": True or False, # Whether new cookies are disabled for this site.
790      "tagSetting": { # Tag Settings # Configuration settings for dynamic and image floodlight tags.
791        "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
792        "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
793        "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
794        "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
795      },
796      "vpaidAdapterChoiceTemplate": "A String", # Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).
797          #
798          # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
799      "adBlockingOptOut": True or False, # Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.
800    },
801    "approved": True or False, # Whether this site is approved.
802    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this site. This is a read-only, auto-generated field.
803      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
804      "value": "A String", # The value of the dimension.
805      "dimensionName": "A String", # The name of the dimension.
806      "etag": "A String", # The eTag of this response for caching purposes.
807      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
808      "id": "A String", # The ID associated with the value if available.
809    },
810    "siteContacts": [ # Site contacts.
811      { # Site Contact
812        "firstName": "A String", # First name of this site contact.
813        "title": "A String", # Title or designation of this site contact.
814        "lastName": "A String", # Last name of this site contact.
815        "address": "A String", # Address of this site contact.
816        "email": "A String", # Email address of this site contact. This is a required field.
817        "phone": "A String", # Primary phone number of this site contact.
818        "contactType": "A String", # Site contact type.
819        "id": "A String", # ID of this site contact. This is a read-only, auto-generated field.
820      },
821    ],
822    "keyName": "A String", # Key name of this site. This is a read-only, auto-generated field.
823    "directorySiteId": "A String", # Directory site associated with this site. This is a required field that is read-only after insertion.
824    "id": "A String", # ID of this site. This is a read-only, auto-generated field.
825    "accountId": "A String", # Account ID of this site. This is a read-only field that can be left blank.
826  }
827
828
829Returns:
830  An object of the form:
831
832    { # Contains properties of a site.
833      "kind": "dfareporting#site", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#site".
834      "subaccountId": "A String", # Subaccount ID of this site. This is a read-only field that can be left blank.
835      "name": "A String", # Name of this site.This is a required field. Must be less than 128 characters long. If this site is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this site is a top-level site, and the name must be unique among top-level sites of the same account.
836      "videoSettings": { # Video Settings # Default video settings for new placements created under this site. This value will be used to populate the placements.videoSettings field, when no value is specified for the new placement.
837        "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this site. This will act as default for new placements created under this site.
838          "skippable": True or False, # Whether the user can skip creatives served to this site. This will act as default for new placements created under this site.
839          "kind": "dfareporting#siteSkippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteSkippableSetting".
840          "skipOffset": { # Video Offset # Amount of time to play videos served to this site before the skip button should appear. Applicable when skippable is true.
841            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
842            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
843          },
844          "progressOffset": { # Video Offset # Amount of time to play videos served to this site template before counting a view. Applicable when skippable is true.
845            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
846            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
847          },
848        },
849        "kind": "dfareporting#siteVideoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteVideoSettings".
850        "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this site.
851          "kind": "dfareporting#siteCompanionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteCompanionSetting".
852          "companionsDisabled": True or False, # Whether companions are disabled for this site template.
853          "imageOnly": True or False, # Whether to serve only static images as companions.
854          "enabledSizes": [ # Whitelist of companion sizes to be served via this site template. Set this list to null or empty to serve all companion sizes.
855            { # Represents the dimensions of ads, placements, creatives, or creative assets.
856              "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
857              "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
858              "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
859              "id": "A String", # ID of this size. This is a read-only, auto-generated field.
860              "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
861            },
862          ],
863        },
864        "orientation": "A String", # Orientation of a site template used for video. This will act as default for new placements created under this site.
865        "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this site. This will act as default for new placements created under this site.
866          "kind": "dfareporting#siteTranscodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#siteTranscodeSetting".
867          "enabledVideoFormats": [ # Whitelist of video formats to be served to this site template. Set this list to null or empty to serve all video formats.
868            42,
869          ],
870        },
871      },
872      "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
873        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
874        "value": "A String", # The value of the dimension.
875        "dimensionName": "A String", # The name of the dimension.
876        "etag": "A String", # The eTag of this response for caching purposes.
877        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
878        "id": "A String", # The ID associated with the value if available.
879      },
880      "siteSettings": { # Site Settings # Site-wide settings.
881        "activeViewOptOut": True or False, # Whether active view creatives are disabled for this site.
882        "videoActiveViewOptOutTemplate": True or False, # Whether Verification and ActiveView for in-stream video creatives are disabled by default for new placements created under this site. This value will be used to populate the placement.videoActiveViewOptOut field, when no value is specified for the new placement.
883        "disableNewCookie": True or False, # Whether new cookies are disabled for this site.
884        "tagSetting": { # Tag Settings # Configuration settings for dynamic and image floodlight tags.
885          "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
886          "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
887          "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
888          "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
889        },
890        "vpaidAdapterChoiceTemplate": "A String", # Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).
891            #
892            # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
893        "adBlockingOptOut": True or False, # Whether this site opts out of ad blocking. When true, ad blocking is disabled for all placements under the site, regardless of the individual placement settings. When false, the campaign and placement settings take effect.
894      },
895      "approved": True or False, # Whether this site is approved.
896      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this site. This is a read-only, auto-generated field.
897        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
898        "value": "A String", # The value of the dimension.
899        "dimensionName": "A String", # The name of the dimension.
900        "etag": "A String", # The eTag of this response for caching purposes.
901        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
902        "id": "A String", # The ID associated with the value if available.
903      },
904      "siteContacts": [ # Site contacts.
905        { # Site Contact
906          "firstName": "A String", # First name of this site contact.
907          "title": "A String", # Title or designation of this site contact.
908          "lastName": "A String", # Last name of this site contact.
909          "address": "A String", # Address of this site contact.
910          "email": "A String", # Email address of this site contact. This is a required field.
911          "phone": "A String", # Primary phone number of this site contact.
912          "contactType": "A String", # Site contact type.
913          "id": "A String", # ID of this site contact. This is a read-only, auto-generated field.
914        },
915      ],
916      "keyName": "A String", # Key name of this site. This is a read-only, auto-generated field.
917      "directorySiteId": "A String", # Directory site associated with this site. This is a required field that is read-only after insertion.
918      "id": "A String", # ID of this site. This is a read-only, auto-generated field.
919      "accountId": "A String", # Account ID of this site. This is a read-only field that can be left blank.
920    }</pre>
921</div>
922
923</body></html>