blob: 667d53a3d5cc0528448a6309b362c8b0b5402395 [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">
Thomas Coffee2f245372017-03-27 10:39:26 -070083 <code><a href="#create">create(accountId, body, 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">
Thomas Coffee2f245372017-03-27 10:39:26 -070089 <code><a href="#list">list(accountId, pageSize=None, pageToken=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">
Thomas Coffee2f245372017-03-27 10:39:26 -070098 <code><a href="#update">update(accountId, creativeId, body, 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">
Thomas Coffee2f245372017-03-27 10:39:26 -0700101 <code><a href="#watch">watch(accountId, creativeId, body, 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">
Thomas Coffee2f245372017-03-27 10:39:26 -0700105 <code class="details" id="create">create(accountId, body, 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)
113 body: object, The request body. (required)
114 The object takes the form of:
115
116{ # A creative and its classification data.
117 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
118 "A String",
119 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120 "version": 42, # Output only. The version of this creative.
121 "detectedLanguages": [ # Output only. The detected languages for this creative. The order is
122 # arbitrary. The codes are 2 or 5 characters and are documented at
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400123 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
124 "A String",
125 ],
126 "advertiserName": "A String", # The name of the company being advertised in the creative.
127 "clickThroughUrls": [ # The set of destination URLs for the creative.
128 "A String",
129 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700130 "video": { # Video content for a creative. # A video creative.
131 "videoUrl": "A String", # The URL to fetch a video ad.
132 "videoVastXml": "A String", # The contents of a VAST document for a video ad.
133 # This document should conform to the VAST 2.0 or 3.0 standard.
134 },
135 "detectedSensitiveCategories": [ # Output only. Detected sensitive categories, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400136 # See the ad-sensitive-categories.txt file in the technical documentation for
137 # a list of IDs. You should use these IDs along with the
138 # excluded-sensitive-category field in the bid request to filter your bids.
139 42,
140 ],
141 "creativeId": "A String", # The buyer-defined creative ID of this creative.
142 # Can be used to filter the response of the
143 # creatives.list
144 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145 "detectedAdvertiserIds": [ # Output only. Detected advertiser IDs, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400146 "A String",
147 ],
148 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400149 "native": { # Native content for a creative. # A native creative.
150 "body": "A String", # A long description of the ad.
151 "videoUrl": "A String", # The URL to fetch a native video ad.
152 "headline": "A String", # A short title for the ad.
153 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
154 # so long as the aspect ratio is preserved.
155 "url": "A String", # The URL of the image.
156 "width": 42, # Image width in pixels.
157 "height": 42, # Image height in pixels.
158 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700159 "clickTrackingUrl": "A String", # The URL to use for click tracking.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400160 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
161 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400162 "priceDisplayText": "A String", # The price of the promoted app including currency info.
163 "callToAction": "A String", # A label for the button that the user is supposed to click.
164 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
165 # so long as the aspect ratio is preserved.
166 "url": "A String", # The URL of the image.
167 "width": 42, # Image width in pixels.
168 "height": 42, # Image height in pixels.
169 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700170 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
171 # so long as the aspect ratio is preserved.
172 "url": "A String", # The URL of the image.
173 "width": 42, # Image width in pixels.
174 "height": 42, # Image height in pixels.
175 },
176 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400177 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
178 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
180 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
181 # for possible values.
182 42,
183 ],
184 "agencyId": "A String", # The agency ID for this creative.
185 "html": { # HTML content for a creative. # An HTML creative.
186 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
187 "width": 42, # The width of the HTML snippet in pixels.
188 "height": 42, # The height of the HTML snippet in pixels.
189 },
190 "apiUpdateTime": "A String", # Output only. The last update timestamp of the creative via API.
191 "accountId": "A String", # The account that this creative belongs to.
192 # Can be used to filter the response of the
193 # creatives.list
194 # method.
195 "detectedProductCategories": [ # Output only. Detected product categories, if any.
Thomas Coffee2f245372017-03-27 10:39:26 -0700196 # See the ad-product-categories.txt file in the technical documentation
197 # for a list of IDs.
198 42,
199 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700200 "adTechnologyProviders": { # Detected ad technology provider information. # Output only. The detected ad technology providers.
201 "hasUnidentifiedProvider": True or False, # Whether the creative contains an unidentified ad technology provider.
202 #
203 # If true for a given creative, any bid submitted with that creative for an
204 # impression that will serve to an EEA user will be filtered before the
205 # auction.
206 "detectedProviderIds": [ # The detected ad technology provider IDs for this creative.
207 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
208 # mapping of provider ID to provided name, a privacy policy URL, and a list
209 # of domains which can be attributed to the provider.
210 #
211 # If the creative contains provider IDs that are outside of those listed in
212 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
213 # field on the (Google bid
214 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
215 # and the
216 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
217 # field on the (OpenRTB
218 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
219 # and a bid is submitted with that creative for an impression that will
220 # serve to an EEA user, the bid will be filtered before the auction.
221 "A String",
222 ],
223 },
224 "detectedDomains": [ # Output only. The detected domains for this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400225 "A String",
226 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400227 "attributes": [ # All attributes for the ads that may be shown from this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400228 # Can be used to filter the response of the
229 # creatives.list
230 # method.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400231 "A String",
232 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233 "dealsStatus": "A String", # Output only. The top-level deals status of this creative.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400234 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400235 # serving_restrictions will also exist. Note
236 # that this may be nuanced with other contextual restrictions, in which case,
237 # it may be preferable to read from serving_restrictions directly.
238 # Can be used to filter the response of the
239 # creatives.list
240 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700241 "servingRestrictions": [ # Output only. The granular status of this ad in specific contexts.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400242 # A context here relates to where something ultimately serves (for example,
243 # a physical location, a platform, an HTTPS vs HTTP request, or the type
244 # of auction).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700245 { # Output only. A representation of the status of an ad in a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400246 # specific context. A context here relates to where something ultimately serves
247 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
248 # or the type of auction).
249 "contexts": [ # The contexts for the restriction.
250 { # The serving context for this restriction.
251 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700252 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400253 "appTypes": [ # The app types this restriction applies to.
254 "A String",
255 ],
256 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400258 "securities": [ # The security types in this context.
259 "A String",
260 ],
261 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700262 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400263 "platforms": [ # The platforms this restriction applies to.
264 "A String",
265 ],
266 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700267 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400268 # location.
269 "geoCriteriaIds": [ # IDs representing the geo location for this context.
270 # Please refer to the
271 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
272 # file for different geo criteria IDs.
273 42,
274 ],
275 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400277 "auctionTypes": [ # The auction types this restriction applies to.
278 "A String",
279 ],
280 },
281 },
282 ],
Thomas Coffee2f245372017-03-27 10:39:26 -0700283 "status": "A String", # The status of the creative in this context (for example, it has been
284 # explicitly disapproved or is pending review).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400285 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
286 # Only present if status=DISAPPROVED.
287 # Can be used to filter the response of the
288 # creatives.list
289 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 # Deprecated; please use
291 # disapproval
292 # field instead.
293 { # Output only. The reason and details for a disapproval.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400294 "reason": "A String", # The categorized reason for disapproval.
295 "details": [ # Additional details about the reason for disapproval.
296 "A String",
297 ],
298 },
299 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700300 "disapproval": { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
301 # Only present if status=DISAPPROVED.
302 # Can be used to filter the response of the
303 # creatives.list
304 # method.
305 "reason": "A String", # The categorized reason for disapproval.
306 "details": [ # Additional details about the reason for disapproval.
307 "A String",
308 ],
309 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400310 },
311 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700312 "declaredClickThroughUrls": [ # The set of declared destination URLs for the creative.
313 "A String",
314 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400315 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
316 "A String",
317 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700318 "corrections": [ # Output only. Shows any corrections that were applied to this creative.
319 { # Output only. Shows any corrections that were applied to this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400320 "contexts": [ # The contexts for the correction.
321 { # The serving context for this restriction.
322 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700323 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400324 "appTypes": [ # The app types this restriction applies to.
325 "A String",
326 ],
327 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700328 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400329 "securities": [ # The security types in this context.
330 "A String",
331 ],
332 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700333 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400334 "platforms": [ # The platforms this restriction applies to.
335 "A String",
336 ],
337 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400339 # location.
340 "geoCriteriaIds": [ # 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 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700347 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400348 "auctionTypes": [ # The auction types this restriction applies to.
349 "A String",
350 ],
351 },
352 },
353 ],
354 "type": "A String", # The type of correction that was applied to the creative.
355 "details": [ # Additional details about what was corrected.
356 "A String",
357 ],
358 },
359 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 "openAuctionStatus": "A String", # Output only. The top-level open auction status of this creative.
361 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
362 # serving_restrictions will also exist. Note
363 # that this may be nuanced with other contextual restrictions, in which case,
364 # it may be preferable to read from serving_restrictions directly.
365 # Can be used to filter the response of the
366 # creatives.list
367 # method.
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.
381 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
382 "A String",
383 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700384 "version": 42, # Output only. The version of this creative.
385 "detectedLanguages": [ # Output only. The detected languages for this creative. The order is
386 # arbitrary. The codes are 2 or 5 characters and are documented at
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400387 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
388 "A String",
389 ],
390 "advertiserName": "A String", # The name of the company being advertised in the creative.
391 "clickThroughUrls": [ # The set of destination URLs for the creative.
392 "A String",
393 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700394 "video": { # Video content for a creative. # A video creative.
395 "videoUrl": "A String", # The URL to fetch a video ad.
396 "videoVastXml": "A String", # The contents of a VAST document for a video ad.
397 # This document should conform to the VAST 2.0 or 3.0 standard.
398 },
399 "detectedSensitiveCategories": [ # Output only. Detected sensitive categories, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400400 # See the ad-sensitive-categories.txt file in the technical documentation for
401 # a list of IDs. You should use these IDs along with the
402 # excluded-sensitive-category field in the bid request to filter your bids.
403 42,
404 ],
405 "creativeId": "A String", # The buyer-defined creative ID of this creative.
406 # Can be used to filter the response of the
407 # creatives.list
408 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700409 "detectedAdvertiserIds": [ # Output only. Detected advertiser IDs, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400410 "A String",
411 ],
412 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400413 "native": { # Native content for a creative. # A native creative.
414 "body": "A String", # A long description of the ad.
415 "videoUrl": "A String", # The URL to fetch a native video ad.
416 "headline": "A String", # A short title for the ad.
417 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
418 # so long as the aspect ratio is preserved.
419 "url": "A String", # The URL of the image.
420 "width": 42, # Image width in pixels.
421 "height": 42, # Image height in pixels.
422 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700423 "clickTrackingUrl": "A String", # The URL to use for click tracking.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400424 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
425 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400426 "priceDisplayText": "A String", # The price of the promoted app including currency info.
427 "callToAction": "A String", # A label for the button that the user is supposed to click.
428 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
429 # so long as the aspect ratio is preserved.
430 "url": "A String", # The URL of the image.
431 "width": 42, # Image width in pixels.
432 "height": 42, # Image height in pixels.
433 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700434 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
435 # so long as the aspect ratio is preserved.
436 "url": "A String", # The URL of the image.
437 "width": 42, # Image width in pixels.
438 "height": 42, # Image height in pixels.
439 },
440 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400441 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
442 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700443 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
444 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
445 # for possible values.
446 42,
447 ],
448 "agencyId": "A String", # The agency ID for this creative.
449 "html": { # HTML content for a creative. # An HTML creative.
450 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
451 "width": 42, # The width of the HTML snippet in pixels.
452 "height": 42, # The height of the HTML snippet in pixels.
453 },
454 "apiUpdateTime": "A String", # Output only. The last update timestamp of the creative via API.
455 "accountId": "A String", # The account that this creative belongs to.
456 # Can be used to filter the response of the
457 # creatives.list
458 # method.
459 "detectedProductCategories": [ # Output only. Detected product categories, if any.
Thomas Coffee2f245372017-03-27 10:39:26 -0700460 # See the ad-product-categories.txt file in the technical documentation
461 # for a list of IDs.
462 42,
463 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700464 "adTechnologyProviders": { # Detected ad technology provider information. # Output only. The detected ad technology providers.
465 "hasUnidentifiedProvider": True or False, # Whether the creative contains an unidentified ad technology provider.
466 #
467 # If true for a given creative, any bid submitted with that creative for an
468 # impression that will serve to an EEA user will be filtered before the
469 # auction.
470 "detectedProviderIds": [ # The detected ad technology provider IDs for this creative.
471 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
472 # mapping of provider ID to provided name, a privacy policy URL, and a list
473 # of domains which can be attributed to the provider.
474 #
475 # If the creative contains provider IDs that are outside of those listed in
476 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
477 # field on the (Google bid
478 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
479 # and the
480 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
481 # field on the (OpenRTB
482 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
483 # and a bid is submitted with that creative for an impression that will
484 # serve to an EEA user, the bid will be filtered before the auction.
485 "A String",
486 ],
487 },
488 "detectedDomains": [ # Output only. The detected domains for this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400489 "A String",
490 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400491 "attributes": [ # All attributes for the ads that may be shown from this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400492 # Can be used to filter the response of the
493 # creatives.list
494 # method.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400495 "A String",
496 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700497 "dealsStatus": "A String", # Output only. The top-level deals status of this creative.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400498 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400499 # serving_restrictions will also exist. Note
500 # that this may be nuanced with other contextual restrictions, in which case,
501 # it may be preferable to read from serving_restrictions directly.
502 # Can be used to filter the response of the
503 # creatives.list
504 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700505 "servingRestrictions": [ # Output only. The granular status of this ad in specific contexts.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400506 # A context here relates to where something ultimately serves (for example,
507 # a physical location, a platform, an HTTPS vs HTTP request, or the type
508 # of auction).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700509 { # Output only. A representation of the status of an ad in a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400510 # specific context. A context here relates to where something ultimately serves
511 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
512 # or the type of auction).
513 "contexts": [ # The contexts for the restriction.
514 { # The serving context for this restriction.
515 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700516 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400517 "appTypes": [ # The app types this restriction applies to.
518 "A String",
519 ],
520 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700521 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400522 "securities": [ # The security types in this context.
523 "A String",
524 ],
525 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700526 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400527 "platforms": [ # The platforms this restriction applies to.
528 "A String",
529 ],
530 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700531 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400532 # location.
533 "geoCriteriaIds": [ # IDs representing the geo location for this context.
534 # Please refer to the
535 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
536 # file for different geo criteria IDs.
537 42,
538 ],
539 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400541 "auctionTypes": [ # The auction types this restriction applies to.
542 "A String",
543 ],
544 },
545 },
546 ],
Thomas Coffee2f245372017-03-27 10:39:26 -0700547 "status": "A String", # The status of the creative in this context (for example, it has been
548 # explicitly disapproved or is pending review).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400549 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
550 # Only present if status=DISAPPROVED.
551 # Can be used to filter the response of the
552 # creatives.list
553 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700554 # Deprecated; please use
555 # disapproval
556 # field instead.
557 { # Output only. The reason and details for a disapproval.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400558 "reason": "A String", # The categorized reason for disapproval.
559 "details": [ # Additional details about the reason for disapproval.
560 "A String",
561 ],
562 },
563 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700564 "disapproval": { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
565 # Only present if status=DISAPPROVED.
566 # Can be used to filter the response of the
567 # creatives.list
568 # method.
569 "reason": "A String", # The categorized reason for disapproval.
570 "details": [ # Additional details about the reason for disapproval.
571 "A String",
572 ],
573 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400574 },
575 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700576 "declaredClickThroughUrls": [ # The set of declared destination URLs for the creative.
577 "A String",
578 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400579 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
580 "A String",
581 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700582 "corrections": [ # Output only. Shows any corrections that were applied to this creative.
583 { # Output only. Shows any corrections that were applied to this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400584 "contexts": [ # The contexts for the correction.
585 { # The serving context for this restriction.
586 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700587 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400588 "appTypes": [ # The app types this restriction applies to.
589 "A String",
590 ],
591 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700592 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400593 "securities": [ # The security types in this context.
594 "A String",
595 ],
596 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700597 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400598 "platforms": [ # The platforms this restriction applies to.
599 "A String",
600 ],
601 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700602 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400603 # location.
604 "geoCriteriaIds": [ # 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 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700611 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400612 "auctionTypes": [ # The auction types this restriction applies to.
613 "A String",
614 ],
615 },
616 },
617 ],
618 "type": "A String", # The type of correction that was applied to the creative.
619 "details": [ # Additional details about what was corrected.
620 "A String",
621 ],
622 },
623 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700624 "openAuctionStatus": "A String", # Output only. The top-level open auction status of this creative.
625 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
626 # serving_restrictions will also exist. Note
627 # that this may be nuanced with other contextual restrictions, in which case,
628 # it may be preferable to read from serving_restrictions directly.
629 # Can be used to filter the response of the
630 # creatives.list
631 # method.
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.
651 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
652 "A String",
653 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700654 "version": 42, # Output only. The version of this creative.
655 "detectedLanguages": [ # Output only. The detected languages for this creative. The order is
656 # arbitrary. The codes are 2 or 5 characters and are documented at
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400657 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
658 "A String",
659 ],
660 "advertiserName": "A String", # The name of the company being advertised in the creative.
661 "clickThroughUrls": [ # The set of destination URLs for the creative.
662 "A String",
663 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 "video": { # Video content for a creative. # A video creative.
665 "videoUrl": "A String", # The URL to fetch a video ad.
666 "videoVastXml": "A String", # The contents of a VAST document for a video ad.
667 # This document should conform to the VAST 2.0 or 3.0 standard.
668 },
669 "detectedSensitiveCategories": [ # Output only. Detected sensitive categories, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400670 # See the ad-sensitive-categories.txt file in the technical documentation for
671 # a list of IDs. You should use these IDs along with the
672 # excluded-sensitive-category field in the bid request to filter your bids.
673 42,
674 ],
675 "creativeId": "A String", # The buyer-defined creative ID of this creative.
676 # Can be used to filter the response of the
677 # creatives.list
678 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700679 "detectedAdvertiserIds": [ # Output only. Detected advertiser IDs, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400680 "A String",
681 ],
682 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400683 "native": { # Native content for a creative. # A native creative.
684 "body": "A String", # A long description of the ad.
685 "videoUrl": "A String", # The URL to fetch a native video ad.
686 "headline": "A String", # A short title for the ad.
687 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
688 # so long as the aspect ratio is preserved.
689 "url": "A String", # The URL of the image.
690 "width": 42, # Image width in pixels.
691 "height": 42, # Image height in pixels.
692 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700693 "clickTrackingUrl": "A String", # The URL to use for click tracking.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400694 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
695 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400696 "priceDisplayText": "A String", # The price of the promoted app including currency info.
697 "callToAction": "A String", # A label for the button that the user is supposed to click.
698 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
699 # so long as the aspect ratio is preserved.
700 "url": "A String", # The URL of the image.
701 "width": 42, # Image width in pixels.
702 "height": 42, # Image height in pixels.
703 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700704 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
705 # so long as the aspect ratio is preserved.
706 "url": "A String", # The URL of the image.
707 "width": 42, # Image width in pixels.
708 "height": 42, # Image height in pixels.
709 },
710 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400711 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
712 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700713 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
714 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
715 # for possible values.
716 42,
717 ],
718 "agencyId": "A String", # The agency ID for this creative.
719 "html": { # HTML content for a creative. # An HTML creative.
720 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
721 "width": 42, # The width of the HTML snippet in pixels.
722 "height": 42, # The height of the HTML snippet in pixels.
723 },
724 "apiUpdateTime": "A String", # Output only. The last update timestamp of the creative via API.
725 "accountId": "A String", # The account that this creative belongs to.
726 # Can be used to filter the response of the
727 # creatives.list
728 # method.
729 "detectedProductCategories": [ # Output only. Detected product categories, if any.
Thomas Coffee2f245372017-03-27 10:39:26 -0700730 # See the ad-product-categories.txt file in the technical documentation
731 # for a list of IDs.
732 42,
733 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700734 "adTechnologyProviders": { # Detected ad technology provider information. # Output only. The detected ad technology providers.
735 "hasUnidentifiedProvider": True or False, # Whether the creative contains an unidentified ad technology provider.
736 #
737 # If true for a given creative, any bid submitted with that creative for an
738 # impression that will serve to an EEA user will be filtered before the
739 # auction.
740 "detectedProviderIds": [ # The detected ad technology provider IDs for this creative.
741 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
742 # mapping of provider ID to provided name, a privacy policy URL, and a list
743 # of domains which can be attributed to the provider.
744 #
745 # If the creative contains provider IDs that are outside of those listed in
746 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
747 # field on the (Google bid
748 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
749 # and the
750 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
751 # field on the (OpenRTB
752 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
753 # and a bid is submitted with that creative for an impression that will
754 # serve to an EEA user, the bid will be filtered before the auction.
755 "A String",
756 ],
757 },
758 "detectedDomains": [ # Output only. The detected domains for this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400759 "A String",
760 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400761 "attributes": [ # All attributes for the ads that may be shown from this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400762 # Can be used to filter the response of the
763 # creatives.list
764 # method.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400765 "A String",
766 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700767 "dealsStatus": "A String", # Output only. The top-level deals status of this creative.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400768 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400769 # serving_restrictions will also exist. Note
770 # that this may be nuanced with other contextual restrictions, in which case,
771 # it may be preferable to read from serving_restrictions directly.
772 # Can be used to filter the response of the
773 # creatives.list
774 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700775 "servingRestrictions": [ # Output only. The granular status of this ad in specific contexts.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400776 # A context here relates to where something ultimately serves (for example,
777 # a physical location, a platform, an HTTPS vs HTTP request, or the type
778 # of auction).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700779 { # Output only. A representation of the status of an ad in a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400780 # specific context. A context here relates to where something ultimately serves
781 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
782 # or the type of auction).
783 "contexts": [ # The contexts for the restriction.
784 { # The serving context for this restriction.
785 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700786 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400787 "appTypes": [ # The app types this restriction applies to.
788 "A String",
789 ],
790 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700791 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400792 "securities": [ # The security types in this context.
793 "A String",
794 ],
795 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700796 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400797 "platforms": [ # The platforms this restriction applies to.
798 "A String",
799 ],
800 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700801 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400802 # location.
803 "geoCriteriaIds": [ # IDs representing the geo location for this context.
804 # Please refer to the
805 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
806 # file for different geo criteria IDs.
807 42,
808 ],
809 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700810 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400811 "auctionTypes": [ # The auction types this restriction applies to.
812 "A String",
813 ],
814 },
815 },
816 ],
Thomas Coffee2f245372017-03-27 10:39:26 -0700817 "status": "A String", # The status of the creative in this context (for example, it has been
818 # explicitly disapproved or is pending review).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400819 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
820 # Only present if status=DISAPPROVED.
821 # Can be used to filter the response of the
822 # creatives.list
823 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700824 # Deprecated; please use
825 # disapproval
826 # field instead.
827 { # Output only. The reason and details for a disapproval.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400828 "reason": "A String", # The categorized reason for disapproval.
829 "details": [ # Additional details about the reason for disapproval.
830 "A String",
831 ],
832 },
833 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700834 "disapproval": { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
835 # Only present if status=DISAPPROVED.
836 # Can be used to filter the response of the
837 # creatives.list
838 # method.
839 "reason": "A String", # The categorized reason for disapproval.
840 "details": [ # Additional details about the reason for disapproval.
841 "A String",
842 ],
843 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400844 },
845 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700846 "declaredClickThroughUrls": [ # The set of declared destination URLs for the creative.
847 "A String",
848 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400849 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
850 "A String",
851 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700852 "corrections": [ # Output only. Shows any corrections that were applied to this creative.
853 { # Output only. Shows any corrections that were applied to this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400854 "contexts": [ # The contexts for the correction.
855 { # The serving context for this restriction.
856 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700857 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400858 "appTypes": [ # The app types this restriction applies to.
859 "A String",
860 ],
861 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700862 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400863 "securities": [ # The security types in this context.
864 "A String",
865 ],
866 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700867 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400868 "platforms": [ # The platforms this restriction applies to.
869 "A String",
870 ],
871 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700872 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400873 # location.
874 "geoCriteriaIds": [ # 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 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400882 "auctionTypes": [ # The auction types this restriction applies to.
883 "A String",
884 ],
885 },
886 },
887 ],
888 "type": "A String", # The type of correction that was applied to the creative.
889 "details": [ # Additional details about what was corrected.
890 "A String",
891 ],
892 },
893 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700894 "openAuctionStatus": "A String", # Output only. The top-level open auction status of this creative.
895 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
896 # serving_restrictions will also exist. Note
897 # that this may be nuanced with other contextual restrictions, in which case,
898 # it may be preferable to read from serving_restrictions directly.
899 # Can be used to filter the response of the
900 # creatives.list
901 # method.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400902 }</pre>
903</div>
904
905<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700906 <code class="details" id="list">list(accountId, pageSize=None, pageToken=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.
911Specify "-" to list all creatives the current user has access to. (required)
912 pageSize: integer, Requested page size. The server may return fewer creatives than requested
913(due to timeout constraint) even if more are available via another call.
914If unspecified, server will pick an appropriate default.
915Acceptable values are 1 to 1000, inclusive.
916 pageToken: string, A token identifying a page of results the server should return.
917Typically, this is the value of
918ListCreativesResponse.next_page_token
919returned from the previous call to 'ListCreatives' method.
920 query: string, An optional query string to filter creatives. If no filter is specified,
921all active creatives will be returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700922<p>Supported queries are:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400923<ul>
924<li>accountId=<i>account_id_string</i>
925<li>creativeId=<i>creative_id_string</i>
926<li>dealsStatus: {approved, conditionally_approved, disapproved,
927 not_checked}
928<li>openAuctionStatus: {approved, conditionally_approved, disapproved,
929 not_checked}
930<li>attribute: {a numeric attribute from the list of attributes}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700931<li>disapprovalReason: {a reason from
932DisapprovalReason}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400933</ul>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700934Example: 'accountId=12345 AND (dealsStatus:disapproved AND
935disapprovalReason:unacceptable_content) OR attribute:47'
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.
945 "nextPageToken": "A String", # A token to retrieve the next page of results.
946 # Pass this value in the
947 # ListCreativesRequest.page_token
948 # field in the subsequent call to `ListCreatives` method to retrieve the next
949 # page of results.
950 "creatives": [ # The list of creatives.
951 { # A creative and its classification data.
952 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
953 "A String",
954 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700955 "version": 42, # Output only. The version of this creative.
956 "detectedLanguages": [ # Output only. The detected languages for this creative. The order is
957 # arbitrary. The codes are 2 or 5 characters and are documented at
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400958 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
959 "A String",
960 ],
961 "advertiserName": "A String", # The name of the company being advertised in the creative.
962 "clickThroughUrls": [ # The set of destination URLs for the creative.
963 "A String",
964 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700965 "video": { # Video content for a creative. # A video creative.
966 "videoUrl": "A String", # The URL to fetch a video ad.
967 "videoVastXml": "A String", # The contents of a VAST document for a video ad.
968 # This document should conform to the VAST 2.0 or 3.0 standard.
969 },
970 "detectedSensitiveCategories": [ # Output only. Detected sensitive categories, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400971 # See the ad-sensitive-categories.txt file in the technical documentation for
972 # a list of IDs. You should use these IDs along with the
973 # excluded-sensitive-category field in the bid request to filter your bids.
974 42,
975 ],
976 "creativeId": "A String", # The buyer-defined creative ID of this creative.
977 # Can be used to filter the response of the
978 # creatives.list
979 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700980 "detectedAdvertiserIds": [ # Output only. Detected advertiser IDs, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400981 "A String",
982 ],
983 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400984 "native": { # Native content for a creative. # A native creative.
985 "body": "A String", # A long description of the ad.
986 "videoUrl": "A String", # The URL to fetch a native video ad.
987 "headline": "A String", # A short title for the ad.
988 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
989 # so long as the aspect ratio is preserved.
990 "url": "A String", # The URL of the image.
991 "width": 42, # Image width in pixels.
992 "height": 42, # Image height in pixels.
993 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700994 "clickTrackingUrl": "A String", # The URL to use for click tracking.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400995 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
996 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400997 "priceDisplayText": "A String", # The price of the promoted app including currency info.
998 "callToAction": "A String", # A label for the button that the user is supposed to click.
999 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
1000 # so long as the aspect ratio is preserved.
1001 "url": "A String", # The URL of the image.
1002 "width": 42, # Image width in pixels.
1003 "height": 42, # Image height in pixels.
1004 },
Thomas Coffee2f245372017-03-27 10:39:26 -07001005 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
1006 # so long as the aspect ratio is preserved.
1007 "url": "A String", # The URL of the image.
1008 "width": 42, # Image width in pixels.
1009 "height": 42, # Image height in pixels.
1010 },
1011 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001012 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
1013 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001014 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
1015 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
1016 # for possible values.
1017 42,
1018 ],
1019 "agencyId": "A String", # The agency ID for this creative.
1020 "html": { # HTML content for a creative. # An HTML creative.
1021 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
1022 "width": 42, # The width of the HTML snippet in pixels.
1023 "height": 42, # The height of the HTML snippet in pixels.
1024 },
1025 "apiUpdateTime": "A String", # Output only. The last update timestamp of the creative via API.
1026 "accountId": "A String", # The account that this creative belongs to.
1027 # Can be used to filter the response of the
1028 # creatives.list
1029 # method.
1030 "detectedProductCategories": [ # Output only. Detected product categories, if any.
Thomas Coffee2f245372017-03-27 10:39:26 -07001031 # See the ad-product-categories.txt file in the technical documentation
1032 # for a list of IDs.
1033 42,
1034 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001035 "adTechnologyProviders": { # Detected ad technology provider information. # Output only. The detected ad technology providers.
1036 "hasUnidentifiedProvider": True or False, # Whether the creative contains an unidentified ad technology provider.
1037 #
1038 # If true for a given creative, any bid submitted with that creative for an
1039 # impression that will serve to an EEA user will be filtered before the
1040 # auction.
1041 "detectedProviderIds": [ # The detected ad technology provider IDs for this creative.
1042 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
1043 # mapping of provider ID to provided name, a privacy policy URL, and a list
1044 # of domains which can be attributed to the provider.
1045 #
1046 # If the creative contains provider IDs that are outside of those listed in
1047 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
1048 # field on the (Google bid
1049 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
1050 # and the
1051 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
1052 # field on the (OpenRTB
1053 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
1054 # and a bid is submitted with that creative for an impression that will
1055 # serve to an EEA user, the bid will be filtered before the auction.
1056 "A String",
1057 ],
1058 },
1059 "detectedDomains": [ # Output only. The detected domains for this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001060 "A String",
1061 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001062 "attributes": [ # All attributes for the ads that may be shown from this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001063 # Can be used to filter the response of the
1064 # creatives.list
1065 # method.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001066 "A String",
1067 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001068 "dealsStatus": "A String", # Output only. The top-level deals status of this creative.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001069 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001070 # serving_restrictions will also exist. Note
1071 # that this may be nuanced with other contextual restrictions, in which case,
1072 # it may be preferable to read from serving_restrictions directly.
1073 # Can be used to filter the response of the
1074 # creatives.list
1075 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001076 "servingRestrictions": [ # Output only. The granular status of this ad in specific contexts.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001077 # A context here relates to where something ultimately serves (for example,
1078 # a physical location, a platform, an HTTPS vs HTTP request, or the type
1079 # of auction).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001080 { # Output only. A representation of the status of an ad in a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001081 # specific context. A context here relates to where something ultimately serves
1082 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1083 # or the type of auction).
1084 "contexts": [ # The contexts for the restriction.
1085 { # The serving context for this restriction.
1086 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001087 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001088 "appTypes": [ # The app types this restriction applies to.
1089 "A String",
1090 ],
1091 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001092 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001093 "securities": [ # The security types in this context.
1094 "A String",
1095 ],
1096 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001097 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001098 "platforms": [ # The platforms this restriction applies to.
1099 "A String",
1100 ],
1101 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001102 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001103 # location.
1104 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1105 # Please refer to the
1106 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1107 # file for different geo criteria IDs.
1108 42,
1109 ],
1110 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001111 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001112 "auctionTypes": [ # The auction types this restriction applies to.
1113 "A String",
1114 ],
1115 },
1116 },
1117 ],
Thomas Coffee2f245372017-03-27 10:39:26 -07001118 "status": "A String", # The status of the creative in this context (for example, it has been
1119 # explicitly disapproved or is pending review).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001120 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
1121 # Only present if status=DISAPPROVED.
1122 # Can be used to filter the response of the
1123 # creatives.list
1124 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001125 # Deprecated; please use
1126 # disapproval
1127 # field instead.
1128 { # Output only. The reason and details for a disapproval.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001129 "reason": "A String", # The categorized reason for disapproval.
1130 "details": [ # Additional details about the reason for disapproval.
1131 "A String",
1132 ],
1133 },
1134 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001135 "disapproval": { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
1136 # Only present if status=DISAPPROVED.
1137 # Can be used to filter the response of the
1138 # creatives.list
1139 # method.
1140 "reason": "A String", # The categorized reason for disapproval.
1141 "details": [ # Additional details about the reason for disapproval.
1142 "A String",
1143 ],
1144 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001145 },
1146 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001147 "declaredClickThroughUrls": [ # The set of declared destination URLs for the creative.
1148 "A String",
1149 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001150 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
1151 "A String",
1152 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001153 "corrections": [ # Output only. Shows any corrections that were applied to this creative.
1154 { # Output only. Shows any corrections that were applied to this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001155 "contexts": [ # The contexts for the correction.
1156 { # The serving context for this restriction.
1157 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001158 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001159 "appTypes": [ # The app types this restriction applies to.
1160 "A String",
1161 ],
1162 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001163 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001164 "securities": [ # The security types in this context.
1165 "A String",
1166 ],
1167 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001168 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001169 "platforms": [ # The platforms this restriction applies to.
1170 "A String",
1171 ],
1172 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001173 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001174 # location.
1175 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1176 # Please refer to the
1177 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1178 # file for different geo criteria IDs.
1179 42,
1180 ],
1181 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001182 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001183 "auctionTypes": [ # The auction types this restriction applies to.
1184 "A String",
1185 ],
1186 },
1187 },
1188 ],
1189 "type": "A String", # The type of correction that was applied to the creative.
1190 "details": [ # Additional details about what was corrected.
1191 "A String",
1192 ],
1193 },
1194 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001195 "openAuctionStatus": "A String", # Output only. The top-level open auction status of this creative.
1196 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
1197 # serving_restrictions will also exist. Note
1198 # that this may be nuanced with other contextual restrictions, in which case,
1199 # it may be preferable to read from serving_restrictions directly.
1200 # Can be used to filter the response of the
1201 # creatives.list
1202 # method.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001203 },
1204 ],
1205 }</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:
1217 A request object that you can call 'execute()' on to request the next
1218 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.
1230Specify "-" 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">
Thomas Coffee2f245372017-03-27 10:39:26 -07001258 <code class="details" id="update">update(accountId, creativeId, body, 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)
1270 body: object, The request body. (required)
1271 The object takes the form of:
1272
1273{ # A creative and its classification data.
1274 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
1275 "A String",
1276 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001277 "version": 42, # Output only. The version of this creative.
1278 "detectedLanguages": [ # Output only. The detected languages for this creative. The order is
1279 # arbitrary. The codes are 2 or 5 characters and are documented at
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001280 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
1281 "A String",
1282 ],
1283 "advertiserName": "A String", # The name of the company being advertised in the creative.
1284 "clickThroughUrls": [ # The set of destination URLs for the creative.
1285 "A String",
1286 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287 "video": { # Video content for a creative. # A video creative.
1288 "videoUrl": "A String", # The URL to fetch a video ad.
1289 "videoVastXml": "A String", # The contents of a VAST document for a video ad.
1290 # This document should conform to the VAST 2.0 or 3.0 standard.
1291 },
1292 "detectedSensitiveCategories": [ # Output only. Detected sensitive categories, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001293 # See the ad-sensitive-categories.txt file in the technical documentation for
1294 # a list of IDs. You should use these IDs along with the
1295 # excluded-sensitive-category field in the bid request to filter your bids.
1296 42,
1297 ],
1298 "creativeId": "A String", # The buyer-defined creative ID of this creative.
1299 # Can be used to filter the response of the
1300 # creatives.list
1301 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001302 "detectedAdvertiserIds": [ # Output only. Detected advertiser IDs, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001303 "A String",
1304 ],
1305 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001306 "native": { # Native content for a creative. # A native creative.
1307 "body": "A String", # A long description of the ad.
1308 "videoUrl": "A String", # The URL to fetch a native video ad.
1309 "headline": "A String", # A short title for the ad.
1310 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
1311 # so long as the aspect ratio is preserved.
1312 "url": "A String", # The URL of the image.
1313 "width": 42, # Image width in pixels.
1314 "height": 42, # Image height in pixels.
1315 },
Thomas Coffee2f245372017-03-27 10:39:26 -07001316 "clickTrackingUrl": "A String", # The URL to use for click tracking.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001317 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
1318 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001319 "priceDisplayText": "A String", # The price of the promoted app including currency info.
1320 "callToAction": "A String", # A label for the button that the user is supposed to click.
1321 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
1322 # so long as the aspect ratio is preserved.
1323 "url": "A String", # The URL of the image.
1324 "width": 42, # Image width in pixels.
1325 "height": 42, # Image height in pixels.
1326 },
Thomas Coffee2f245372017-03-27 10:39:26 -07001327 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
1328 # so long as the aspect ratio is preserved.
1329 "url": "A String", # The URL of the image.
1330 "width": 42, # Image width in pixels.
1331 "height": 42, # Image height in pixels.
1332 },
1333 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001334 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
1335 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001336 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
1337 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
1338 # for possible values.
1339 42,
1340 ],
1341 "agencyId": "A String", # The agency ID for this creative.
1342 "html": { # HTML content for a creative. # An HTML creative.
1343 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
1344 "width": 42, # The width of the HTML snippet in pixels.
1345 "height": 42, # The height of the HTML snippet in pixels.
1346 },
1347 "apiUpdateTime": "A String", # Output only. The last update timestamp of the creative via API.
1348 "accountId": "A String", # The account that this creative belongs to.
1349 # Can be used to filter the response of the
1350 # creatives.list
1351 # method.
1352 "detectedProductCategories": [ # Output only. Detected product categories, if any.
Thomas Coffee2f245372017-03-27 10:39:26 -07001353 # See the ad-product-categories.txt file in the technical documentation
1354 # for a list of IDs.
1355 42,
1356 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001357 "adTechnologyProviders": { # Detected ad technology provider information. # Output only. The detected ad technology providers.
1358 "hasUnidentifiedProvider": True or False, # Whether the creative contains an unidentified ad technology provider.
1359 #
1360 # If true for a given creative, any bid submitted with that creative for an
1361 # impression that will serve to an EEA user will be filtered before the
1362 # auction.
1363 "detectedProviderIds": [ # The detected ad technology provider IDs for this creative.
1364 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
1365 # mapping of provider ID to provided name, a privacy policy URL, and a list
1366 # of domains which can be attributed to the provider.
1367 #
1368 # If the creative contains provider IDs that are outside of those listed in
1369 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
1370 # field on the (Google bid
1371 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
1372 # and the
1373 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
1374 # field on the (OpenRTB
1375 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
1376 # and a bid is submitted with that creative for an impression that will
1377 # serve to an EEA user, the bid will be filtered before the auction.
1378 "A String",
1379 ],
1380 },
1381 "detectedDomains": [ # Output only. The detected domains for this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001382 "A String",
1383 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001384 "attributes": [ # All attributes for the ads that may be shown from this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001385 # Can be used to filter the response of the
1386 # creatives.list
1387 # method.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001388 "A String",
1389 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001390 "dealsStatus": "A String", # Output only. The top-level deals status of this creative.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001391 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001392 # serving_restrictions will also exist. Note
1393 # that this may be nuanced with other contextual restrictions, in which case,
1394 # it may be preferable to read from serving_restrictions directly.
1395 # Can be used to filter the response of the
1396 # creatives.list
1397 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001398 "servingRestrictions": [ # Output only. The granular status of this ad in specific contexts.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001399 # A context here relates to where something ultimately serves (for example,
1400 # a physical location, a platform, an HTTPS vs HTTP request, or the type
1401 # of auction).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001402 { # Output only. A representation of the status of an ad in a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001403 # specific context. A context here relates to where something ultimately serves
1404 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1405 # or the type of auction).
1406 "contexts": [ # The contexts for the restriction.
1407 { # The serving context for this restriction.
1408 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001409 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001410 "appTypes": [ # The app types this restriction applies to.
1411 "A String",
1412 ],
1413 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001414 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001415 "securities": [ # The security types in this context.
1416 "A String",
1417 ],
1418 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001419 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001420 "platforms": [ # The platforms this restriction applies to.
1421 "A String",
1422 ],
1423 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001424 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001425 # location.
1426 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1427 # Please refer to the
1428 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1429 # file for different geo criteria IDs.
1430 42,
1431 ],
1432 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001433 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001434 "auctionTypes": [ # The auction types this restriction applies to.
1435 "A String",
1436 ],
1437 },
1438 },
1439 ],
Thomas Coffee2f245372017-03-27 10:39:26 -07001440 "status": "A String", # The status of the creative in this context (for example, it has been
1441 # explicitly disapproved or is pending review).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001442 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
1443 # Only present if status=DISAPPROVED.
1444 # Can be used to filter the response of the
1445 # creatives.list
1446 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001447 # Deprecated; please use
1448 # disapproval
1449 # field instead.
1450 { # Output only. The reason and details for a disapproval.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001451 "reason": "A String", # The categorized reason for disapproval.
1452 "details": [ # Additional details about the reason for disapproval.
1453 "A String",
1454 ],
1455 },
1456 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001457 "disapproval": { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
1458 # Only present if status=DISAPPROVED.
1459 # Can be used to filter the response of the
1460 # creatives.list
1461 # method.
1462 "reason": "A String", # The categorized reason for disapproval.
1463 "details": [ # Additional details about the reason for disapproval.
1464 "A String",
1465 ],
1466 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001467 },
1468 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001469 "declaredClickThroughUrls": [ # The set of declared destination URLs for the creative.
1470 "A String",
1471 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001472 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
1473 "A String",
1474 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001475 "corrections": [ # Output only. Shows any corrections that were applied to this creative.
1476 { # Output only. Shows any corrections that were applied to this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001477 "contexts": [ # The contexts for the correction.
1478 { # The serving context for this restriction.
1479 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001480 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001481 "appTypes": [ # The app types this restriction applies to.
1482 "A String",
1483 ],
1484 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001485 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001486 "securities": [ # The security types in this context.
1487 "A String",
1488 ],
1489 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001490 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001491 "platforms": [ # The platforms this restriction applies to.
1492 "A String",
1493 ],
1494 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001495 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001496 # location.
1497 "geoCriteriaIds": [ # 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 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001504 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001505 "auctionTypes": [ # The auction types this restriction applies to.
1506 "A String",
1507 ],
1508 },
1509 },
1510 ],
1511 "type": "A String", # The type of correction that was applied to the creative.
1512 "details": [ # Additional details about what was corrected.
1513 "A String",
1514 ],
1515 },
1516 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001517 "openAuctionStatus": "A String", # Output only. The top-level open auction status of this creative.
1518 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
1519 # serving_restrictions will also exist. Note
1520 # that this may be nuanced with other contextual restrictions, in which case,
1521 # it may be preferable to read from serving_restrictions directly.
1522 # Can be used to filter the response of the
1523 # creatives.list
1524 # method.
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.
1536 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
1537 "A String",
1538 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001539 "version": 42, # Output only. The version of this creative.
1540 "detectedLanguages": [ # Output only. The detected languages for this creative. The order is
1541 # arbitrary. The codes are 2 or 5 characters and are documented at
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001542 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
1543 "A String",
1544 ],
1545 "advertiserName": "A String", # The name of the company being advertised in the creative.
1546 "clickThroughUrls": [ # The set of destination URLs for the creative.
1547 "A String",
1548 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001549 "video": { # Video content for a creative. # A video creative.
1550 "videoUrl": "A String", # The URL to fetch a video ad.
1551 "videoVastXml": "A String", # The contents of a VAST document for a video ad.
1552 # This document should conform to the VAST 2.0 or 3.0 standard.
1553 },
1554 "detectedSensitiveCategories": [ # Output only. Detected sensitive categories, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001555 # See the ad-sensitive-categories.txt file in the technical documentation for
1556 # a list of IDs. You should use these IDs along with the
1557 # excluded-sensitive-category field in the bid request to filter your bids.
1558 42,
1559 ],
1560 "creativeId": "A String", # The buyer-defined creative ID of this creative.
1561 # Can be used to filter the response of the
1562 # creatives.list
1563 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001564 "detectedAdvertiserIds": [ # Output only. Detected advertiser IDs, if any.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001565 "A String",
1566 ],
1567 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001568 "native": { # Native content for a creative. # A native creative.
1569 "body": "A String", # A long description of the ad.
1570 "videoUrl": "A String", # The URL to fetch a native video ad.
1571 "headline": "A String", # A short title for the ad.
1572 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
1573 # so long as the aspect ratio is preserved.
1574 "url": "A String", # The URL of the image.
1575 "width": 42, # Image width in pixels.
1576 "height": 42, # Image height in pixels.
1577 },
Thomas Coffee2f245372017-03-27 10:39:26 -07001578 "clickTrackingUrl": "A String", # The URL to use for click tracking.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001579 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
1580 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001581 "priceDisplayText": "A String", # The price of the promoted app including currency info.
1582 "callToAction": "A String", # A label for the button that the user is supposed to click.
1583 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
1584 # so long as the aspect ratio is preserved.
1585 "url": "A String", # The URL of the image.
1586 "width": 42, # Image width in pixels.
1587 "height": 42, # Image height in pixels.
1588 },
Thomas Coffee2f245372017-03-27 10:39:26 -07001589 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
1590 # so long as the aspect ratio is preserved.
1591 "url": "A String", # The URL of the image.
1592 "width": 42, # Image width in pixels.
1593 "height": 42, # Image height in pixels.
1594 },
1595 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001596 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
1597 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001598 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
1599 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
1600 # for possible values.
1601 42,
1602 ],
1603 "agencyId": "A String", # The agency ID for this creative.
1604 "html": { # HTML content for a creative. # An HTML creative.
1605 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
1606 "width": 42, # The width of the HTML snippet in pixels.
1607 "height": 42, # The height of the HTML snippet in pixels.
1608 },
1609 "apiUpdateTime": "A String", # Output only. The last update timestamp of the creative via API.
1610 "accountId": "A String", # The account that this creative belongs to.
1611 # Can be used to filter the response of the
1612 # creatives.list
1613 # method.
1614 "detectedProductCategories": [ # Output only. Detected product categories, if any.
Thomas Coffee2f245372017-03-27 10:39:26 -07001615 # See the ad-product-categories.txt file in the technical documentation
1616 # for a list of IDs.
1617 42,
1618 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001619 "adTechnologyProviders": { # Detected ad technology provider information. # Output only. The detected ad technology providers.
1620 "hasUnidentifiedProvider": True or False, # Whether the creative contains an unidentified ad technology provider.
1621 #
1622 # If true for a given creative, any bid submitted with that creative for an
1623 # impression that will serve to an EEA user will be filtered before the
1624 # auction.
1625 "detectedProviderIds": [ # The detected ad technology provider IDs for this creative.
1626 # See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for
1627 # mapping of provider ID to provided name, a privacy policy URL, and a list
1628 # of domains which can be attributed to the provider.
1629 #
1630 # If the creative contains provider IDs that are outside of those listed in
1631 # the `BidRequest.adslot.consented_providers_settings.consented_providers`
1632 # field on the (Google bid
1633 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto]
1634 # and the
1635 # `BidRequest.user.ext.consented_providers_settings.consented_providers`
1636 # field on the (OpenRTB
1637 # protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto],
1638 # and a bid is submitted with that creative for an impression that will
1639 # serve to an EEA user, the bid will be filtered before the auction.
1640 "A String",
1641 ],
1642 },
1643 "detectedDomains": [ # Output only. The detected domains for this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001644 "A String",
1645 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001646 "attributes": [ # All attributes for the ads that may be shown from this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001647 # Can be used to filter the response of the
1648 # creatives.list
1649 # method.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001650 "A String",
1651 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001652 "dealsStatus": "A String", # Output only. The top-level deals status of this creative.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001653 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001654 # serving_restrictions will also exist. Note
1655 # that this may be nuanced with other contextual restrictions, in which case,
1656 # it may be preferable to read from serving_restrictions directly.
1657 # Can be used to filter the response of the
1658 # creatives.list
1659 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001660 "servingRestrictions": [ # Output only. The granular status of this ad in specific contexts.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001661 # A context here relates to where something ultimately serves (for example,
1662 # a physical location, a platform, an HTTPS vs HTTP request, or the type
1663 # of auction).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001664 { # Output only. A representation of the status of an ad in a
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001665 # specific context. A context here relates to where something ultimately serves
1666 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1667 # or the type of auction).
1668 "contexts": [ # The contexts for the restriction.
1669 { # The serving context for this restriction.
1670 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001671 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001672 "appTypes": [ # The app types this restriction applies to.
1673 "A String",
1674 ],
1675 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001676 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001677 "securities": [ # The security types in this context.
1678 "A String",
1679 ],
1680 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001681 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001682 "platforms": [ # The platforms this restriction applies to.
1683 "A String",
1684 ],
1685 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001686 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001687 # location.
1688 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1689 # Please refer to the
1690 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1691 # file for different geo criteria IDs.
1692 42,
1693 ],
1694 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001695 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001696 "auctionTypes": [ # The auction types this restriction applies to.
1697 "A String",
1698 ],
1699 },
1700 },
1701 ],
Thomas Coffee2f245372017-03-27 10:39:26 -07001702 "status": "A String", # The status of the creative in this context (for example, it has been
1703 # explicitly disapproved or is pending review).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001704 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
1705 # Only present if status=DISAPPROVED.
1706 # Can be used to filter the response of the
1707 # creatives.list
1708 # method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001709 # Deprecated; please use
1710 # disapproval
1711 # field instead.
1712 { # Output only. The reason and details for a disapproval.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001713 "reason": "A String", # The categorized reason for disapproval.
1714 "details": [ # Additional details about the reason for disapproval.
1715 "A String",
1716 ],
1717 },
1718 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001719 "disapproval": { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction.
1720 # Only present if status=DISAPPROVED.
1721 # Can be used to filter the response of the
1722 # creatives.list
1723 # method.
1724 "reason": "A String", # The categorized reason for disapproval.
1725 "details": [ # Additional details about the reason for disapproval.
1726 "A String",
1727 ],
1728 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001729 },
1730 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001731 "declaredClickThroughUrls": [ # The set of declared destination URLs for the creative.
1732 "A String",
1733 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001734 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
1735 "A String",
1736 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001737 "corrections": [ # Output only. Shows any corrections that were applied to this creative.
1738 { # Output only. Shows any corrections that were applied to this creative.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001739 "contexts": [ # The contexts for the correction.
1740 { # The serving context for this restriction.
1741 "all": "A String", # Matches all contexts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001742 "appType": { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001743 "appTypes": [ # The app types this restriction applies to.
1744 "A String",
1745 ],
1746 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001747 "securityType": { # Output only. A security context. # Matches impressions for a particular security type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001748 "securities": [ # The security types in this context.
1749 "A String",
1750 ],
1751 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001752 "platform": { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001753 "platforms": [ # The platforms this restriction applies to.
1754 "A String",
1755 ],
1756 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001757 "location": { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001758 # location.
1759 "geoCriteriaIds": [ # 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 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001766 "auctionType": { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001767 "auctionTypes": [ # The auction types this restriction applies to.
1768 "A String",
1769 ],
1770 },
1771 },
1772 ],
1773 "type": "A String", # The type of correction that was applied to the creative.
1774 "details": [ # Additional details about what was corrected.
1775 "A String",
1776 ],
1777 },
1778 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001779 "openAuctionStatus": "A String", # Output only. The top-level open auction status of this creative.
1780 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
1781 # serving_restrictions will also exist. Note
1782 # that this may be nuanced with other contextual restrictions, in which case,
1783 # it may be preferable to read from serving_restrictions directly.
1784 # Can be used to filter the response of the
1785 # creatives.list
1786 # method.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001787 }</pre>
1788</div>
1789
1790<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -07001791 <code class="details" id="watch">watch(accountId, creativeId, body, 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.
1798Specify "-" to watch all creatives under the above account.
1799If both creative-level and account-level notifications are
1800sent, only a single notification will be sent to the
1801creative-level notification topic. (required)
1802 body: object, The request body. (required)
1803 The object takes the form of:
1804
1805{ # A request for watching changes to creative Status.
1806 "topic": "A String", # The Pub/Sub topic to publish notifications to.
1807 # 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
1810 # "projects/{project_id}/topics/{topic_id}" format.
1811 }
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>