Debian Codegraph @

docs/dyn/dfareporting_v3_3.sites.html

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