blob: 038cfc9e1e93573a00c9e0366c40097f5587d9e5 [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="adexchangebuyer2_v2beta1.html">Ad Exchange Buyer API II</a> . <a href="adexchangebuyer2_v2beta1.accounts.html">accounts</a> . <a href="adexchangebuyer2_v2beta1.accounts.creatives.html">creatives</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="adexchangebuyer2_v2beta1.accounts.creatives.dealAssociations.html">dealAssociations()</a></code>
79</p>
80<p class="firstline">Returns the dealAssociations Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#create">create(accountId, body=None, duplicateIdMode=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040084<p class="firstline">Creates a creative.</p>
85<p class="toc_element">
86 <code><a href="#get">get(accountId, creativeId, x__xgafv=None)</a></code></p>
87<p class="firstline">Gets a creative.</p>
88<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070089 <code><a href="#list">list(accountId, pageToken=None, pageSize=None, query=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040090<p class="firstline">Lists creatives.</p>
91<p class="toc_element">
92 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
93<p class="firstline">Retrieves the next page of results.</p>
94<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095 <code><a href="#stopWatching">stopWatching(accountId, creativeId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040096<p class="firstline">Stops watching a creative. Will stop push notifications being sent to the</p>
97<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070098 <code><a href="#update">update(accountId, creativeId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040099<p class="firstline">Updates a creative.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#watch">watch(accountId, creativeId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400102<p class="firstline">Watches a creative. Will result in push notifications being sent to the</p>
103<h3>Method Details</h3>
104<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code class="details" id="create">create(accountId, body=None, duplicateIdMode=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400106 <pre>Creates a creative.
107
108Args:
109 accountId: string, The account that this creative belongs to.
110Can be used to filter the response of the
111creatives.list
112method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400114 The object takes the form of:
115
116{ # A creative and its classification data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700117 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
118 &quot;A String&quot;,
119 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
123 # mapping of provider ID to provided name, a privacy policy URL, and a list
124 # of domains which can be attributed to the provider.
125 #
126 # If the creative contains provider IDs that are outside of those listed in
127 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
128 # field on the (Google bid
129 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
130 # and the
131 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
132 # field on the (OpenRTB
133 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
134 # and a bid is submitted with that creative for an impression that will
135 # serve to an EEA user, the bid will be filtered before the auction.
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700138 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider.
139 #
140 # If true for a given creative, any bid submitted with that creative for an
141 # impression that will serve to an EEA user will be filtered before the
142 # auction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700143 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700144 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is
145 # arbitrary. The codes are 2 or 5 characters and are documented at
146 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
147 &quot;A String&quot;,
148 ],
149 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
150 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
151 &quot;A String&quot;,
152 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400154 # Can be used to filter the response of the
155 # creatives.list
156 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700157 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
158 &quot;A String&quot;,
159 ],
160 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to.
161 # Can be used to filter the response of the
162 # creatives.list
163 # method.
164 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative.
166 # If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400167 # serving_restrictions will also exist. Note
168 # that this may be nuanced with other contextual restrictions, in which case,
169 # it may be preferable to read from serving_restrictions directly.
170 # Can be used to filter the response of the
171 # creatives.list
172 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700173 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative.
174 # Can be used to filter the response of the
175 # creatives.list
176 # method.
177 &quot;A String&quot;,
178 ],
179 &quot;version&quot;: 42, # Output only. The version of this creative.
180 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any.
181 # See the ad-sensitive-categories.txt file in the technical documentation for
182 # a list of IDs. You should use these IDs along with the
183 # excluded-sensitive-category field in the bid request to filter your bids.
184 42,
185 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700186 &quot;native&quot;: { # Native content for a creative. # A native creative.
187 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700188 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, # A large image.
189 # so long as the aspect ratio is preserved.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700190 &quot;width&quot;: 42, # Image width in pixels.
191 &quot;height&quot;: 42, # Image height in pixels.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700192 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700193 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700194 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
195 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser&#x27;s logo.
196 # so long as the aspect ratio is preserved.
197 &quot;width&quot;: 42, # Image width in pixels.
198 &quot;height&quot;: 42, # Image height in pixels.
199 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
200 },
201 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
202 # so long as the aspect ratio is preserved.
203 &quot;width&quot;: 42, # Image width in pixels.
204 &quot;height&quot;: 42, # Image height in pixels.
205 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
206 },
207 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700208 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700209 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
210 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
211 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
212 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
213 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
214 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700215 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700216 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
217 &quot;A String&quot;,
218 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
220 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700221 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700222 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative.
223 # If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in
224 # serving_restrictions will also exist. Note
225 # that this may be nuanced with other contextual restrictions, in which case,
226 # it may be preferable to read from serving_restrictions directly.
227 # Can be used to filter the response of the
228 # creatives.list
229 # method.
230 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative.
231 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
232 # for possible values.
233 42,
234 ],
235 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any.
236 # See the ad-product-categories.txt file in the technical documentation
237 # for a list of IDs.
238 42,
239 ],
240 &quot;video&quot;: { # Video content for a creative. # A video creative.
241 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad.
242 # This document should conform to the VAST 2.0 or 3.0 standard.
243 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
244 },
245 &quot;servingRestrictions&quot;: [ # Output only. The granular status of this ad in specific contexts.
246 # A context here relates to where something ultimately serves (for example,
247 # a physical location, a platform, an HTTPS vs HTTP request, or the type
248 # of auction).
249 { # Output only. A representation of the status of an ad in a
250 # specific context. A context here relates to where something ultimately serves
251 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
252 # or the type of auction).
253 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction.
254 # Only present if status=DISAPPROVED.
255 # Can be used to filter the response of the
256 # creatives.list
257 # method.
258 # Deprecated; please use
259 # disapproval
260 # field instead.
261 { # Output only. The reason and details for a disapproval.
262 &quot;details&quot;: [ # Additional details about the reason for disapproval.
263 &quot;A String&quot;,
264 ],
265 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
266 },
267 ],
268 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been
269 # explicitly disapproved or is pending review).
270 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
271 # Only present if status=DISAPPROVED.
272 # Can be used to filter the response of the
273 # creatives.list
274 # method.
275 &quot;details&quot;: [ # Additional details about the reason for disapproval.
276 &quot;A String&quot;,
277 ],
278 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
279 },
280 &quot;contexts&quot;: [ # The contexts for the restriction.
281 { # The serving context for this restriction.
282 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
283 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
284 &quot;A String&quot;,
285 ],
286 },
287 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
288 &quot;platforms&quot;: [ # The platforms this restriction applies to.
289 &quot;A String&quot;,
290 ],
291 },
292 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
293 # location.
294 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
295 # Please refer to the
296 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
297 # file for different geo criteria IDs.
298 42,
299 ],
300 },
301 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
302 &quot;appTypes&quot;: [ # The app types this restriction applies to.
303 &quot;A String&quot;,
304 ],
305 },
306 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
307 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
308 &quot;securities&quot;: [ # The security types in this context.
309 &quot;A String&quot;,
310 ],
311 },
312 },
313 ],
314 },
315 ],
316 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
317 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
318 &quot;A String&quot;,
319 ],
320 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
321 { # Output only. Shows any corrections that were applied to this creative.
322 &quot;details&quot;: [ # Additional details about what was corrected.
323 &quot;A String&quot;,
324 ],
325 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
326 &quot;contexts&quot;: [ # The contexts for the correction.
327 { # The serving context for this restriction.
328 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
329 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
330 &quot;A String&quot;,
331 ],
332 },
333 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
334 &quot;platforms&quot;: [ # The platforms this restriction applies to.
335 &quot;A String&quot;,
336 ],
337 },
338 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
339 # location.
340 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
341 # Please refer to the
342 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
343 # file for different geo criteria IDs.
344 42,
345 ],
346 },
347 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
348 &quot;appTypes&quot;: [ # The app types this restriction applies to.
349 &quot;A String&quot;,
350 ],
351 },
352 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
353 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
354 &quot;securities&quot;: [ # The security types in this context.
355 &quot;A String&quot;,
356 ],
357 },
358 },
359 ],
360 },
361 ],
362 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
363 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
364 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
365 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
366 },
367 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400368}
369
370 duplicateIdMode: string, Indicates if multiple creatives can share an ID or not. Default is
371NO_DUPLICATES (one ID per creative).
372 x__xgafv: string, V1 error format.
373 Allowed values
374 1 - v1 error format
375 2 - v2 error format
376
377Returns:
378 An object of the form:
379
380 { # A creative and its classification data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700381 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
382 &quot;A String&quot;,
383 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700386 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
387 # mapping of provider ID to provided name, a privacy policy URL, and a list
388 # of domains which can be attributed to the provider.
389 #
390 # If the creative contains provider IDs that are outside of those listed in
391 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
392 # field on the (Google bid
393 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
394 # and the
395 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
396 # field on the (OpenRTB
397 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
398 # and a bid is submitted with that creative for an impression that will
399 # serve to an EEA user, the bid will be filtered before the auction.
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700401 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700402 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider.
403 #
404 # If true for a given creative, any bid submitted with that creative for an
405 # impression that will serve to an EEA user will be filtered before the
406 # auction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700407 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700408 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is
409 # arbitrary. The codes are 2 or 5 characters and are documented at
410 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
411 &quot;A String&quot;,
412 ],
413 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
414 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
415 &quot;A String&quot;,
416 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700417 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400418 # Can be used to filter the response of the
419 # creatives.list
420 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700421 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
422 &quot;A String&quot;,
423 ],
424 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to.
425 # Can be used to filter the response of the
426 # creatives.list
427 # method.
428 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
Bu Sun Kim65020912020-05-20 12:08:20 -0700429 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative.
430 # If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400431 # serving_restrictions will also exist. Note
432 # that this may be nuanced with other contextual restrictions, in which case,
433 # it may be preferable to read from serving_restrictions directly.
434 # Can be used to filter the response of the
435 # creatives.list
436 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700437 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative.
438 # Can be used to filter the response of the
439 # creatives.list
440 # method.
441 &quot;A String&quot;,
442 ],
443 &quot;version&quot;: 42, # Output only. The version of this creative.
444 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any.
445 # See the ad-sensitive-categories.txt file in the technical documentation for
446 # a list of IDs. You should use these IDs along with the
447 # excluded-sensitive-category field in the bid request to filter your bids.
448 42,
449 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700450 &quot;native&quot;: { # Native content for a creative. # A native creative.
451 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700452 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, # A large image.
453 # so long as the aspect ratio is preserved.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700454 &quot;width&quot;: 42, # Image width in pixels.
455 &quot;height&quot;: 42, # Image height in pixels.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700456 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700457 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700458 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
459 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser&#x27;s logo.
460 # so long as the aspect ratio is preserved.
461 &quot;width&quot;: 42, # Image width in pixels.
462 &quot;height&quot;: 42, # Image height in pixels.
463 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
464 },
465 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
466 # so long as the aspect ratio is preserved.
467 &quot;width&quot;: 42, # Image width in pixels.
468 &quot;height&quot;: 42, # Image height in pixels.
469 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
470 },
471 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700472 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700473 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
474 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
475 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
476 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
477 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
478 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700479 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700480 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
481 &quot;A String&quot;,
482 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700483 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
484 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700485 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700486 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative.
487 # If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in
488 # serving_restrictions will also exist. Note
489 # that this may be nuanced with other contextual restrictions, in which case,
490 # it may be preferable to read from serving_restrictions directly.
491 # Can be used to filter the response of the
492 # creatives.list
493 # method.
494 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative.
495 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
496 # for possible values.
497 42,
498 ],
499 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any.
500 # See the ad-product-categories.txt file in the technical documentation
501 # for a list of IDs.
502 42,
503 ],
504 &quot;video&quot;: { # Video content for a creative. # A video creative.
505 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad.
506 # This document should conform to the VAST 2.0 or 3.0 standard.
507 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
508 },
509 &quot;servingRestrictions&quot;: [ # Output only. The granular status of this ad in specific contexts.
510 # A context here relates to where something ultimately serves (for example,
511 # a physical location, a platform, an HTTPS vs HTTP request, or the type
512 # of auction).
513 { # Output only. A representation of the status of an ad in a
514 # specific context. A context here relates to where something ultimately serves
515 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
516 # or the type of auction).
517 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction.
518 # Only present if status=DISAPPROVED.
519 # Can be used to filter the response of the
520 # creatives.list
521 # method.
522 # Deprecated; please use
523 # disapproval
524 # field instead.
525 { # Output only. The reason and details for a disapproval.
526 &quot;details&quot;: [ # Additional details about the reason for disapproval.
527 &quot;A String&quot;,
528 ],
529 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
530 },
531 ],
532 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been
533 # explicitly disapproved or is pending review).
534 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
535 # Only present if status=DISAPPROVED.
536 # Can be used to filter the response of the
537 # creatives.list
538 # method.
539 &quot;details&quot;: [ # Additional details about the reason for disapproval.
540 &quot;A String&quot;,
541 ],
542 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
543 },
544 &quot;contexts&quot;: [ # The contexts for the restriction.
545 { # The serving context for this restriction.
546 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
547 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
548 &quot;A String&quot;,
549 ],
550 },
551 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
552 &quot;platforms&quot;: [ # The platforms this restriction applies to.
553 &quot;A String&quot;,
554 ],
555 },
556 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
557 # location.
558 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
559 # Please refer to the
560 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
561 # file for different geo criteria IDs.
562 42,
563 ],
564 },
565 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
566 &quot;appTypes&quot;: [ # The app types this restriction applies to.
567 &quot;A String&quot;,
568 ],
569 },
570 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
571 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
572 &quot;securities&quot;: [ # The security types in this context.
573 &quot;A String&quot;,
574 ],
575 },
576 },
577 ],
578 },
579 ],
580 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
581 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
582 &quot;A String&quot;,
583 ],
584 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
585 { # Output only. Shows any corrections that were applied to this creative.
586 &quot;details&quot;: [ # Additional details about what was corrected.
587 &quot;A String&quot;,
588 ],
589 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
590 &quot;contexts&quot;: [ # The contexts for the correction.
591 { # The serving context for this restriction.
592 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
593 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
594 &quot;A String&quot;,
595 ],
596 },
597 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
598 &quot;platforms&quot;: [ # The platforms this restriction applies to.
599 &quot;A String&quot;,
600 ],
601 },
602 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
603 # location.
604 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
605 # Please refer to the
606 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
607 # file for different geo criteria IDs.
608 42,
609 ],
610 },
611 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
612 &quot;appTypes&quot;: [ # The app types this restriction applies to.
613 &quot;A String&quot;,
614 ],
615 },
616 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
617 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
618 &quot;securities&quot;: [ # The security types in this context.
619 &quot;A String&quot;,
620 ],
621 },
622 },
623 ],
624 },
625 ],
626 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
627 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
628 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
629 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
630 },
631 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400632 }</pre>
633</div>
634
635<div class="method">
636 <code class="details" id="get">get(accountId, creativeId, x__xgafv=None)</code>
637 <pre>Gets a creative.
638
639Args:
640 accountId: string, The account the creative belongs to. (required)
641 creativeId: string, The ID of the creative to retrieve. (required)
642 x__xgafv: string, V1 error format.
643 Allowed values
644 1 - v1 error format
645 2 - v2 error format
646
647Returns:
648 An object of the form:
649
650 { # A creative and its classification data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700651 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
652 &quot;A String&quot;,
653 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700654 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
Bu Sun Kim65020912020-05-20 12:08:20 -0700655 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
657 # mapping of provider ID to provided name, a privacy policy URL, and a list
658 # of domains which can be attributed to the provider.
659 #
660 # If the creative contains provider IDs that are outside of those listed in
661 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
662 # field on the (Google bid
663 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
664 # and the
665 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
666 # field on the (OpenRTB
667 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
668 # and a bid is submitted with that creative for an impression that will
669 # serve to an EEA user, the bid will be filtered before the auction.
Bu Sun Kim65020912020-05-20 12:08:20 -0700670 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700671 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700672 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider.
673 #
674 # If true for a given creative, any bid submitted with that creative for an
675 # impression that will serve to an EEA user will be filtered before the
676 # auction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700677 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700678 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is
679 # arbitrary. The codes are 2 or 5 characters and are documented at
680 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
681 &quot;A String&quot;,
682 ],
683 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
684 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
685 &quot;A String&quot;,
686 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700687 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400688 # Can be used to filter the response of the
689 # creatives.list
690 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700691 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
692 &quot;A String&quot;,
693 ],
694 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to.
695 # Can be used to filter the response of the
696 # creatives.list
697 # method.
698 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative.
700 # If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400701 # serving_restrictions will also exist. Note
702 # that this may be nuanced with other contextual restrictions, in which case,
703 # it may be preferable to read from serving_restrictions directly.
704 # Can be used to filter the response of the
705 # creatives.list
706 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700707 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative.
708 # Can be used to filter the response of the
709 # creatives.list
710 # method.
711 &quot;A String&quot;,
712 ],
713 &quot;version&quot;: 42, # Output only. The version of this creative.
714 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any.
715 # See the ad-sensitive-categories.txt file in the technical documentation for
716 # a list of IDs. You should use these IDs along with the
717 # excluded-sensitive-category field in the bid request to filter your bids.
718 42,
719 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700720 &quot;native&quot;: { # Native content for a creative. # A native creative.
721 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700722 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, # A large image.
723 # so long as the aspect ratio is preserved.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700724 &quot;width&quot;: 42, # Image width in pixels.
725 &quot;height&quot;: 42, # Image height in pixels.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700726 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700727 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700728 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
729 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser&#x27;s logo.
730 # so long as the aspect ratio is preserved.
731 &quot;width&quot;: 42, # Image width in pixels.
732 &quot;height&quot;: 42, # Image height in pixels.
733 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
734 },
735 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
736 # so long as the aspect ratio is preserved.
737 &quot;width&quot;: 42, # Image width in pixels.
738 &quot;height&quot;: 42, # Image height in pixels.
739 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
740 },
741 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700742 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700743 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
744 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
745 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
746 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
747 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
748 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700749 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700750 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
751 &quot;A String&quot;,
752 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700753 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
754 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700755 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700756 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative.
757 # If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in
758 # serving_restrictions will also exist. Note
759 # that this may be nuanced with other contextual restrictions, in which case,
760 # it may be preferable to read from serving_restrictions directly.
761 # Can be used to filter the response of the
762 # creatives.list
763 # method.
764 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative.
765 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
766 # for possible values.
767 42,
768 ],
769 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any.
770 # See the ad-product-categories.txt file in the technical documentation
771 # for a list of IDs.
772 42,
773 ],
774 &quot;video&quot;: { # Video content for a creative. # A video creative.
775 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad.
776 # This document should conform to the VAST 2.0 or 3.0 standard.
777 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
778 },
779 &quot;servingRestrictions&quot;: [ # Output only. The granular status of this ad in specific contexts.
780 # A context here relates to where something ultimately serves (for example,
781 # a physical location, a platform, an HTTPS vs HTTP request, or the type
782 # of auction).
783 { # Output only. A representation of the status of an ad in a
784 # specific context. A context here relates to where something ultimately serves
785 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
786 # or the type of auction).
787 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction.
788 # Only present if status=DISAPPROVED.
789 # Can be used to filter the response of the
790 # creatives.list
791 # method.
792 # Deprecated; please use
793 # disapproval
794 # field instead.
795 { # Output only. The reason and details for a disapproval.
796 &quot;details&quot;: [ # Additional details about the reason for disapproval.
797 &quot;A String&quot;,
798 ],
799 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
800 },
801 ],
802 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been
803 # explicitly disapproved or is pending review).
804 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
805 # Only present if status=DISAPPROVED.
806 # Can be used to filter the response of the
807 # creatives.list
808 # method.
809 &quot;details&quot;: [ # Additional details about the reason for disapproval.
810 &quot;A String&quot;,
811 ],
812 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
813 },
814 &quot;contexts&quot;: [ # The contexts for the restriction.
815 { # The serving context for this restriction.
816 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
817 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
818 &quot;A String&quot;,
819 ],
820 },
821 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
822 &quot;platforms&quot;: [ # The platforms this restriction applies to.
823 &quot;A String&quot;,
824 ],
825 },
826 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
827 # location.
828 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
829 # Please refer to the
830 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
831 # file for different geo criteria IDs.
832 42,
833 ],
834 },
835 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
836 &quot;appTypes&quot;: [ # The app types this restriction applies to.
837 &quot;A String&quot;,
838 ],
839 },
840 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
841 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
842 &quot;securities&quot;: [ # The security types in this context.
843 &quot;A String&quot;,
844 ],
845 },
846 },
847 ],
848 },
849 ],
850 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
851 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
852 &quot;A String&quot;,
853 ],
854 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
855 { # Output only. Shows any corrections that were applied to this creative.
856 &quot;details&quot;: [ # Additional details about what was corrected.
857 &quot;A String&quot;,
858 ],
859 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
860 &quot;contexts&quot;: [ # The contexts for the correction.
861 { # The serving context for this restriction.
862 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
863 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
864 &quot;A String&quot;,
865 ],
866 },
867 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
868 &quot;platforms&quot;: [ # The platforms this restriction applies to.
869 &quot;A String&quot;,
870 ],
871 },
872 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
873 # location.
874 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
875 # Please refer to the
876 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
877 # file for different geo criteria IDs.
878 42,
879 ],
880 },
881 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
882 &quot;appTypes&quot;: [ # The app types this restriction applies to.
883 &quot;A String&quot;,
884 ],
885 },
886 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
887 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
888 &quot;securities&quot;: [ # The security types in this context.
889 &quot;A String&quot;,
890 ],
891 },
892 },
893 ],
894 },
895 ],
896 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
897 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
898 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
899 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
900 },
901 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400902 }</pre>
903</div>
904
905<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700906 <code class="details" id="list">list(accountId, pageToken=None, pageSize=None, query=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400907 <pre>Lists creatives.
908
909Args:
910 accountId: string, The account to list the creatives from.
Bu Sun Kim65020912020-05-20 12:08:20 -0700911Specify &quot;-&quot; to list all creatives the current user has access to. (required)
912 pageToken: string, A token identifying a page of results the server should return.
913Typically, this is the value of
914ListCreativesResponse.next_page_token
915returned from the previous call to &#x27;ListCreatives&#x27; method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700916 pageSize: integer, Requested page size. The server may return fewer creatives than requested
917(due to timeout constraint) even if more are available via another call.
918If unspecified, server will pick an appropriate default.
919Acceptable values are 1 to 1000, inclusive.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400920 query: string, An optional query string to filter creatives. If no filter is specified,
921all active creatives will be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -0700922&lt;p&gt;Supported queries are:
923&lt;ul&gt;
924&lt;li&gt;accountId=&lt;i&gt;account_id_string&lt;/i&gt;
925&lt;li&gt;creativeId=&lt;i&gt;creative_id_string&lt;/i&gt;
926&lt;li&gt;dealsStatus: {approved, conditionally_approved, disapproved,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400927 not_checked}
Dan O'Mearadd494642020-05-01 07:42:23 -0700928&lt;li&gt;openAuctionStatus: {approved, conditionally_approved, disapproved,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400929 not_checked}
Dan O'Mearadd494642020-05-01 07:42:23 -0700930&lt;li&gt;attribute: {a numeric attribute from the list of attributes}
931&lt;li&gt;disapprovalReason: {a reason from
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700932DisapprovalReason}
Dan O'Mearadd494642020-05-01 07:42:23 -0700933&lt;/ul&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700934Example: &#x27;accountId=12345 AND (dealsStatus:disapproved AND
935disapprovalReason:unacceptable_content) OR attribute:47&#x27;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400936 x__xgafv: string, V1 error format.
937 Allowed values
938 1 - v1 error format
939 2 - v2 error format
940
941Returns:
942 An object of the form:
943
944 { # A response for listing creatives.
Bu Sun Kim65020912020-05-20 12:08:20 -0700945 &quot;creatives&quot;: [ # The list of creatives.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400946 { # A creative and its classification data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700947 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
948 &quot;A String&quot;,
949 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700950 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
Bu Sun Kim65020912020-05-20 12:08:20 -0700951 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700952 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
953 # mapping of provider ID to provided name, a privacy policy URL, and a list
954 # of domains which can be attributed to the provider.
955 #
956 # If the creative contains provider IDs that are outside of those listed in
957 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
958 # field on the (Google bid
959 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
960 # and the
961 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
962 # field on the (OpenRTB
963 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
964 # and a bid is submitted with that creative for an impression that will
965 # serve to an EEA user, the bid will be filtered before the auction.
Bu Sun Kim65020912020-05-20 12:08:20 -0700966 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700967 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700968 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider.
969 #
970 # If true for a given creative, any bid submitted with that creative for an
971 # impression that will serve to an EEA user will be filtered before the
972 # auction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700973 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700974 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is
975 # arbitrary. The codes are 2 or 5 characters and are documented at
976 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
977 &quot;A String&quot;,
978 ],
979 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
980 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
981 &quot;A String&quot;,
982 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700983 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400984 # Can be used to filter the response of the
985 # creatives.list
986 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700987 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
988 &quot;A String&quot;,
989 ],
990 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to.
991 # Can be used to filter the response of the
992 # creatives.list
993 # method.
994 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
Bu Sun Kim65020912020-05-20 12:08:20 -0700995 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative.
996 # If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400997 # serving_restrictions will also exist. Note
998 # that this may be nuanced with other contextual restrictions, in which case,
999 # it may be preferable to read from serving_restrictions directly.
1000 # Can be used to filter the response of the
1001 # creatives.list
1002 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001003 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative.
1004 # Can be used to filter the response of the
1005 # creatives.list
1006 # method.
1007 &quot;A String&quot;,
1008 ],
1009 &quot;version&quot;: 42, # Output only. The version of this creative.
1010 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any.
1011 # See the ad-sensitive-categories.txt file in the technical documentation for
1012 # a list of IDs. You should use these IDs along with the
1013 # excluded-sensitive-category field in the bid request to filter your bids.
1014 42,
1015 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001016 &quot;native&quot;: { # Native content for a creative. # A native creative.
1017 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001018 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, # A large image.
1019 # so long as the aspect ratio is preserved.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001020 &quot;width&quot;: 42, # Image width in pixels.
1021 &quot;height&quot;: 42, # Image height in pixels.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001022 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001023 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001024 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
1025 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser&#x27;s logo.
1026 # so long as the aspect ratio is preserved.
1027 &quot;width&quot;: 42, # Image width in pixels.
1028 &quot;height&quot;: 42, # Image height in pixels.
1029 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1030 },
1031 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
1032 # so long as the aspect ratio is preserved.
1033 &quot;width&quot;: 42, # Image width in pixels.
1034 &quot;height&quot;: 42, # Image height in pixels.
1035 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1036 },
1037 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001038 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001039 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
1040 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
1041 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
1042 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
1043 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
1044 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001045 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001046 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
1047 &quot;A String&quot;,
1048 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001049 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
1050 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001051 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001052 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative.
1053 # If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in
1054 # serving_restrictions will also exist. Note
1055 # that this may be nuanced with other contextual restrictions, in which case,
1056 # it may be preferable to read from serving_restrictions directly.
1057 # Can be used to filter the response of the
1058 # creatives.list
1059 # method.
1060 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative.
1061 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
1062 # for possible values.
1063 42,
1064 ],
1065 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any.
1066 # See the ad-product-categories.txt file in the technical documentation
1067 # for a list of IDs.
1068 42,
1069 ],
1070 &quot;video&quot;: { # Video content for a creative. # A video creative.
1071 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad.
1072 # This document should conform to the VAST 2.0 or 3.0 standard.
1073 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
1074 },
1075 &quot;servingRestrictions&quot;: [ # Output only. The granular status of this ad in specific contexts.
1076 # A context here relates to where something ultimately serves (for example,
1077 # a physical location, a platform, an HTTPS vs HTTP request, or the type
1078 # of auction).
1079 { # Output only. A representation of the status of an ad in a
1080 # specific context. A context here relates to where something ultimately serves
1081 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1082 # or the type of auction).
1083 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction.
1084 # Only present if status=DISAPPROVED.
1085 # Can be used to filter the response of the
1086 # creatives.list
1087 # method.
1088 # Deprecated; please use
1089 # disapproval
1090 # field instead.
1091 { # Output only. The reason and details for a disapproval.
1092 &quot;details&quot;: [ # Additional details about the reason for disapproval.
1093 &quot;A String&quot;,
1094 ],
1095 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
1096 },
1097 ],
1098 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been
1099 # explicitly disapproved or is pending review).
1100 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
1101 # Only present if status=DISAPPROVED.
1102 # Can be used to filter the response of the
1103 # creatives.list
1104 # method.
1105 &quot;details&quot;: [ # Additional details about the reason for disapproval.
1106 &quot;A String&quot;,
1107 ],
1108 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
1109 },
1110 &quot;contexts&quot;: [ # The contexts for the restriction.
1111 { # The serving context for this restriction.
1112 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
1113 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
1114 &quot;A String&quot;,
1115 ],
1116 },
1117 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1118 &quot;platforms&quot;: [ # The platforms this restriction applies to.
1119 &quot;A String&quot;,
1120 ],
1121 },
1122 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1123 # location.
1124 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
1125 # Please refer to the
1126 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1127 # file for different geo criteria IDs.
1128 42,
1129 ],
1130 },
1131 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1132 &quot;appTypes&quot;: [ # The app types this restriction applies to.
1133 &quot;A String&quot;,
1134 ],
1135 },
1136 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
1137 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
1138 &quot;securities&quot;: [ # The security types in this context.
1139 &quot;A String&quot;,
1140 ],
1141 },
1142 },
1143 ],
1144 },
1145 ],
1146 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
1147 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
1148 &quot;A String&quot;,
1149 ],
1150 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
1151 { # Output only. Shows any corrections that were applied to this creative.
1152 &quot;details&quot;: [ # Additional details about what was corrected.
1153 &quot;A String&quot;,
1154 ],
1155 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
1156 &quot;contexts&quot;: [ # The contexts for the correction.
1157 { # The serving context for this restriction.
1158 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
1159 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
1160 &quot;A String&quot;,
1161 ],
1162 },
1163 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1164 &quot;platforms&quot;: [ # The platforms this restriction applies to.
1165 &quot;A String&quot;,
1166 ],
1167 },
1168 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1169 # location.
1170 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
1171 # Please refer to the
1172 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1173 # file for different geo criteria IDs.
1174 42,
1175 ],
1176 },
1177 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1178 &quot;appTypes&quot;: [ # The app types this restriction applies to.
1179 &quot;A String&quot;,
1180 ],
1181 },
1182 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
1183 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
1184 &quot;securities&quot;: [ # The security types in this context.
1185 &quot;A String&quot;,
1186 ],
1187 },
1188 },
1189 ],
1190 },
1191 ],
1192 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
1193 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
1194 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
1195 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
1196 },
1197 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001198 },
1199 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001200 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results.
1201 # Pass this value in the
1202 # ListCreativesRequest.page_token
1203 # field in the subsequent call to `ListCreatives` method to retrieve the next
1204 # page of results.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001205 }</pre>
1206</div>
1207
1208<div class="method">
1209 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1210 <pre>Retrieves the next page of results.
1211
1212Args:
1213 previous_request: The request for the previous page. (required)
1214 previous_response: The response from the request for the previous page. (required)
1215
1216Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001217 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001218 page. Returns None if there are no more items in the collection.
1219 </pre>
1220</div>
1221
1222<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001223 <code class="details" id="stopWatching">stopWatching(accountId, creativeId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001224 <pre>Stops watching a creative. Will stop push notifications being sent to the
1225topics when the creative changes status.
1226
1227Args:
1228 accountId: string, The account of the creative to stop notifications for. (required)
1229 creativeId: string, The creative ID of the creative to stop notifications for.
Bu Sun Kim65020912020-05-20 12:08:20 -07001230Specify &quot;-&quot; to specify stopping account level notifications. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001231 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001232 The object takes the form of:
1233
1234{ # A request for stopping notifications for changes to creative Status.
1235 }
1236
1237 x__xgafv: string, V1 error format.
1238 Allowed values
1239 1 - v1 error format
1240 2 - v2 error format
1241
1242Returns:
1243 An object of the form:
1244
1245 { # A generic empty message that you can re-use to avoid defining duplicated
1246 # empty messages in your APIs. A typical example is to use it as the request
1247 # or the response type of an API method. For instance:
1248 #
1249 # service Foo {
1250 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1251 # }
1252 #
1253 # The JSON representation for `Empty` is empty JSON object `{}`.
1254 }</pre>
1255</div>
1256
1257<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001258 <code class="details" id="update">update(accountId, creativeId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001259 <pre>Updates a creative.
1260
1261Args:
1262 accountId: string, The account that this creative belongs to.
1263Can be used to filter the response of the
1264creatives.list
1265method. (required)
1266 creativeId: string, The buyer-defined creative ID of this creative.
1267Can be used to filter the response of the
1268creatives.list
1269method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001270 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001271 The object takes the form of:
1272
1273{ # A creative and its classification data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001274 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
1275 &quot;A String&quot;,
1276 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001277 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
Bu Sun Kim65020912020-05-20 12:08:20 -07001278 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001279 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
1280 # mapping of provider ID to provided name, a privacy policy URL, and a list
1281 # of domains which can be attributed to the provider.
1282 #
1283 # If the creative contains provider IDs that are outside of those listed in
1284 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
1285 # field on the (Google bid
1286 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
1287 # and the
1288 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
1289 # field on the (OpenRTB
1290 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
1291 # and a bid is submitted with that creative for an impression that will
1292 # serve to an EEA user, the bid will be filtered before the auction.
Bu Sun Kim65020912020-05-20 12:08:20 -07001293 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001294 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001295 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider.
1296 #
1297 # If true for a given creative, any bid submitted with that creative for an
1298 # impression that will serve to an EEA user will be filtered before the
1299 # auction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001300 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001301 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is
1302 # arbitrary. The codes are 2 or 5 characters and are documented at
1303 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
1304 &quot;A String&quot;,
1305 ],
1306 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
1307 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
1308 &quot;A String&quot;,
1309 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001310 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001311 # Can be used to filter the response of the
1312 # creatives.list
1313 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001314 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
1315 &quot;A String&quot;,
1316 ],
1317 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to.
1318 # Can be used to filter the response of the
1319 # creatives.list
1320 # method.
1321 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07001322 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative.
1323 # If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001324 # serving_restrictions will also exist. Note
1325 # that this may be nuanced with other contextual restrictions, in which case,
1326 # it may be preferable to read from serving_restrictions directly.
1327 # Can be used to filter the response of the
1328 # creatives.list
1329 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001330 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative.
1331 # Can be used to filter the response of the
1332 # creatives.list
1333 # method.
1334 &quot;A String&quot;,
1335 ],
1336 &quot;version&quot;: 42, # Output only. The version of this creative.
1337 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any.
1338 # See the ad-sensitive-categories.txt file in the technical documentation for
1339 # a list of IDs. You should use these IDs along with the
1340 # excluded-sensitive-category field in the bid request to filter your bids.
1341 42,
1342 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001343 &quot;native&quot;: { # Native content for a creative. # A native creative.
1344 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001345 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, # A large image.
1346 # so long as the aspect ratio is preserved.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001347 &quot;width&quot;: 42, # Image width in pixels.
1348 &quot;height&quot;: 42, # Image height in pixels.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001349 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001350 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001351 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
1352 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser&#x27;s logo.
1353 # so long as the aspect ratio is preserved.
1354 &quot;width&quot;: 42, # Image width in pixels.
1355 &quot;height&quot;: 42, # Image height in pixels.
1356 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1357 },
1358 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
1359 # so long as the aspect ratio is preserved.
1360 &quot;width&quot;: 42, # Image width in pixels.
1361 &quot;height&quot;: 42, # Image height in pixels.
1362 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1363 },
1364 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001365 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001366 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
1367 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
1368 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
1369 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
1370 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
1371 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001372 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001373 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
1374 &quot;A String&quot;,
1375 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001376 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
1377 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001378 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001379 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative.
1380 # If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in
1381 # serving_restrictions will also exist. Note
1382 # that this may be nuanced with other contextual restrictions, in which case,
1383 # it may be preferable to read from serving_restrictions directly.
1384 # Can be used to filter the response of the
1385 # creatives.list
1386 # method.
1387 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative.
1388 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
1389 # for possible values.
1390 42,
1391 ],
1392 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any.
1393 # See the ad-product-categories.txt file in the technical documentation
1394 # for a list of IDs.
1395 42,
1396 ],
1397 &quot;video&quot;: { # Video content for a creative. # A video creative.
1398 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad.
1399 # This document should conform to the VAST 2.0 or 3.0 standard.
1400 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
1401 },
1402 &quot;servingRestrictions&quot;: [ # Output only. The granular status of this ad in specific contexts.
1403 # A context here relates to where something ultimately serves (for example,
1404 # a physical location, a platform, an HTTPS vs HTTP request, or the type
1405 # of auction).
1406 { # Output only. A representation of the status of an ad in a
1407 # specific context. A context here relates to where something ultimately serves
1408 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1409 # or the type of auction).
1410 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction.
1411 # Only present if status=DISAPPROVED.
1412 # Can be used to filter the response of the
1413 # creatives.list
1414 # method.
1415 # Deprecated; please use
1416 # disapproval
1417 # field instead.
1418 { # Output only. The reason and details for a disapproval.
1419 &quot;details&quot;: [ # Additional details about the reason for disapproval.
1420 &quot;A String&quot;,
1421 ],
1422 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
1423 },
1424 ],
1425 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been
1426 # explicitly disapproved or is pending review).
1427 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
1428 # Only present if status=DISAPPROVED.
1429 # Can be used to filter the response of the
1430 # creatives.list
1431 # method.
1432 &quot;details&quot;: [ # Additional details about the reason for disapproval.
1433 &quot;A String&quot;,
1434 ],
1435 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
1436 },
1437 &quot;contexts&quot;: [ # The contexts for the restriction.
1438 { # The serving context for this restriction.
1439 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
1440 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
1441 &quot;A String&quot;,
1442 ],
1443 },
1444 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1445 &quot;platforms&quot;: [ # The platforms this restriction applies to.
1446 &quot;A String&quot;,
1447 ],
1448 },
1449 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1450 # location.
1451 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
1452 # Please refer to the
1453 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1454 # file for different geo criteria IDs.
1455 42,
1456 ],
1457 },
1458 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1459 &quot;appTypes&quot;: [ # The app types this restriction applies to.
1460 &quot;A String&quot;,
1461 ],
1462 },
1463 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
1464 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
1465 &quot;securities&quot;: [ # The security types in this context.
1466 &quot;A String&quot;,
1467 ],
1468 },
1469 },
1470 ],
1471 },
1472 ],
1473 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
1474 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
1475 &quot;A String&quot;,
1476 ],
1477 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
1478 { # Output only. Shows any corrections that were applied to this creative.
1479 &quot;details&quot;: [ # Additional details about what was corrected.
1480 &quot;A String&quot;,
1481 ],
1482 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
1483 &quot;contexts&quot;: [ # The contexts for the correction.
1484 { # The serving context for this restriction.
1485 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
1486 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
1487 &quot;A String&quot;,
1488 ],
1489 },
1490 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1491 &quot;platforms&quot;: [ # The platforms this restriction applies to.
1492 &quot;A String&quot;,
1493 ],
1494 },
1495 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1496 # location.
1497 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
1498 # Please refer to the
1499 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1500 # file for different geo criteria IDs.
1501 42,
1502 ],
1503 },
1504 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1505 &quot;appTypes&quot;: [ # The app types this restriction applies to.
1506 &quot;A String&quot;,
1507 ],
1508 },
1509 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
1510 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
1511 &quot;securities&quot;: [ # The security types in this context.
1512 &quot;A String&quot;,
1513 ],
1514 },
1515 },
1516 ],
1517 },
1518 ],
1519 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
1520 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
1521 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
1522 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
1523 },
1524 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001525}
1526
1527 x__xgafv: string, V1 error format.
1528 Allowed values
1529 1 - v1 error format
1530 2 - v2 error format
1531
1532Returns:
1533 An object of the form:
1534
1535 { # A creative and its classification data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001536 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
1537 &quot;A String&quot;,
1538 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001539 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
Bu Sun Kim65020912020-05-20 12:08:20 -07001540 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001541 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
1542 # mapping of provider ID to provided name, a privacy policy URL, and a list
1543 # of domains which can be attributed to the provider.
1544 #
1545 # If the creative contains provider IDs that are outside of those listed in
1546 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
1547 # field on the (Google bid
1548 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
1549 # and the
1550 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
1551 # field on the (OpenRTB
1552 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
1553 # and a bid is submitted with that creative for an impression that will
1554 # serve to an EEA user, the bid will be filtered before the auction.
Bu Sun Kim65020912020-05-20 12:08:20 -07001555 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001556 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001557 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider.
1558 #
1559 # If true for a given creative, any bid submitted with that creative for an
1560 # impression that will serve to an EEA user will be filtered before the
1561 # auction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001562 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001563 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is
1564 # arbitrary. The codes are 2 or 5 characters and are documented at
1565 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
1566 &quot;A String&quot;,
1567 ],
1568 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
1569 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
1570 &quot;A String&quot;,
1571 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001572 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001573 # Can be used to filter the response of the
1574 # creatives.list
1575 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001576 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
1577 &quot;A String&quot;,
1578 ],
1579 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to.
1580 # Can be used to filter the response of the
1581 # creatives.list
1582 # method.
1583 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07001584 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative.
1585 # If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001586 # serving_restrictions will also exist. Note
1587 # that this may be nuanced with other contextual restrictions, in which case,
1588 # it may be preferable to read from serving_restrictions directly.
1589 # Can be used to filter the response of the
1590 # creatives.list
1591 # method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001592 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative.
1593 # Can be used to filter the response of the
1594 # creatives.list
1595 # method.
1596 &quot;A String&quot;,
1597 ],
1598 &quot;version&quot;: 42, # Output only. The version of this creative.
1599 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any.
1600 # See the ad-sensitive-categories.txt file in the technical documentation for
1601 # a list of IDs. You should use these IDs along with the
1602 # excluded-sensitive-category field in the bid request to filter your bids.
1603 42,
1604 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001605 &quot;native&quot;: { # Native content for a creative. # A native creative.
1606 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001607 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, # A large image.
1608 # so long as the aspect ratio is preserved.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001609 &quot;width&quot;: 42, # Image width in pixels.
1610 &quot;height&quot;: 42, # Image height in pixels.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001611 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001612 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001613 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
1614 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser&#x27;s logo.
1615 # so long as the aspect ratio is preserved.
1616 &quot;width&quot;: 42, # Image width in pixels.
1617 &quot;height&quot;: 42, # Image height in pixels.
1618 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1619 },
1620 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
1621 # so long as the aspect ratio is preserved.
1622 &quot;width&quot;: 42, # Image width in pixels.
1623 &quot;height&quot;: 42, # Image height in pixels.
1624 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1625 },
1626 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001627 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001628 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
1629 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
1630 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
1631 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
1632 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
1633 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001634 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001635 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
1636 &quot;A String&quot;,
1637 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001638 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
1639 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001640 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001641 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative.
1642 # If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in
1643 # serving_restrictions will also exist. Note
1644 # that this may be nuanced with other contextual restrictions, in which case,
1645 # it may be preferable to read from serving_restrictions directly.
1646 # Can be used to filter the response of the
1647 # creatives.list
1648 # method.
1649 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative.
1650 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
1651 # for possible values.
1652 42,
1653 ],
1654 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any.
1655 # See the ad-product-categories.txt file in the technical documentation
1656 # for a list of IDs.
1657 42,
1658 ],
1659 &quot;video&quot;: { # Video content for a creative. # A video creative.
1660 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad.
1661 # This document should conform to the VAST 2.0 or 3.0 standard.
1662 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
1663 },
1664 &quot;servingRestrictions&quot;: [ # Output only. The granular status of this ad in specific contexts.
1665 # A context here relates to where something ultimately serves (for example,
1666 # a physical location, a platform, an HTTPS vs HTTP request, or the type
1667 # of auction).
1668 { # Output only. A representation of the status of an ad in a
1669 # specific context. A context here relates to where something ultimately serves
1670 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1671 # or the type of auction).
1672 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction.
1673 # Only present if status=DISAPPROVED.
1674 # Can be used to filter the response of the
1675 # creatives.list
1676 # method.
1677 # Deprecated; please use
1678 # disapproval
1679 # field instead.
1680 { # Output only. The reason and details for a disapproval.
1681 &quot;details&quot;: [ # Additional details about the reason for disapproval.
1682 &quot;A String&quot;,
1683 ],
1684 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
1685 },
1686 ],
1687 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been
1688 # explicitly disapproved or is pending review).
1689 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
1690 # Only present if status=DISAPPROVED.
1691 # Can be used to filter the response of the
1692 # creatives.list
1693 # method.
1694 &quot;details&quot;: [ # Additional details about the reason for disapproval.
1695 &quot;A String&quot;,
1696 ],
1697 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
1698 },
1699 &quot;contexts&quot;: [ # The contexts for the restriction.
1700 { # The serving context for this restriction.
1701 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
1702 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
1703 &quot;A String&quot;,
1704 ],
1705 },
1706 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1707 &quot;platforms&quot;: [ # The platforms this restriction applies to.
1708 &quot;A String&quot;,
1709 ],
1710 },
1711 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1712 # location.
1713 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
1714 # Please refer to the
1715 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1716 # file for different geo criteria IDs.
1717 42,
1718 ],
1719 },
1720 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1721 &quot;appTypes&quot;: [ # The app types this restriction applies to.
1722 &quot;A String&quot;,
1723 ],
1724 },
1725 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
1726 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
1727 &quot;securities&quot;: [ # The security types in this context.
1728 &quot;A String&quot;,
1729 ],
1730 },
1731 },
1732 ],
1733 },
1734 ],
1735 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
1736 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
1737 &quot;A String&quot;,
1738 ],
1739 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
1740 { # Output only. Shows any corrections that were applied to this creative.
1741 &quot;details&quot;: [ # Additional details about what was corrected.
1742 &quot;A String&quot;,
1743 ],
1744 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
1745 &quot;contexts&quot;: [ # The contexts for the correction.
1746 { # The serving context for this restriction.
1747 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
1748 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
1749 &quot;A String&quot;,
1750 ],
1751 },
1752 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1753 &quot;platforms&quot;: [ # The platforms this restriction applies to.
1754 &quot;A String&quot;,
1755 ],
1756 },
1757 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1758 # location.
1759 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context.
1760 # Please refer to the
1761 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1762 # file for different geo criteria IDs.
1763 42,
1764 ],
1765 },
1766 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1767 &quot;appTypes&quot;: [ # The app types this restriction applies to.
1768 &quot;A String&quot;,
1769 ],
1770 },
1771 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
1772 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
1773 &quot;securities&quot;: [ # The security types in this context.
1774 &quot;A String&quot;,
1775 ],
1776 },
1777 },
1778 ],
1779 },
1780 ],
1781 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
1782 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
1783 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
1784 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
1785 },
1786 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001787 }</pre>
1788</div>
1789
1790<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001791 <code class="details" id="watch">watch(accountId, creativeId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001792 <pre>Watches a creative. Will result in push notifications being sent to the
1793topic when the creative changes status.
1794
1795Args:
1796 accountId: string, The account of the creative to watch. (required)
1797 creativeId: string, The creative ID to watch for status changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001798Specify &quot;-&quot; to watch all creatives under the above account.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001799If both creative-level and account-level notifications are
1800sent, only a single notification will be sent to the
1801creative-level notification topic. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001802 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001803 The object takes the form of:
1804
1805{ # A request for watching changes to creative Status.
Bu Sun Kim65020912020-05-20 12:08:20 -07001806 &quot;topic&quot;: &quot;A String&quot;, # The Pub/Sub topic to publish notifications to.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001807 # This topic must already exist and must give permission to
1808 # ad-exchange-buyside-reports@google.com to write to the topic.
1809 # This should be the full resource name in
Bu Sun Kim65020912020-05-20 12:08:20 -07001810 # &quot;projects/{project_id}/topics/{topic_id}&quot; format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001811 }
1812
1813 x__xgafv: string, V1 error format.
1814 Allowed values
1815 1 - v1 error format
1816 2 - v2 error format
1817
1818Returns:
1819 An object of the form:
1820
1821 { # A generic empty message that you can re-use to avoid defining duplicated
1822 # empty messages in your APIs. A typical example is to use it as the request
1823 # or the response type of an API method. For instance:
1824 #
1825 # service Foo {
1826 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1827 # }
1828 #
1829 # The JSON representation for `Empty` is empty JSON object `{}`.
1830 }</pre>
1831</div>
1832
1833</body></html>