blob: 725bd1dca998c3ed81f5fa6c2a6ffc21bfedfaf0 [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">
83 <code><a href="#create">create(accountId=None, body, duplicateIdMode=None, x__xgafv=None)</a></code></p>
84<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">
89 <code><a href="#list">list(accountId=None, pageSize=None, pageToken=None, query=None, x__xgafv=None)</a></code></p>
90<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">
95 <code><a href="#stopWatching">stopWatching(accountId, creativeId=None, body, x__xgafv=None)</a></code></p>
96<p class="firstline">Stops watching a creative. Will stop push notifications being sent to the</p>
97<p class="toc_element">
98 <code><a href="#update">update(accountId=None, creativeId=None, body, x__xgafv=None)</a></code></p>
99<p class="firstline">Updates a creative.</p>
100<p class="toc_element">
101 <code><a href="#watch">watch(accountId, creativeId=None, body, x__xgafv=None)</a></code></p>
102<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">
105 <code class="details" id="create">create(accountId=None, body, duplicateIdMode=None, x__xgafv=None)</code>
106 <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 ],
120 "version": 42, # @OutputOnly The version of this creative.
121 "filteringStats": { # @OutputOnly Filtering reasons for this creative during a period of a single # @OutputOnly The filtering stats for this creative.
122 # day (from midnight to midnight Pacific).
123 "reasons": [ # The set of filtering reasons for this date.
124 { # A specific filtering status and how many times it occurred.
125 "status": 42, # The filtering status code. Please refer to the
126 # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictionaries/creative-status-codes.txt)
127 # file for different statuses.
128 "count": "A String", # The number of times the creative was filtered for the status. The
129 # count is aggregated across all publishers on the exchange.
130 },
131 ],
132 "date": { # Represents a whole calendar date, e.g. date of birth. The time of day and # The day during which the data was collected.
133 # The data is collected from 00:00:00 to 23:59:59 PT.
134 # During switches from PST to PDT and back, the day may
135 # contain 23 or 25 hours of data instead of the usual 24.
136 # time zone are either specified elsewhere or are not significant. The date
137 # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
138 # represent a year and month where the day is not significant, e.g. credit card
139 # expiration date. The year may be 0 to represent a month and day independent
140 # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
141 # and `google.protobuf.Timestamp`.
142 "month": 42, # Month of year. Must be from 1 to 12.
143 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
144 # if specifying a year/month where the day is not significant.
145 "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
146 # a year.
147 },
148 },
149 "detectedLanguages": [ # @OutputOnly
150 # The detected languages for this creative. The order is arbitrary. The codes
151 # are 2 or 5 characters and are documented at
152 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
153 "A String",
154 ],
155 "advertiserName": "A String", # The name of the company being advertised in the creative.
156 "clickThroughUrls": [ # The set of destination URLs for the creative.
157 "A String",
158 ],
159 "video": { # Video content for a creative. # A video creative.
160 "videoUrl": "A String", # The URL to fetch a video ad.
161 },
162 "detectedSensitiveCategories": [ # @OutputOnly Detected sensitive categories, if any.
163 # See the ad-sensitive-categories.txt file in the technical documentation for
164 # a list of IDs. You should use these IDs along with the
165 # excluded-sensitive-category field in the bid request to filter your bids.
166 42,
167 ],
168 "creativeId": "A String", # The buyer-defined creative ID of this creative.
169 # Can be used to filter the response of the
170 # creatives.list
171 # method.
172 "detectedAdvertiserIds": [ # @OutputOnly Detected advertiser IDs, if any.
173 "A String",
174 ],
175 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
176 "accountId": "A String", # The account that this creative belongs to.
177 # Can be used to filter the response of the
178 # creatives.list
179 # method.
180 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
181 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
182 # for possible values.
183 42,
184 ],
185 "agencyId": "A String", # The agency ID for this creative.
186 "html": { # HTML content for a creative. # An HTML creative.
187 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
188 "width": 42, # The width of the HTML snippet in pixels.
189 "height": 42, # The height of the HTML snippet in pixels.
190 },
191 "apiUpdateTime": "A String", # @OutputOnly The last update timestamp of the creative via API.
192 "native": { # Native content for a creative. # A native creative.
193 "body": "A String", # A long description of the ad.
194 "videoUrl": "A String", # The URL to fetch a native video ad.
195 "headline": "A String", # A short title for the ad.
196 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
197 # so long as the aspect ratio is preserved.
198 "url": "A String", # The URL of the image.
199 "width": 42, # Image width in pixels.
200 "height": 42, # Image height in pixels.
201 },
202 "clickTrackingUrl": "A String", # The URL to use for click tracking.
203 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
204 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
205 "priceDisplayText": "A String", # The price of the promoted app including currency info.
206 "callToAction": "A String", # A label for the button that the user is supposed to click.
207 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
208 # so long as the aspect ratio is preserved.
209 "url": "A String", # The URL of the image.
210 "width": 42, # Image width in pixels.
211 "height": 42, # Image height in pixels.
212 },
213 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
214 # so long as the aspect ratio is preserved.
215 "url": "A String", # The URL of the image.
216 "width": 42, # Image width in pixels.
217 "height": 42, # Image height in pixels.
218 },
219 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
220 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
221 },
222 "detectedProductCategories": [ # @OutputOnly Detected product categories, if any.
223 # See the ad-product-categories.txt file in the technical documentation
224 # for a list of IDs.
225 42,
226 ],
227 "detectedDomains": [ # @OutputOnly
228 # The detected domains for this creative.
229 "A String",
230 ],
231 "attributes": [ # All attributes for the ads that may be shown from this creative.
232 # Can be used to filter the response of the
233 # creatives.list
234 # method.
235 "A String",
236 ],
237 "dealsStatus": "A String", # @OutputOnly The top-level deals status of this creative.
238 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
239 # serving_restrictions will also exist. Note
240 # that this may be nuanced with other contextual restrictions, in which case,
241 # it may be preferable to read from serving_restrictions directly.
242 # Can be used to filter the response of the
243 # creatives.list
244 # method.
245 "servingRestrictions": [ # @OutputOnly The granular status of this ad in specific contexts.
246 # A context here relates to where something ultimately serves (for example,
247 # a physical location, a platform, an HTTPS vs HTTP request, or the type
248 # of auction).
249 { # @OutputOnly A representation of the status of an ad in a
250 # specific context. A context here relates to where something ultimately serves
251 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
252 # or the type of auction).
253 "contexts": [ # The contexts for the restriction.
254 { # The serving context for this restriction.
255 "all": "A String", # Matches all contexts.
256 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
257 "appTypes": [ # The app types this restriction applies to.
258 "A String",
259 ],
260 },
261 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
262 "securities": [ # The security types in this context.
263 "A String",
264 ],
265 },
266 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
267 "platforms": [ # The platforms this restriction applies to.
268 "A String",
269 ],
270 },
271 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
272 # location.
273 "geoCriteriaIds": [ # IDs representing the geo location for this context.
274 # Please refer to the
275 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
276 # file for different geo criteria IDs.
277 42,
278 ],
279 },
280 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
281 "auctionTypes": [ # The auction types this restriction applies to.
282 "A String",
283 ],
284 },
285 },
286 ],
287 "status": "A String", # The status of the creative in this context (for example, it has been
288 # explicitly disapproved or is pending review).
289 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
290 # Only present if status=DISAPPROVED.
291 # Can be used to filter the response of the
292 # creatives.list
293 # method.
294 { # @OutputOnly The reason and details for a disapproval.
295 "reason": "A String", # The categorized reason for disapproval.
296 "details": [ # Additional details about the reason for disapproval.
297 "A String",
298 ],
299 },
300 ],
301 },
302 ],
303 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
304 "A String",
305 ],
306 "corrections": [ # @OutputOnly Shows any corrections that were applied to this creative.
307 { # @OutputOnly Shows any corrections that were applied to this creative.
308 "contexts": [ # The contexts for the correction.
309 { # The serving context for this restriction.
310 "all": "A String", # Matches all contexts.
311 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
312 "appTypes": [ # The app types this restriction applies to.
313 "A String",
314 ],
315 },
316 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
317 "securities": [ # The security types in this context.
318 "A String",
319 ],
320 },
321 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
322 "platforms": [ # The platforms this restriction applies to.
323 "A String",
324 ],
325 },
326 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
327 # location.
328 "geoCriteriaIds": [ # IDs representing the geo location for this context.
329 # Please refer to the
330 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
331 # file for different geo criteria IDs.
332 42,
333 ],
334 },
335 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
336 "auctionTypes": [ # The auction types this restriction applies to.
337 "A String",
338 ],
339 },
340 },
341 ],
342 "type": "A String", # The type of correction that was applied to the creative.
343 "details": [ # Additional details about what was corrected.
344 "A String",
345 ],
346 },
347 ],
348 "openAuctionStatus": "A String", # @OutputOnly The top-level open auction status of this creative.
349 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
350 # serving_restrictions will also exist. Note
351 # that this may be nuanced with other contextual restrictions, in which case,
352 # it may be preferable to read from serving_restrictions directly.
353 # Can be used to filter the response of the
354 # creatives.list
355 # method.
356}
357
358 duplicateIdMode: string, Indicates if multiple creatives can share an ID or not. Default is
359NO_DUPLICATES (one ID per creative).
360 x__xgafv: string, V1 error format.
361 Allowed values
362 1 - v1 error format
363 2 - v2 error format
364
365Returns:
366 An object of the form:
367
368 { # A creative and its classification data.
369 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
370 "A String",
371 ],
372 "version": 42, # @OutputOnly The version of this creative.
373 "filteringStats": { # @OutputOnly Filtering reasons for this creative during a period of a single # @OutputOnly The filtering stats for this creative.
374 # day (from midnight to midnight Pacific).
375 "reasons": [ # The set of filtering reasons for this date.
376 { # A specific filtering status and how many times it occurred.
377 "status": 42, # The filtering status code. Please refer to the
378 # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictionaries/creative-status-codes.txt)
379 # file for different statuses.
380 "count": "A String", # The number of times the creative was filtered for the status. The
381 # count is aggregated across all publishers on the exchange.
382 },
383 ],
384 "date": { # Represents a whole calendar date, e.g. date of birth. The time of day and # The day during which the data was collected.
385 # The data is collected from 00:00:00 to 23:59:59 PT.
386 # During switches from PST to PDT and back, the day may
387 # contain 23 or 25 hours of data instead of the usual 24.
388 # time zone are either specified elsewhere or are not significant. The date
389 # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
390 # represent a year and month where the day is not significant, e.g. credit card
391 # expiration date. The year may be 0 to represent a month and day independent
392 # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
393 # and `google.protobuf.Timestamp`.
394 "month": 42, # Month of year. Must be from 1 to 12.
395 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
396 # if specifying a year/month where the day is not significant.
397 "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
398 # a year.
399 },
400 },
401 "detectedLanguages": [ # @OutputOnly
402 # The detected languages for this creative. The order is arbitrary. The codes
403 # are 2 or 5 characters and are documented at
404 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
405 "A String",
406 ],
407 "advertiserName": "A String", # The name of the company being advertised in the creative.
408 "clickThroughUrls": [ # The set of destination URLs for the creative.
409 "A String",
410 ],
411 "video": { # Video content for a creative. # A video creative.
412 "videoUrl": "A String", # The URL to fetch a video ad.
413 },
414 "detectedSensitiveCategories": [ # @OutputOnly Detected sensitive categories, if any.
415 # See the ad-sensitive-categories.txt file in the technical documentation for
416 # a list of IDs. You should use these IDs along with the
417 # excluded-sensitive-category field in the bid request to filter your bids.
418 42,
419 ],
420 "creativeId": "A String", # The buyer-defined creative ID of this creative.
421 # Can be used to filter the response of the
422 # creatives.list
423 # method.
424 "detectedAdvertiserIds": [ # @OutputOnly Detected advertiser IDs, if any.
425 "A String",
426 ],
427 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
428 "accountId": "A String", # The account that this creative belongs to.
429 # Can be used to filter the response of the
430 # creatives.list
431 # method.
432 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
433 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
434 # for possible values.
435 42,
436 ],
437 "agencyId": "A String", # The agency ID for this creative.
438 "html": { # HTML content for a creative. # An HTML creative.
439 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
440 "width": 42, # The width of the HTML snippet in pixels.
441 "height": 42, # The height of the HTML snippet in pixels.
442 },
443 "apiUpdateTime": "A String", # @OutputOnly The last update timestamp of the creative via API.
444 "native": { # Native content for a creative. # A native creative.
445 "body": "A String", # A long description of the ad.
446 "videoUrl": "A String", # The URL to fetch a native video ad.
447 "headline": "A String", # A short title for the ad.
448 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
449 # so long as the aspect ratio is preserved.
450 "url": "A String", # The URL of the image.
451 "width": 42, # Image width in pixels.
452 "height": 42, # Image height in pixels.
453 },
454 "clickTrackingUrl": "A String", # The URL to use for click tracking.
455 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
456 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
457 "priceDisplayText": "A String", # The price of the promoted app including currency info.
458 "callToAction": "A String", # A label for the button that the user is supposed to click.
459 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
460 # so long as the aspect ratio is preserved.
461 "url": "A String", # The URL of the image.
462 "width": 42, # Image width in pixels.
463 "height": 42, # Image height in pixels.
464 },
465 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
466 # so long as the aspect ratio is preserved.
467 "url": "A String", # The URL of the image.
468 "width": 42, # Image width in pixels.
469 "height": 42, # Image height in pixels.
470 },
471 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
472 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
473 },
474 "detectedProductCategories": [ # @OutputOnly Detected product categories, if any.
475 # See the ad-product-categories.txt file in the technical documentation
476 # for a list of IDs.
477 42,
478 ],
479 "detectedDomains": [ # @OutputOnly
480 # The detected domains for this creative.
481 "A String",
482 ],
483 "attributes": [ # All attributes for the ads that may be shown from this creative.
484 # Can be used to filter the response of the
485 # creatives.list
486 # method.
487 "A String",
488 ],
489 "dealsStatus": "A String", # @OutputOnly The top-level deals status of this creative.
490 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
491 # serving_restrictions will also exist. Note
492 # that this may be nuanced with other contextual restrictions, in which case,
493 # it may be preferable to read from serving_restrictions directly.
494 # Can be used to filter the response of the
495 # creatives.list
496 # method.
497 "servingRestrictions": [ # @OutputOnly The granular status of this ad in specific contexts.
498 # A context here relates to where something ultimately serves (for example,
499 # a physical location, a platform, an HTTPS vs HTTP request, or the type
500 # of auction).
501 { # @OutputOnly A representation of the status of an ad in a
502 # specific context. A context here relates to where something ultimately serves
503 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
504 # or the type of auction).
505 "contexts": [ # The contexts for the restriction.
506 { # The serving context for this restriction.
507 "all": "A String", # Matches all contexts.
508 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
509 "appTypes": [ # The app types this restriction applies to.
510 "A String",
511 ],
512 },
513 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
514 "securities": [ # The security types in this context.
515 "A String",
516 ],
517 },
518 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
519 "platforms": [ # The platforms this restriction applies to.
520 "A String",
521 ],
522 },
523 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
524 # location.
525 "geoCriteriaIds": [ # IDs representing the geo location for this context.
526 # Please refer to the
527 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
528 # file for different geo criteria IDs.
529 42,
530 ],
531 },
532 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
533 "auctionTypes": [ # The auction types this restriction applies to.
534 "A String",
535 ],
536 },
537 },
538 ],
539 "status": "A String", # The status of the creative in this context (for example, it has been
540 # explicitly disapproved or is pending review).
541 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
542 # Only present if status=DISAPPROVED.
543 # Can be used to filter the response of the
544 # creatives.list
545 # method.
546 { # @OutputOnly The reason and details for a disapproval.
547 "reason": "A String", # The categorized reason for disapproval.
548 "details": [ # Additional details about the reason for disapproval.
549 "A String",
550 ],
551 },
552 ],
553 },
554 ],
555 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
556 "A String",
557 ],
558 "corrections": [ # @OutputOnly Shows any corrections that were applied to this creative.
559 { # @OutputOnly Shows any corrections that were applied to this creative.
560 "contexts": [ # The contexts for the correction.
561 { # The serving context for this restriction.
562 "all": "A String", # Matches all contexts.
563 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
564 "appTypes": [ # The app types this restriction applies to.
565 "A String",
566 ],
567 },
568 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
569 "securities": [ # The security types in this context.
570 "A String",
571 ],
572 },
573 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
574 "platforms": [ # The platforms this restriction applies to.
575 "A String",
576 ],
577 },
578 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
579 # location.
580 "geoCriteriaIds": [ # IDs representing the geo location for this context.
581 # Please refer to the
582 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
583 # file for different geo criteria IDs.
584 42,
585 ],
586 },
587 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
588 "auctionTypes": [ # The auction types this restriction applies to.
589 "A String",
590 ],
591 },
592 },
593 ],
594 "type": "A String", # The type of correction that was applied to the creative.
595 "details": [ # Additional details about what was corrected.
596 "A String",
597 ],
598 },
599 ],
600 "openAuctionStatus": "A String", # @OutputOnly The top-level open auction status of this creative.
601 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
602 # serving_restrictions will also exist. Note
603 # that this may be nuanced with other contextual restrictions, in which case,
604 # it may be preferable to read from serving_restrictions directly.
605 # Can be used to filter the response of the
606 # creatives.list
607 # method.
608 }</pre>
609</div>
610
611<div class="method">
612 <code class="details" id="get">get(accountId, creativeId, x__xgafv=None)</code>
613 <pre>Gets a creative.
614
615Args:
616 accountId: string, The account the creative belongs to. (required)
617 creativeId: string, The ID of the creative to retrieve. (required)
618 x__xgafv: string, V1 error format.
619 Allowed values
620 1 - v1 error format
621 2 - v2 error format
622
623Returns:
624 An object of the form:
625
626 { # A creative and its classification data.
627 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
628 "A String",
629 ],
630 "version": 42, # @OutputOnly The version of this creative.
631 "filteringStats": { # @OutputOnly Filtering reasons for this creative during a period of a single # @OutputOnly The filtering stats for this creative.
632 # day (from midnight to midnight Pacific).
633 "reasons": [ # The set of filtering reasons for this date.
634 { # A specific filtering status and how many times it occurred.
635 "status": 42, # The filtering status code. Please refer to the
636 # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictionaries/creative-status-codes.txt)
637 # file for different statuses.
638 "count": "A String", # The number of times the creative was filtered for the status. The
639 # count is aggregated across all publishers on the exchange.
640 },
641 ],
642 "date": { # Represents a whole calendar date, e.g. date of birth. The time of day and # The day during which the data was collected.
643 # The data is collected from 00:00:00 to 23:59:59 PT.
644 # During switches from PST to PDT and back, the day may
645 # contain 23 or 25 hours of data instead of the usual 24.
646 # time zone are either specified elsewhere or are not significant. The date
647 # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
648 # represent a year and month where the day is not significant, e.g. credit card
649 # expiration date. The year may be 0 to represent a month and day independent
650 # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
651 # and `google.protobuf.Timestamp`.
652 "month": 42, # Month of year. Must be from 1 to 12.
653 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
654 # if specifying a year/month where the day is not significant.
655 "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
656 # a year.
657 },
658 },
659 "detectedLanguages": [ # @OutputOnly
660 # The detected languages for this creative. The order is arbitrary. The codes
661 # are 2 or 5 characters and are documented at
662 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
663 "A String",
664 ],
665 "advertiserName": "A String", # The name of the company being advertised in the creative.
666 "clickThroughUrls": [ # The set of destination URLs for the creative.
667 "A String",
668 ],
669 "video": { # Video content for a creative. # A video creative.
670 "videoUrl": "A String", # The URL to fetch a video ad.
671 },
672 "detectedSensitiveCategories": [ # @OutputOnly Detected sensitive categories, if any.
673 # See the ad-sensitive-categories.txt file in the technical documentation for
674 # a list of IDs. You should use these IDs along with the
675 # excluded-sensitive-category field in the bid request to filter your bids.
676 42,
677 ],
678 "creativeId": "A String", # The buyer-defined creative ID of this creative.
679 # Can be used to filter the response of the
680 # creatives.list
681 # method.
682 "detectedAdvertiserIds": [ # @OutputOnly Detected advertiser IDs, if any.
683 "A String",
684 ],
685 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
686 "accountId": "A String", # The account that this creative belongs to.
687 # Can be used to filter the response of the
688 # creatives.list
689 # method.
690 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
691 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
692 # for possible values.
693 42,
694 ],
695 "agencyId": "A String", # The agency ID for this creative.
696 "html": { # HTML content for a creative. # An HTML creative.
697 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
698 "width": 42, # The width of the HTML snippet in pixels.
699 "height": 42, # The height of the HTML snippet in pixels.
700 },
701 "apiUpdateTime": "A String", # @OutputOnly The last update timestamp of the creative via API.
702 "native": { # Native content for a creative. # A native creative.
703 "body": "A String", # A long description of the ad.
704 "videoUrl": "A String", # The URL to fetch a native video ad.
705 "headline": "A String", # A short title for the ad.
706 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
707 # so long as the aspect ratio is preserved.
708 "url": "A String", # The URL of the image.
709 "width": 42, # Image width in pixels.
710 "height": 42, # Image height in pixels.
711 },
712 "clickTrackingUrl": "A String", # The URL to use for click tracking.
713 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
714 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
715 "priceDisplayText": "A String", # The price of the promoted app including currency info.
716 "callToAction": "A String", # A label for the button that the user is supposed to click.
717 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
718 # so long as the aspect ratio is preserved.
719 "url": "A String", # The URL of the image.
720 "width": 42, # Image width in pixels.
721 "height": 42, # Image height in pixels.
722 },
723 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
724 # so long as the aspect ratio is preserved.
725 "url": "A String", # The URL of the image.
726 "width": 42, # Image width in pixels.
727 "height": 42, # Image height in pixels.
728 },
729 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
730 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
731 },
732 "detectedProductCategories": [ # @OutputOnly Detected product categories, if any.
733 # See the ad-product-categories.txt file in the technical documentation
734 # for a list of IDs.
735 42,
736 ],
737 "detectedDomains": [ # @OutputOnly
738 # The detected domains for this creative.
739 "A String",
740 ],
741 "attributes": [ # All attributes for the ads that may be shown from this creative.
742 # Can be used to filter the response of the
743 # creatives.list
744 # method.
745 "A String",
746 ],
747 "dealsStatus": "A String", # @OutputOnly The top-level deals status of this creative.
748 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
749 # serving_restrictions will also exist. Note
750 # that this may be nuanced with other contextual restrictions, in which case,
751 # it may be preferable to read from serving_restrictions directly.
752 # Can be used to filter the response of the
753 # creatives.list
754 # method.
755 "servingRestrictions": [ # @OutputOnly The granular status of this ad in specific contexts.
756 # A context here relates to where something ultimately serves (for example,
757 # a physical location, a platform, an HTTPS vs HTTP request, or the type
758 # of auction).
759 { # @OutputOnly A representation of the status of an ad in a
760 # specific context. A context here relates to where something ultimately serves
761 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
762 # or the type of auction).
763 "contexts": [ # The contexts for the restriction.
764 { # The serving context for this restriction.
765 "all": "A String", # Matches all contexts.
766 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
767 "appTypes": [ # The app types this restriction applies to.
768 "A String",
769 ],
770 },
771 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
772 "securities": [ # The security types in this context.
773 "A String",
774 ],
775 },
776 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
777 "platforms": [ # The platforms this restriction applies to.
778 "A String",
779 ],
780 },
781 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
782 # location.
783 "geoCriteriaIds": [ # IDs representing the geo location for this context.
784 # Please refer to the
785 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
786 # file for different geo criteria IDs.
787 42,
788 ],
789 },
790 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
791 "auctionTypes": [ # The auction types this restriction applies to.
792 "A String",
793 ],
794 },
795 },
796 ],
797 "status": "A String", # The status of the creative in this context (for example, it has been
798 # explicitly disapproved or is pending review).
799 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
800 # Only present if status=DISAPPROVED.
801 # Can be used to filter the response of the
802 # creatives.list
803 # method.
804 { # @OutputOnly The reason and details for a disapproval.
805 "reason": "A String", # The categorized reason for disapproval.
806 "details": [ # Additional details about the reason for disapproval.
807 "A String",
808 ],
809 },
810 ],
811 },
812 ],
813 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
814 "A String",
815 ],
816 "corrections": [ # @OutputOnly Shows any corrections that were applied to this creative.
817 { # @OutputOnly Shows any corrections that were applied to this creative.
818 "contexts": [ # The contexts for the correction.
819 { # The serving context for this restriction.
820 "all": "A String", # Matches all contexts.
821 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
822 "appTypes": [ # The app types this restriction applies to.
823 "A String",
824 ],
825 },
826 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
827 "securities": [ # The security types in this context.
828 "A String",
829 ],
830 },
831 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
832 "platforms": [ # The platforms this restriction applies to.
833 "A String",
834 ],
835 },
836 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
837 # location.
838 "geoCriteriaIds": [ # IDs representing the geo location for this context.
839 # Please refer to the
840 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
841 # file for different geo criteria IDs.
842 42,
843 ],
844 },
845 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
846 "auctionTypes": [ # The auction types this restriction applies to.
847 "A String",
848 ],
849 },
850 },
851 ],
852 "type": "A String", # The type of correction that was applied to the creative.
853 "details": [ # Additional details about what was corrected.
854 "A String",
855 ],
856 },
857 ],
858 "openAuctionStatus": "A String", # @OutputOnly The top-level open auction status of this creative.
859 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
860 # serving_restrictions will also exist. Note
861 # that this may be nuanced with other contextual restrictions, in which case,
862 # it may be preferable to read from serving_restrictions directly.
863 # Can be used to filter the response of the
864 # creatives.list
865 # method.
866 }</pre>
867</div>
868
869<div class="method">
870 <code class="details" id="list">list(accountId=None, pageSize=None, pageToken=None, query=None, x__xgafv=None)</code>
871 <pre>Lists creatives.
872
873Args:
874 accountId: string, The account to list the creatives from.
875Specify "-" to list all creatives the current user has access to. (required)
876 pageSize: integer, Requested page size. The server may return fewer creatives than requested
877(due to timeout constraint) even if more are available via another call.
878If unspecified, server will pick an appropriate default.
879Acceptable values are 1 to 1000, inclusive.
880 pageToken: string, A token identifying a page of results the server should return.
881Typically, this is the value of
882ListCreativesResponse.next_page_token
883returned from the previous call to 'ListCreatives' method.
884 query: string, An optional query string to filter creatives. If no filter is specified,
885all active creatives will be returned.
886Supported queries are:
887<ul>
888<li>accountId=<i>account_id_string</i>
889<li>creativeId=<i>creative_id_string</i>
890<li>dealsStatus: {approved, conditionally_approved, disapproved,
891 not_checked}
892<li>openAuctionStatus: {approved, conditionally_approved, disapproved,
893 not_checked}
894<li>attribute: {a numeric attribute from the list of attributes}
895<li>disapprovalReason: {a reason from DisapprovalReason
896</ul>
897Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'
898 x__xgafv: string, V1 error format.
899 Allowed values
900 1 - v1 error format
901 2 - v2 error format
902
903Returns:
904 An object of the form:
905
906 { # A response for listing creatives.
907 "nextPageToken": "A String", # A token to retrieve the next page of results.
908 # Pass this value in the
909 # ListCreativesRequest.page_token
910 # field in the subsequent call to `ListCreatives` method to retrieve the next
911 # page of results.
912 "creatives": [ # The list of creatives.
913 { # A creative and its classification data.
914 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
915 "A String",
916 ],
917 "version": 42, # @OutputOnly The version of this creative.
918 "filteringStats": { # @OutputOnly Filtering reasons for this creative during a period of a single # @OutputOnly The filtering stats for this creative.
919 # day (from midnight to midnight Pacific).
920 "reasons": [ # The set of filtering reasons for this date.
921 { # A specific filtering status and how many times it occurred.
922 "status": 42, # The filtering status code. Please refer to the
923 # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictionaries/creative-status-codes.txt)
924 # file for different statuses.
925 "count": "A String", # The number of times the creative was filtered for the status. The
926 # count is aggregated across all publishers on the exchange.
927 },
928 ],
929 "date": { # Represents a whole calendar date, e.g. date of birth. The time of day and # The day during which the data was collected.
930 # The data is collected from 00:00:00 to 23:59:59 PT.
931 # During switches from PST to PDT and back, the day may
932 # contain 23 or 25 hours of data instead of the usual 24.
933 # time zone are either specified elsewhere or are not significant. The date
934 # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
935 # represent a year and month where the day is not significant, e.g. credit card
936 # expiration date. The year may be 0 to represent a month and day independent
937 # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
938 # and `google.protobuf.Timestamp`.
939 "month": 42, # Month of year. Must be from 1 to 12.
940 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
941 # if specifying a year/month where the day is not significant.
942 "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
943 # a year.
944 },
945 },
946 "detectedLanguages": [ # @OutputOnly
947 # The detected languages for this creative. The order is arbitrary. The codes
948 # are 2 or 5 characters and are documented at
949 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
950 "A String",
951 ],
952 "advertiserName": "A String", # The name of the company being advertised in the creative.
953 "clickThroughUrls": [ # The set of destination URLs for the creative.
954 "A String",
955 ],
956 "video": { # Video content for a creative. # A video creative.
957 "videoUrl": "A String", # The URL to fetch a video ad.
958 },
959 "detectedSensitiveCategories": [ # @OutputOnly Detected sensitive categories, if any.
960 # See the ad-sensitive-categories.txt file in the technical documentation for
961 # a list of IDs. You should use these IDs along with the
962 # excluded-sensitive-category field in the bid request to filter your bids.
963 42,
964 ],
965 "creativeId": "A String", # The buyer-defined creative ID of this creative.
966 # Can be used to filter the response of the
967 # creatives.list
968 # method.
969 "detectedAdvertiserIds": [ # @OutputOnly Detected advertiser IDs, if any.
970 "A String",
971 ],
972 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
973 "accountId": "A String", # The account that this creative belongs to.
974 # Can be used to filter the response of the
975 # creatives.list
976 # method.
977 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
978 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
979 # for possible values.
980 42,
981 ],
982 "agencyId": "A String", # The agency ID for this creative.
983 "html": { # HTML content for a creative. # An HTML creative.
984 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
985 "width": 42, # The width of the HTML snippet in pixels.
986 "height": 42, # The height of the HTML snippet in pixels.
987 },
988 "apiUpdateTime": "A String", # @OutputOnly The last update timestamp of the creative via API.
989 "native": { # Native content for a creative. # A native creative.
990 "body": "A String", # A long description of the ad.
991 "videoUrl": "A String", # The URL to fetch a native video ad.
992 "headline": "A String", # A short title for the ad.
993 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
994 # so long as the aspect ratio is preserved.
995 "url": "A String", # The URL of the image.
996 "width": 42, # Image width in pixels.
997 "height": 42, # Image height in pixels.
998 },
999 "clickTrackingUrl": "A String", # The URL to use for click tracking.
1000 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
1001 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
1002 "priceDisplayText": "A String", # The price of the promoted app including currency info.
1003 "callToAction": "A String", # A label for the button that the user is supposed to click.
1004 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
1005 # so long as the aspect ratio is preserved.
1006 "url": "A String", # The URL of the image.
1007 "width": 42, # Image width in pixels.
1008 "height": 42, # Image height in pixels.
1009 },
1010 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
1011 # so long as the aspect ratio is preserved.
1012 "url": "A String", # The URL of the image.
1013 "width": 42, # Image width in pixels.
1014 "height": 42, # Image height in pixels.
1015 },
1016 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
1017 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
1018 },
1019 "detectedProductCategories": [ # @OutputOnly Detected product categories, if any.
1020 # See the ad-product-categories.txt file in the technical documentation
1021 # for a list of IDs.
1022 42,
1023 ],
1024 "detectedDomains": [ # @OutputOnly
1025 # The detected domains for this creative.
1026 "A String",
1027 ],
1028 "attributes": [ # All attributes for the ads that may be shown from this creative.
1029 # Can be used to filter the response of the
1030 # creatives.list
1031 # method.
1032 "A String",
1033 ],
1034 "dealsStatus": "A String", # @OutputOnly The top-level deals status of this creative.
1035 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
1036 # serving_restrictions will also exist. Note
1037 # that this may be nuanced with other contextual restrictions, in which case,
1038 # it may be preferable to read from serving_restrictions directly.
1039 # Can be used to filter the response of the
1040 # creatives.list
1041 # method.
1042 "servingRestrictions": [ # @OutputOnly The granular status of this ad in specific contexts.
1043 # A context here relates to where something ultimately serves (for example,
1044 # a physical location, a platform, an HTTPS vs HTTP request, or the type
1045 # of auction).
1046 { # @OutputOnly A representation of the status of an ad in a
1047 # specific context. A context here relates to where something ultimately serves
1048 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1049 # or the type of auction).
1050 "contexts": [ # The contexts for the restriction.
1051 { # The serving context for this restriction.
1052 "all": "A String", # Matches all contexts.
1053 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1054 "appTypes": [ # The app types this restriction applies to.
1055 "A String",
1056 ],
1057 },
1058 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
1059 "securities": [ # The security types in this context.
1060 "A String",
1061 ],
1062 },
1063 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1064 "platforms": [ # The platforms this restriction applies to.
1065 "A String",
1066 ],
1067 },
1068 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1069 # location.
1070 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1071 # Please refer to the
1072 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1073 # file for different geo criteria IDs.
1074 42,
1075 ],
1076 },
1077 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
1078 "auctionTypes": [ # The auction types this restriction applies to.
1079 "A String",
1080 ],
1081 },
1082 },
1083 ],
1084 "status": "A String", # The status of the creative in this context (for example, it has been
1085 # explicitly disapproved or is pending review).
1086 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
1087 # Only present if status=DISAPPROVED.
1088 # Can be used to filter the response of the
1089 # creatives.list
1090 # method.
1091 { # @OutputOnly The reason and details for a disapproval.
1092 "reason": "A String", # The categorized reason for disapproval.
1093 "details": [ # Additional details about the reason for disapproval.
1094 "A String",
1095 ],
1096 },
1097 ],
1098 },
1099 ],
1100 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
1101 "A String",
1102 ],
1103 "corrections": [ # @OutputOnly Shows any corrections that were applied to this creative.
1104 { # @OutputOnly Shows any corrections that were applied to this creative.
1105 "contexts": [ # The contexts for the correction.
1106 { # The serving context for this restriction.
1107 "all": "A String", # Matches all contexts.
1108 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1109 "appTypes": [ # The app types this restriction applies to.
1110 "A String",
1111 ],
1112 },
1113 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
1114 "securities": [ # The security types in this context.
1115 "A String",
1116 ],
1117 },
1118 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1119 "platforms": [ # The platforms this restriction applies to.
1120 "A String",
1121 ],
1122 },
1123 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1124 # location.
1125 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1126 # Please refer to the
1127 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1128 # file for different geo criteria IDs.
1129 42,
1130 ],
1131 },
1132 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
1133 "auctionTypes": [ # The auction types this restriction applies to.
1134 "A String",
1135 ],
1136 },
1137 },
1138 ],
1139 "type": "A String", # The type of correction that was applied to the creative.
1140 "details": [ # Additional details about what was corrected.
1141 "A String",
1142 ],
1143 },
1144 ],
1145 "openAuctionStatus": "A String", # @OutputOnly The top-level open auction status of this creative.
1146 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
1147 # serving_restrictions will also exist. Note
1148 # that this may be nuanced with other contextual restrictions, in which case,
1149 # it may be preferable to read from serving_restrictions directly.
1150 # Can be used to filter the response of the
1151 # creatives.list
1152 # method.
1153 },
1154 ],
1155 }</pre>
1156</div>
1157
1158<div class="method">
1159 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1160 <pre>Retrieves the next page of results.
1161
1162Args:
1163 previous_request: The request for the previous page. (required)
1164 previous_response: The response from the request for the previous page. (required)
1165
1166Returns:
1167 A request object that you can call 'execute()' on to request the next
1168 page. Returns None if there are no more items in the collection.
1169 </pre>
1170</div>
1171
1172<div class="method">
1173 <code class="details" id="stopWatching">stopWatching(accountId, creativeId=None, body, x__xgafv=None)</code>
1174 <pre>Stops watching a creative. Will stop push notifications being sent to the
1175topics when the creative changes status.
1176
1177Args:
1178 accountId: string, The account of the creative to stop notifications for. (required)
1179 creativeId: string, The creative ID of the creative to stop notifications for.
1180Specify "-" to specify stopping account level notifications. (required)
1181 body: object, The request body. (required)
1182 The object takes the form of:
1183
1184{ # A request for stopping notifications for changes to creative Status.
1185 }
1186
1187 x__xgafv: string, V1 error format.
1188 Allowed values
1189 1 - v1 error format
1190 2 - v2 error format
1191
1192Returns:
1193 An object of the form:
1194
1195 { # A generic empty message that you can re-use to avoid defining duplicated
1196 # empty messages in your APIs. A typical example is to use it as the request
1197 # or the response type of an API method. For instance:
1198 #
1199 # service Foo {
1200 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1201 # }
1202 #
1203 # The JSON representation for `Empty` is empty JSON object `{}`.
1204 }</pre>
1205</div>
1206
1207<div class="method">
1208 <code class="details" id="update">update(accountId=None, creativeId=None, body, x__xgafv=None)</code>
1209 <pre>Updates a creative.
1210
1211Args:
1212 accountId: string, The account that this creative belongs to.
1213Can be used to filter the response of the
1214creatives.list
1215method. (required)
1216 creativeId: string, The buyer-defined creative ID of this creative.
1217Can be used to filter the response of the
1218creatives.list
1219method. (required)
1220 body: object, The request body. (required)
1221 The object takes the form of:
1222
1223{ # A creative and its classification data.
1224 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
1225 "A String",
1226 ],
1227 "version": 42, # @OutputOnly The version of this creative.
1228 "filteringStats": { # @OutputOnly Filtering reasons for this creative during a period of a single # @OutputOnly The filtering stats for this creative.
1229 # day (from midnight to midnight Pacific).
1230 "reasons": [ # The set of filtering reasons for this date.
1231 { # A specific filtering status and how many times it occurred.
1232 "status": 42, # The filtering status code. Please refer to the
1233 # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictionaries/creative-status-codes.txt)
1234 # file for different statuses.
1235 "count": "A String", # The number of times the creative was filtered for the status. The
1236 # count is aggregated across all publishers on the exchange.
1237 },
1238 ],
1239 "date": { # Represents a whole calendar date, e.g. date of birth. The time of day and # The day during which the data was collected.
1240 # The data is collected from 00:00:00 to 23:59:59 PT.
1241 # During switches from PST to PDT and back, the day may
1242 # contain 23 or 25 hours of data instead of the usual 24.
1243 # time zone are either specified elsewhere or are not significant. The date
1244 # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1245 # represent a year and month where the day is not significant, e.g. credit card
1246 # expiration date. The year may be 0 to represent a month and day independent
1247 # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1248 # and `google.protobuf.Timestamp`.
1249 "month": 42, # Month of year. Must be from 1 to 12.
1250 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1251 # if specifying a year/month where the day is not significant.
1252 "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1253 # a year.
1254 },
1255 },
1256 "detectedLanguages": [ # @OutputOnly
1257 # The detected languages for this creative. The order is arbitrary. The codes
1258 # are 2 or 5 characters and are documented at
1259 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
1260 "A String",
1261 ],
1262 "advertiserName": "A String", # The name of the company being advertised in the creative.
1263 "clickThroughUrls": [ # The set of destination URLs for the creative.
1264 "A String",
1265 ],
1266 "video": { # Video content for a creative. # A video creative.
1267 "videoUrl": "A String", # The URL to fetch a video ad.
1268 },
1269 "detectedSensitiveCategories": [ # @OutputOnly Detected sensitive categories, if any.
1270 # See the ad-sensitive-categories.txt file in the technical documentation for
1271 # a list of IDs. You should use these IDs along with the
1272 # excluded-sensitive-category field in the bid request to filter your bids.
1273 42,
1274 ],
1275 "creativeId": "A String", # The buyer-defined creative ID of this creative.
1276 # Can be used to filter the response of the
1277 # creatives.list
1278 # method.
1279 "detectedAdvertiserIds": [ # @OutputOnly Detected advertiser IDs, if any.
1280 "A String",
1281 ],
1282 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
1283 "accountId": "A String", # The account that this creative belongs to.
1284 # Can be used to filter the response of the
1285 # creatives.list
1286 # method.
1287 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
1288 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
1289 # for possible values.
1290 42,
1291 ],
1292 "agencyId": "A String", # The agency ID for this creative.
1293 "html": { # HTML content for a creative. # An HTML creative.
1294 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
1295 "width": 42, # The width of the HTML snippet in pixels.
1296 "height": 42, # The height of the HTML snippet in pixels.
1297 },
1298 "apiUpdateTime": "A String", # @OutputOnly The last update timestamp of the creative via API.
1299 "native": { # Native content for a creative. # A native creative.
1300 "body": "A String", # A long description of the ad.
1301 "videoUrl": "A String", # The URL to fetch a native video ad.
1302 "headline": "A String", # A short title for the ad.
1303 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
1304 # so long as the aspect ratio is preserved.
1305 "url": "A String", # The URL of the image.
1306 "width": 42, # Image width in pixels.
1307 "height": 42, # Image height in pixels.
1308 },
1309 "clickTrackingUrl": "A String", # The URL to use for click tracking.
1310 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
1311 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
1312 "priceDisplayText": "A String", # The price of the promoted app including currency info.
1313 "callToAction": "A String", # A label for the button that the user is supposed to click.
1314 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
1315 # so long as the aspect ratio is preserved.
1316 "url": "A String", # The URL of the image.
1317 "width": 42, # Image width in pixels.
1318 "height": 42, # Image height in pixels.
1319 },
1320 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
1321 # so long as the aspect ratio is preserved.
1322 "url": "A String", # The URL of the image.
1323 "width": 42, # Image width in pixels.
1324 "height": 42, # Image height in pixels.
1325 },
1326 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
1327 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
1328 },
1329 "detectedProductCategories": [ # @OutputOnly Detected product categories, if any.
1330 # See the ad-product-categories.txt file in the technical documentation
1331 # for a list of IDs.
1332 42,
1333 ],
1334 "detectedDomains": [ # @OutputOnly
1335 # The detected domains for this creative.
1336 "A String",
1337 ],
1338 "attributes": [ # All attributes for the ads that may be shown from this creative.
1339 # Can be used to filter the response of the
1340 # creatives.list
1341 # method.
1342 "A String",
1343 ],
1344 "dealsStatus": "A String", # @OutputOnly The top-level deals status of this creative.
1345 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
1346 # serving_restrictions will also exist. Note
1347 # that this may be nuanced with other contextual restrictions, in which case,
1348 # it may be preferable to read from serving_restrictions directly.
1349 # Can be used to filter the response of the
1350 # creatives.list
1351 # method.
1352 "servingRestrictions": [ # @OutputOnly The granular status of this ad in specific contexts.
1353 # A context here relates to where something ultimately serves (for example,
1354 # a physical location, a platform, an HTTPS vs HTTP request, or the type
1355 # of auction).
1356 { # @OutputOnly A representation of the status of an ad in a
1357 # specific context. A context here relates to where something ultimately serves
1358 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1359 # or the type of auction).
1360 "contexts": [ # The contexts for the restriction.
1361 { # The serving context for this restriction.
1362 "all": "A String", # Matches all contexts.
1363 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1364 "appTypes": [ # The app types this restriction applies to.
1365 "A String",
1366 ],
1367 },
1368 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
1369 "securities": [ # The security types in this context.
1370 "A String",
1371 ],
1372 },
1373 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1374 "platforms": [ # The platforms this restriction applies to.
1375 "A String",
1376 ],
1377 },
1378 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1379 # location.
1380 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1381 # Please refer to the
1382 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1383 # file for different geo criteria IDs.
1384 42,
1385 ],
1386 },
1387 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
1388 "auctionTypes": [ # The auction types this restriction applies to.
1389 "A String",
1390 ],
1391 },
1392 },
1393 ],
1394 "status": "A String", # The status of the creative in this context (for example, it has been
1395 # explicitly disapproved or is pending review).
1396 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
1397 # Only present if status=DISAPPROVED.
1398 # Can be used to filter the response of the
1399 # creatives.list
1400 # method.
1401 { # @OutputOnly The reason and details for a disapproval.
1402 "reason": "A String", # The categorized reason for disapproval.
1403 "details": [ # Additional details about the reason for disapproval.
1404 "A String",
1405 ],
1406 },
1407 ],
1408 },
1409 ],
1410 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
1411 "A String",
1412 ],
1413 "corrections": [ # @OutputOnly Shows any corrections that were applied to this creative.
1414 { # @OutputOnly Shows any corrections that were applied to this creative.
1415 "contexts": [ # The contexts for the correction.
1416 { # The serving context for this restriction.
1417 "all": "A String", # Matches all contexts.
1418 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1419 "appTypes": [ # The app types this restriction applies to.
1420 "A String",
1421 ],
1422 },
1423 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
1424 "securities": [ # The security types in this context.
1425 "A String",
1426 ],
1427 },
1428 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1429 "platforms": [ # The platforms this restriction applies to.
1430 "A String",
1431 ],
1432 },
1433 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1434 # location.
1435 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1436 # Please refer to the
1437 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1438 # file for different geo criteria IDs.
1439 42,
1440 ],
1441 },
1442 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
1443 "auctionTypes": [ # The auction types this restriction applies to.
1444 "A String",
1445 ],
1446 },
1447 },
1448 ],
1449 "type": "A String", # The type of correction that was applied to the creative.
1450 "details": [ # Additional details about what was corrected.
1451 "A String",
1452 ],
1453 },
1454 ],
1455 "openAuctionStatus": "A String", # @OutputOnly The top-level open auction status of this creative.
1456 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
1457 # serving_restrictions will also exist. Note
1458 # that this may be nuanced with other contextual restrictions, in which case,
1459 # it may be preferable to read from serving_restrictions directly.
1460 # Can be used to filter the response of the
1461 # creatives.list
1462 # method.
1463}
1464
1465 x__xgafv: string, V1 error format.
1466 Allowed values
1467 1 - v1 error format
1468 2 - v2 error format
1469
1470Returns:
1471 An object of the form:
1472
1473 { # A creative and its classification data.
1474 "impressionTrackingUrls": [ # The set of URLs to be called to record an impression.
1475 "A String",
1476 ],
1477 "version": 42, # @OutputOnly The version of this creative.
1478 "filteringStats": { # @OutputOnly Filtering reasons for this creative during a period of a single # @OutputOnly The filtering stats for this creative.
1479 # day (from midnight to midnight Pacific).
1480 "reasons": [ # The set of filtering reasons for this date.
1481 { # A specific filtering status and how many times it occurred.
1482 "status": 42, # The filtering status code. Please refer to the
1483 # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictionaries/creative-status-codes.txt)
1484 # file for different statuses.
1485 "count": "A String", # The number of times the creative was filtered for the status. The
1486 # count is aggregated across all publishers on the exchange.
1487 },
1488 ],
1489 "date": { # Represents a whole calendar date, e.g. date of birth. The time of day and # The day during which the data was collected.
1490 # The data is collected from 00:00:00 to 23:59:59 PT.
1491 # During switches from PST to PDT and back, the day may
1492 # contain 23 or 25 hours of data instead of the usual 24.
1493 # time zone are either specified elsewhere or are not significant. The date
1494 # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1495 # represent a year and month where the day is not significant, e.g. credit card
1496 # expiration date. The year may be 0 to represent a month and day independent
1497 # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1498 # and `google.protobuf.Timestamp`.
1499 "month": 42, # Month of year. Must be from 1 to 12.
1500 "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1501 # if specifying a year/month where the day is not significant.
1502 "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1503 # a year.
1504 },
1505 },
1506 "detectedLanguages": [ # @OutputOnly
1507 # The detected languages for this creative. The order is arbitrary. The codes
1508 # are 2 or 5 characters and are documented at
1509 # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
1510 "A String",
1511 ],
1512 "advertiserName": "A String", # The name of the company being advertised in the creative.
1513 "clickThroughUrls": [ # The set of destination URLs for the creative.
1514 "A String",
1515 ],
1516 "video": { # Video content for a creative. # A video creative.
1517 "videoUrl": "A String", # The URL to fetch a video ad.
1518 },
1519 "detectedSensitiveCategories": [ # @OutputOnly Detected sensitive categories, if any.
1520 # See the ad-sensitive-categories.txt file in the technical documentation for
1521 # a list of IDs. You should use these IDs along with the
1522 # excluded-sensitive-category field in the bid request to filter your bids.
1523 42,
1524 ],
1525 "creativeId": "A String", # The buyer-defined creative ID of this creative.
1526 # Can be used to filter the response of the
1527 # creatives.list
1528 # method.
1529 "detectedAdvertiserIds": [ # @OutputOnly Detected advertiser IDs, if any.
1530 "A String",
1531 ],
1532 "adChoicesDestinationUrl": "A String", # The link to AdChoices destination page.
1533 "accountId": "A String", # The account that this creative belongs to.
1534 # Can be used to filter the response of the
1535 # creatives.list
1536 # method.
1537 "vendorIds": [ # All vendor IDs for the ads that may be shown from this creative.
1538 # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
1539 # for possible values.
1540 42,
1541 ],
1542 "agencyId": "A String", # The agency ID for this creative.
1543 "html": { # HTML content for a creative. # An HTML creative.
1544 "snippet": "A String", # The HTML snippet that displays the ad when inserted in the web page.
1545 "width": 42, # The width of the HTML snippet in pixels.
1546 "height": 42, # The height of the HTML snippet in pixels.
1547 },
1548 "apiUpdateTime": "A String", # @OutputOnly The last update timestamp of the creative via API.
1549 "native": { # Native content for a creative. # A native creative.
1550 "body": "A String", # A long description of the ad.
1551 "videoUrl": "A String", # The URL to fetch a native video ad.
1552 "headline": "A String", # A short title for the ad.
1553 "image": { # An image resource. You may provide a larger image than was requested, # A large image.
1554 # so long as the aspect ratio is preserved.
1555 "url": "A String", # The URL of the image.
1556 "width": 42, # Image width in pixels.
1557 "height": 42, # Image height in pixels.
1558 },
1559 "clickTrackingUrl": "A String", # The URL to use for click tracking.
1560 "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
1561 "advertiserName": "A String", # The name of the advertiser or sponsor, to be displayed in the ad creative.
1562 "priceDisplayText": "A String", # The price of the promoted app including currency info.
1563 "callToAction": "A String", # A label for the button that the user is supposed to click.
1564 "logo": { # An image resource. You may provide a larger image than was requested, # A smaller image, for the advertiser's logo.
1565 # so long as the aspect ratio is preserved.
1566 "url": "A String", # The URL of the image.
1567 "width": 42, # Image width in pixels.
1568 "height": 42, # Image height in pixels.
1569 },
1570 "appIcon": { # An image resource. You may provide a larger image than was requested, # The app icon, for app download ads.
1571 # so long as the aspect ratio is preserved.
1572 "url": "A String", # The URL of the image.
1573 "width": 42, # Image width in pixels.
1574 "height": 42, # Image height in pixels.
1575 },
1576 "storeUrl": "A String", # The URL to the app store to purchase/download the promoted app.
1577 "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
1578 },
1579 "detectedProductCategories": [ # @OutputOnly Detected product categories, if any.
1580 # See the ad-product-categories.txt file in the technical documentation
1581 # for a list of IDs.
1582 42,
1583 ],
1584 "detectedDomains": [ # @OutputOnly
1585 # The detected domains for this creative.
1586 "A String",
1587 ],
1588 "attributes": [ # All attributes for the ads that may be shown from this creative.
1589 # Can be used to filter the response of the
1590 # creatives.list
1591 # method.
1592 "A String",
1593 ],
1594 "dealsStatus": "A String", # @OutputOnly The top-level deals status of this creative.
1595 # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
1596 # serving_restrictions will also exist. Note
1597 # that this may be nuanced with other contextual restrictions, in which case,
1598 # it may be preferable to read from serving_restrictions directly.
1599 # Can be used to filter the response of the
1600 # creatives.list
1601 # method.
1602 "servingRestrictions": [ # @OutputOnly The granular status of this ad in specific contexts.
1603 # A context here relates to where something ultimately serves (for example,
1604 # a physical location, a platform, an HTTPS vs HTTP request, or the type
1605 # of auction).
1606 { # @OutputOnly A representation of the status of an ad in a
1607 # specific context. A context here relates to where something ultimately serves
1608 # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1609 # or the type of auction).
1610 "contexts": [ # The contexts for the restriction.
1611 { # The serving context for this restriction.
1612 "all": "A String", # Matches all contexts.
1613 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1614 "appTypes": [ # The app types this restriction applies to.
1615 "A String",
1616 ],
1617 },
1618 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
1619 "securities": [ # The security types in this context.
1620 "A String",
1621 ],
1622 },
1623 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1624 "platforms": [ # The platforms this restriction applies to.
1625 "A String",
1626 ],
1627 },
1628 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1629 # location.
1630 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1631 # Please refer to the
1632 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1633 # file for different geo criteria IDs.
1634 42,
1635 ],
1636 },
1637 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
1638 "auctionTypes": [ # The auction types this restriction applies to.
1639 "A String",
1640 ],
1641 },
1642 },
1643 ],
1644 "status": "A String", # The status of the creative in this context (for example, it has been
1645 # explicitly disapproved or is pending review).
1646 "disapprovalReasons": [ # Any disapprovals bound to this restriction.
1647 # Only present if status=DISAPPROVED.
1648 # Can be used to filter the response of the
1649 # creatives.list
1650 # method.
1651 { # @OutputOnly The reason and details for a disapproval.
1652 "reason": "A String", # The categorized reason for disapproval.
1653 "details": [ # Additional details about the reason for disapproval.
1654 "A String",
1655 ],
1656 },
1657 ],
1658 },
1659 ],
1660 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this creative.
1661 "A String",
1662 ],
1663 "corrections": [ # @OutputOnly Shows any corrections that were applied to this creative.
1664 { # @OutputOnly Shows any corrections that were applied to this creative.
1665 "contexts": [ # The contexts for the correction.
1666 { # The serving context for this restriction.
1667 "all": "A String", # Matches all contexts.
1668 "appType": { # @OutputOnly The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1669 "appTypes": [ # The app types this restriction applies to.
1670 "A String",
1671 ],
1672 },
1673 "securityType": { # @OutputOnly A security context. # Matches impressions for a particular security type.
1674 "securities": [ # The security types in this context.
1675 "A String",
1676 ],
1677 },
1678 "platform": { # @OutputOnly The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1679 "platforms": [ # The platforms this restriction applies to.
1680 "A String",
1681 ],
1682 },
1683 "location": { # @OutputOnly The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific
1684 # location.
1685 "geoCriteriaIds": [ # IDs representing the geo location for this context.
1686 # Please refer to the
1687 # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv)
1688 # file for different geo criteria IDs.
1689 42,
1690 ],
1691 },
1692 "auctionType": { # @OutputOnly The auction type the restriction applies to. # Matches impressions for a particular auction type.
1693 "auctionTypes": [ # The auction types this restriction applies to.
1694 "A String",
1695 ],
1696 },
1697 },
1698 ],
1699 "type": "A String", # The type of correction that was applied to the creative.
1700 "details": [ # Additional details about what was corrected.
1701 "A String",
1702 ],
1703 },
1704 ],
1705 "openAuctionStatus": "A String", # @OutputOnly The top-level open auction status of this creative.
1706 # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
1707 # serving_restrictions will also exist. Note
1708 # that this may be nuanced with other contextual restrictions, in which case,
1709 # it may be preferable to read from serving_restrictions directly.
1710 # Can be used to filter the response of the
1711 # creatives.list
1712 # method.
1713 }</pre>
1714</div>
1715
1716<div class="method">
1717 <code class="details" id="watch">watch(accountId, creativeId=None, body, x__xgafv=None)</code>
1718 <pre>Watches a creative. Will result in push notifications being sent to the
1719topic when the creative changes status.
1720
1721Args:
1722 accountId: string, The account of the creative to watch. (required)
1723 creativeId: string, The creative ID to watch for status changes.
1724Specify "-" to watch all creatives under the above account.
1725If both creative-level and account-level notifications are
1726sent, only a single notification will be sent to the
1727creative-level notification topic. (required)
1728 body: object, The request body. (required)
1729 The object takes the form of:
1730
1731{ # A request for watching changes to creative Status.
1732 "topic": "A String", # The Pub/Sub topic to publish notifications to.
1733 # This topic must already exist and must give permission to
1734 # ad-exchange-buyside-reports@google.com to write to the topic.
1735 # This should be the full resource name in
1736 # "projects/{project_id}/topics/{topic_id}" format.
1737 }
1738
1739 x__xgafv: string, V1 error format.
1740 Allowed values
1741 1 - v1 error format
1742 2 - v2 error format
1743
1744Returns:
1745 An object of the form:
1746
1747 { # A generic empty message that you can re-use to avoid defining duplicated
1748 # empty messages in your APIs. A typical example is to use it as the request
1749 # or the response type of an API method. For instance:
1750 #
1751 # service Foo {
1752 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1753 # }
1754 #
1755 # The JSON representation for `Empty` is empty JSON object `{}`.
1756 }</pre>
1757</div>
1758
1759</body></html>