• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="adexchangebuyer_v1_4.html">Ad Exchange Buyer API</a> . <a href="adexchangebuyer_v1_4.creatives.html">creatives</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#addDeal">addDeal(accountId, buyerCreativeId, dealId)</a></code></p>
79<p class="firstline">Add a deal id association for the creative.</p>
80<p class="toc_element">
81  <code><a href="#get">get(accountId, buyerCreativeId)</a></code></p>
82<p class="firstline">Gets the status for a single creative. A creative will be available 30-40 minutes after submission.</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(body)</a></code></p>
85<p class="firstline">Submit a new creative.</p>
86<p class="toc_element">
87  <code><a href="#list">list(dealsStatusFilter=None, openAuctionStatusFilter=None, pageToken=None, maxResults=None, buyerCreativeId=None, accountId=None)</a></code></p>
88<p class="firstline">Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.</p>
89<p class="toc_element">
90  <code><a href="#listDeals">listDeals(accountId, buyerCreativeId)</a></code></p>
91<p class="firstline">Lists the external deal ids associated with the creative.</p>
92<p class="toc_element">
93  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96  <code><a href="#removeDeal">removeDeal(accountId, buyerCreativeId, dealId)</a></code></p>
97<p class="firstline">Remove a deal id associated with the creative.</p>
98<h3>Method Details</h3>
99<div class="method">
100    <code class="details" id="addDeal">addDeal(accountId, buyerCreativeId, dealId)</code>
101  <pre>Add a deal id association for the creative.
102
103Args:
104  accountId: integer, The id for the account that will serve this creative. (required)
105  buyerCreativeId: string, The buyer-specific id for this creative. (required)
106  dealId: string, The id of the deal id to associate with this creative. (required)
107</pre>
108</div>
109
110<div class="method">
111    <code class="details" id="get">get(accountId, buyerCreativeId)</code>
112  <pre>Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
113
114Args:
115  accountId: integer, The id for the account that will serve this creative. (required)
116  buyerCreativeId: string, The buyer-specific id for this creative. (required)
117
118Returns:
119  An object of the form:
120
121    { # A creative and its classification data.
122      "attribute": [ # List of buyer selectable attributes for the ads that may be shown from this snippet. Each attribute is represented by an integer as defined in  buyer-declarable-creative-attributes.txt.
123        42,
124      ],
125      "height": 42, # Ad height.
126      "advertiserName": "A String", # The name of the company being advertised in the creative. The value provided must exist in the advertisers.txt file.
127      "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL, videoVastXML, and nativeAd should not be set.
128      "openAuctionStatus": "A String", # Top-level open auction status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from ServingRestrictions directly.
129      "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
130      "adChoicesDestinationUrl": "A String", # The link to the Ad Preferences page. This is only supported for native ads.
131      "impressionTrackingUrl": [ # The set of urls to be called to record an impression.
132        "A String",
133      ],
134      "accountId": 42, # Account id.
135      "videoURL": "A String", # The URL to fetch a video ad. If set, HTMLSnippet, videoVastXML, and nativeAd should not be set. Note, this is different from resource.native_ad.video_url above.
136      "videoVastXML": "A String", # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, videoURL, and nativeAd and should not be set.
137      "clickThroughUrl": [ # The set of destination urls for the snippet.
138        "A String",
139      ],
140      "languages": [ # Detected languages for this creative. Read-only. This field should not be set in requests.
141        "A String",
142      ],
143      "width": 42, # Ad width.
144      "nativeAd": { # If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of nativeAd should not be set. (The videoURL inside nativeAd can be set.)
145        "body": "A String", # A long description of the ad.
146        "advertiser": "A String",
147        "store": "A String", # The URL to the app store to purchase/download the promoted app.
148        "videoURL": "A String", # The URL of the XML VAST for a native ad. Note this is a separate field from resource.video_url.
149        "headline": "A String", # A short title for the ad.
150        "image": { # A large image.
151          "url": "A String",
152          "width": 42,
153          "height": 42,
154        },
155        "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
156        "callToAction": "A String", # A label for the button that the user is supposed to click.
157        "logo": { # A smaller image, for the advertiser logo.
158          "url": "A String",
159          "width": 42,
160          "height": 42,
161        },
162        "appIcon": { # The app icon, for app download ads.
163          "url": "A String",
164          "width": 42,
165          "height": 42,
166        },
167        "impressionTrackingUrl": [ # The URLs are called when the impression is rendered.
168          "A String",
169        ],
170        "price": "A String", # The price of the promoted app including the currency info.
171        "clickTrackingUrl": "A String", # The URL to use for click tracking.
172        "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
173      },
174      "version": 42, # The version for this creative. Read-only. This field should not be set in requests.
175      "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
176      "vendorType": [ # List of vendor types for the ads that may be shown from this snippet. Each vendor type is represented by an integer as defined in vendors.txt.
177        42,
178      ],
179      "sensitiveCategories": [ # Detected sensitive categories, if any. Each category is represented by an integer as defined in  ad-sensitive-categories.txt. Read-only. This field should not be set in requests.
180        42,
181      ],
182      "productCategories": [ # Detected product categories, if any. Each category is represented by an integer as defined in  ad-product-categories.txt. Read-only. This field should not be set in requests.
183        42,
184      ],
185      "agencyId": "A String", # The agency id for this creative.
186      "detectedDomains": [ # Detected domains for this creative. Read-only. This field should not be set in requests.
187        "A String",
188      ],
189      "creativeStatusIdentityType": "A String", # Creative status identity type that the creative item applies to. Ad Exchange real-time bidding is migrating to the sizeless creative verification. Originally, Ad Exchange assigned creative verification status to a unique combination of a buyer creative ID and creative dimensions. Post-migration, a single verification status will be assigned at the buyer creative ID level. This field allows to distinguish whether a given creative status applies to a unique combination of a buyer creative ID and creative dimensions, or to a buyer creative ID as a whole.
190      "dealsStatus": "A String", # Top-level deals status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from servingRestrictions directly.
191      "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
192        "A String",
193      ],
194      "kind": "adexchangebuyer#creative", # Resource type.
195      "servingRestrictions": [ # The granular status of this ad in specific contexts. A context here relates to where something ultimately serves (for example, a physical location, a platform, an HTTPS vs HTTP request, or the type of auction). Read-only. This field should not be set in requests. See the examples in the Creatives guide for more details.
196        {
197          "contexts": [ # All known contexts/restrictions.
198            {
199              "platform": [ # Only set when contextType=PLATFORM. Represents the platforms this restriction applies to.
200                "A String",
201              ],
202              "contextType": "A String", # The type of context (e.g., location, platform, auction type, SSL-ness).
203              "auctionType": [ # Only set when contextType=AUCTION_TYPE. Represents the auction types this restriction applies to.
204                "A String",
205              ],
206              "geoCriteriaId": [ # Only set when contextType=LOCATION. Represents the geo criterias this restriction applies to. Impressions are considered to match a context if either the user location or publisher location matches a given geoCriteriaId.
207                42,
208              ],
209            },
210          ],
211          "disapprovalReasons": [ # The reasons for disapproval within this restriction, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED or CONDITIONALLY_APPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue.
212            {
213              "reason": "A String", # The categorized reason for disapproval.
214              "details": [ # Additional details about the reason for disapproval.
215                "A String",
216              ],
217            },
218          ],
219          "reason": "A String", # Why the creative is ineligible to serve in this context (e.g., it has been explicitly disapproved or is pending review).
220        },
221      ],
222      "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet. Each category is represented by an integer as defined in the  ad-restricted-categories.txt.
223        42,
224      ],
225      "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
226        {
227          "contexts": [ # All known serving contexts containing serving status information.
228            {
229              "platform": [ # Only set when contextType=PLATFORM. Represents the platforms this correction applies to.
230                "A String",
231              ],
232              "contextType": "A String", # The type of context (e.g., location, platform, auction type, SSL-ness).
233              "auctionType": [ # Only set when contextType=AUCTION_TYPE. Represents the auction types this correction applies to.
234                "A String",
235              ],
236              "geoCriteriaId": [ # Only set when contextType=LOCATION. Represents the geo criterias this correction applies to.
237                42,
238              ],
239            },
240          ],
241          "reason": "A String", # The type of correction that was applied to the creative.
242          "details": [ # Additional details about the correction.
243            "A String",
244          ],
245        },
246      ],
247      "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests.
248        "date": "A String", # The date in ISO 8601 format for the data. The data is collected from 00:00:00 to 23:59:59 in PST.
249        "reasons": [ # The filtering reasons.
250          {
251            "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange.
252            "filteringStatus": 42, # The filtering status code as defined in  creative-status-codes.txt.
253          },
254        ],
255      },
256    }</pre>
257</div>
258
259<div class="method">
260    <code class="details" id="insert">insert(body)</code>
261  <pre>Submit a new creative.
262
263Args:
264  body: object, The request body. (required)
265    The object takes the form of:
266
267{ # A creative and its classification data.
268    "attribute": [ # List of buyer selectable attributes for the ads that may be shown from this snippet. Each attribute is represented by an integer as defined in  buyer-declarable-creative-attributes.txt.
269      42,
270    ],
271    "height": 42, # Ad height.
272    "advertiserName": "A String", # The name of the company being advertised in the creative. The value provided must exist in the advertisers.txt file.
273    "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL, videoVastXML, and nativeAd should not be set.
274    "openAuctionStatus": "A String", # Top-level open auction status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from ServingRestrictions directly.
275    "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
276    "adChoicesDestinationUrl": "A String", # The link to the Ad Preferences page. This is only supported for native ads.
277    "impressionTrackingUrl": [ # The set of urls to be called to record an impression.
278      "A String",
279    ],
280    "accountId": 42, # Account id.
281    "videoURL": "A String", # The URL to fetch a video ad. If set, HTMLSnippet, videoVastXML, and nativeAd should not be set. Note, this is different from resource.native_ad.video_url above.
282    "videoVastXML": "A String", # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, videoURL, and nativeAd and should not be set.
283    "clickThroughUrl": [ # The set of destination urls for the snippet.
284      "A String",
285    ],
286    "languages": [ # Detected languages for this creative. Read-only. This field should not be set in requests.
287      "A String",
288    ],
289    "width": 42, # Ad width.
290    "nativeAd": { # If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of nativeAd should not be set. (The videoURL inside nativeAd can be set.)
291      "body": "A String", # A long description of the ad.
292      "advertiser": "A String",
293      "store": "A String", # The URL to the app store to purchase/download the promoted app.
294      "videoURL": "A String", # The URL of the XML VAST for a native ad. Note this is a separate field from resource.video_url.
295      "headline": "A String", # A short title for the ad.
296      "image": { # A large image.
297        "url": "A String",
298        "width": 42,
299        "height": 42,
300      },
301      "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
302      "callToAction": "A String", # A label for the button that the user is supposed to click.
303      "logo": { # A smaller image, for the advertiser logo.
304        "url": "A String",
305        "width": 42,
306        "height": 42,
307      },
308      "appIcon": { # The app icon, for app download ads.
309        "url": "A String",
310        "width": 42,
311        "height": 42,
312      },
313      "impressionTrackingUrl": [ # The URLs are called when the impression is rendered.
314        "A String",
315      ],
316      "price": "A String", # The price of the promoted app including the currency info.
317      "clickTrackingUrl": "A String", # The URL to use for click tracking.
318      "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
319    },
320    "version": 42, # The version for this creative. Read-only. This field should not be set in requests.
321    "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
322    "vendorType": [ # List of vendor types for the ads that may be shown from this snippet. Each vendor type is represented by an integer as defined in vendors.txt.
323      42,
324    ],
325    "sensitiveCategories": [ # Detected sensitive categories, if any. Each category is represented by an integer as defined in  ad-sensitive-categories.txt. Read-only. This field should not be set in requests.
326      42,
327    ],
328    "productCategories": [ # Detected product categories, if any. Each category is represented by an integer as defined in  ad-product-categories.txt. Read-only. This field should not be set in requests.
329      42,
330    ],
331    "agencyId": "A String", # The agency id for this creative.
332    "detectedDomains": [ # Detected domains for this creative. Read-only. This field should not be set in requests.
333      "A String",
334    ],
335    "creativeStatusIdentityType": "A String", # Creative status identity type that the creative item applies to. Ad Exchange real-time bidding is migrating to the sizeless creative verification. Originally, Ad Exchange assigned creative verification status to a unique combination of a buyer creative ID and creative dimensions. Post-migration, a single verification status will be assigned at the buyer creative ID level. This field allows to distinguish whether a given creative status applies to a unique combination of a buyer creative ID and creative dimensions, or to a buyer creative ID as a whole.
336    "dealsStatus": "A String", # Top-level deals status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from servingRestrictions directly.
337    "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
338      "A String",
339    ],
340    "kind": "adexchangebuyer#creative", # Resource type.
341    "servingRestrictions": [ # The granular status of this ad in specific contexts. A context here relates to where something ultimately serves (for example, a physical location, a platform, an HTTPS vs HTTP request, or the type of auction). Read-only. This field should not be set in requests. See the examples in the Creatives guide for more details.
342      {
343        "contexts": [ # All known contexts/restrictions.
344          {
345            "platform": [ # Only set when contextType=PLATFORM. Represents the platforms this restriction applies to.
346              "A String",
347            ],
348            "contextType": "A String", # The type of context (e.g., location, platform, auction type, SSL-ness).
349            "auctionType": [ # Only set when contextType=AUCTION_TYPE. Represents the auction types this restriction applies to.
350              "A String",
351            ],
352            "geoCriteriaId": [ # Only set when contextType=LOCATION. Represents the geo criterias this restriction applies to. Impressions are considered to match a context if either the user location or publisher location matches a given geoCriteriaId.
353              42,
354            ],
355          },
356        ],
357        "disapprovalReasons": [ # The reasons for disapproval within this restriction, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED or CONDITIONALLY_APPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue.
358          {
359            "reason": "A String", # The categorized reason for disapproval.
360            "details": [ # Additional details about the reason for disapproval.
361              "A String",
362            ],
363          },
364        ],
365        "reason": "A String", # Why the creative is ineligible to serve in this context (e.g., it has been explicitly disapproved or is pending review).
366      },
367    ],
368    "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet. Each category is represented by an integer as defined in the  ad-restricted-categories.txt.
369      42,
370    ],
371    "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
372      {
373        "contexts": [ # All known serving contexts containing serving status information.
374          {
375            "platform": [ # Only set when contextType=PLATFORM. Represents the platforms this correction applies to.
376              "A String",
377            ],
378            "contextType": "A String", # The type of context (e.g., location, platform, auction type, SSL-ness).
379            "auctionType": [ # Only set when contextType=AUCTION_TYPE. Represents the auction types this correction applies to.
380              "A String",
381            ],
382            "geoCriteriaId": [ # Only set when contextType=LOCATION. Represents the geo criterias this correction applies to.
383              42,
384            ],
385          },
386        ],
387        "reason": "A String", # The type of correction that was applied to the creative.
388        "details": [ # Additional details about the correction.
389          "A String",
390        ],
391      },
392    ],
393    "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests.
394      "date": "A String", # The date in ISO 8601 format for the data. The data is collected from 00:00:00 to 23:59:59 in PST.
395      "reasons": [ # The filtering reasons.
396        {
397          "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange.
398          "filteringStatus": 42, # The filtering status code as defined in  creative-status-codes.txt.
399        },
400      ],
401    },
402  }
403
404
405Returns:
406  An object of the form:
407
408    { # A creative and its classification data.
409      "attribute": [ # List of buyer selectable attributes for the ads that may be shown from this snippet. Each attribute is represented by an integer as defined in  buyer-declarable-creative-attributes.txt.
410        42,
411      ],
412      "height": 42, # Ad height.
413      "advertiserName": "A String", # The name of the company being advertised in the creative. The value provided must exist in the advertisers.txt file.
414      "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL, videoVastXML, and nativeAd should not be set.
415      "openAuctionStatus": "A String", # Top-level open auction status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from ServingRestrictions directly.
416      "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
417      "adChoicesDestinationUrl": "A String", # The link to the Ad Preferences page. This is only supported for native ads.
418      "impressionTrackingUrl": [ # The set of urls to be called to record an impression.
419        "A String",
420      ],
421      "accountId": 42, # Account id.
422      "videoURL": "A String", # The URL to fetch a video ad. If set, HTMLSnippet, videoVastXML, and nativeAd should not be set. Note, this is different from resource.native_ad.video_url above.
423      "videoVastXML": "A String", # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, videoURL, and nativeAd and should not be set.
424      "clickThroughUrl": [ # The set of destination urls for the snippet.
425        "A String",
426      ],
427      "languages": [ # Detected languages for this creative. Read-only. This field should not be set in requests.
428        "A String",
429      ],
430      "width": 42, # Ad width.
431      "nativeAd": { # If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of nativeAd should not be set. (The videoURL inside nativeAd can be set.)
432        "body": "A String", # A long description of the ad.
433        "advertiser": "A String",
434        "store": "A String", # The URL to the app store to purchase/download the promoted app.
435        "videoURL": "A String", # The URL of the XML VAST for a native ad. Note this is a separate field from resource.video_url.
436        "headline": "A String", # A short title for the ad.
437        "image": { # A large image.
438          "url": "A String",
439          "width": 42,
440          "height": 42,
441        },
442        "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
443        "callToAction": "A String", # A label for the button that the user is supposed to click.
444        "logo": { # A smaller image, for the advertiser logo.
445          "url": "A String",
446          "width": 42,
447          "height": 42,
448        },
449        "appIcon": { # The app icon, for app download ads.
450          "url": "A String",
451          "width": 42,
452          "height": 42,
453        },
454        "impressionTrackingUrl": [ # The URLs are called when the impression is rendered.
455          "A String",
456        ],
457        "price": "A String", # The price of the promoted app including the currency info.
458        "clickTrackingUrl": "A String", # The URL to use for click tracking.
459        "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
460      },
461      "version": 42, # The version for this creative. Read-only. This field should not be set in requests.
462      "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
463      "vendorType": [ # List of vendor types for the ads that may be shown from this snippet. Each vendor type is represented by an integer as defined in vendors.txt.
464        42,
465      ],
466      "sensitiveCategories": [ # Detected sensitive categories, if any. Each category is represented by an integer as defined in  ad-sensitive-categories.txt. Read-only. This field should not be set in requests.
467        42,
468      ],
469      "productCategories": [ # Detected product categories, if any. Each category is represented by an integer as defined in  ad-product-categories.txt. Read-only. This field should not be set in requests.
470        42,
471      ],
472      "agencyId": "A String", # The agency id for this creative.
473      "detectedDomains": [ # Detected domains for this creative. Read-only. This field should not be set in requests.
474        "A String",
475      ],
476      "creativeStatusIdentityType": "A String", # Creative status identity type that the creative item applies to. Ad Exchange real-time bidding is migrating to the sizeless creative verification. Originally, Ad Exchange assigned creative verification status to a unique combination of a buyer creative ID and creative dimensions. Post-migration, a single verification status will be assigned at the buyer creative ID level. This field allows to distinguish whether a given creative status applies to a unique combination of a buyer creative ID and creative dimensions, or to a buyer creative ID as a whole.
477      "dealsStatus": "A String", # Top-level deals status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from servingRestrictions directly.
478      "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
479        "A String",
480      ],
481      "kind": "adexchangebuyer#creative", # Resource type.
482      "servingRestrictions": [ # The granular status of this ad in specific contexts. A context here relates to where something ultimately serves (for example, a physical location, a platform, an HTTPS vs HTTP request, or the type of auction). Read-only. This field should not be set in requests. See the examples in the Creatives guide for more details.
483        {
484          "contexts": [ # All known contexts/restrictions.
485            {
486              "platform": [ # Only set when contextType=PLATFORM. Represents the platforms this restriction applies to.
487                "A String",
488              ],
489              "contextType": "A String", # The type of context (e.g., location, platform, auction type, SSL-ness).
490              "auctionType": [ # Only set when contextType=AUCTION_TYPE. Represents the auction types this restriction applies to.
491                "A String",
492              ],
493              "geoCriteriaId": [ # Only set when contextType=LOCATION. Represents the geo criterias this restriction applies to. Impressions are considered to match a context if either the user location or publisher location matches a given geoCriteriaId.
494                42,
495              ],
496            },
497          ],
498          "disapprovalReasons": [ # The reasons for disapproval within this restriction, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED or CONDITIONALLY_APPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue.
499            {
500              "reason": "A String", # The categorized reason for disapproval.
501              "details": [ # Additional details about the reason for disapproval.
502                "A String",
503              ],
504            },
505          ],
506          "reason": "A String", # Why the creative is ineligible to serve in this context (e.g., it has been explicitly disapproved or is pending review).
507        },
508      ],
509      "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet. Each category is represented by an integer as defined in the  ad-restricted-categories.txt.
510        42,
511      ],
512      "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
513        {
514          "contexts": [ # All known serving contexts containing serving status information.
515            {
516              "platform": [ # Only set when contextType=PLATFORM. Represents the platforms this correction applies to.
517                "A String",
518              ],
519              "contextType": "A String", # The type of context (e.g., location, platform, auction type, SSL-ness).
520              "auctionType": [ # Only set when contextType=AUCTION_TYPE. Represents the auction types this correction applies to.
521                "A String",
522              ],
523              "geoCriteriaId": [ # Only set when contextType=LOCATION. Represents the geo criterias this correction applies to.
524                42,
525              ],
526            },
527          ],
528          "reason": "A String", # The type of correction that was applied to the creative.
529          "details": [ # Additional details about the correction.
530            "A String",
531          ],
532        },
533      ],
534      "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests.
535        "date": "A String", # The date in ISO 8601 format for the data. The data is collected from 00:00:00 to 23:59:59 in PST.
536        "reasons": [ # The filtering reasons.
537          {
538            "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange.
539            "filteringStatus": 42, # The filtering status code as defined in  creative-status-codes.txt.
540          },
541        ],
542      },
543    }</pre>
544</div>
545
546<div class="method">
547    <code class="details" id="list">list(dealsStatusFilter=None, openAuctionStatusFilter=None, pageToken=None, maxResults=None, buyerCreativeId=None, accountId=None)</code>
548  <pre>Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
549
550Args:
551  dealsStatusFilter: string, When specified, only creatives having the given deals status are returned.
552    Allowed values
553      approved - Creatives which have been approved for serving on deals.
554      conditionally_approved - Creatives which have been conditionally approved for serving on deals.
555      disapproved - Creatives which have been disapproved for serving on deals.
556      not_checked - Creatives whose deals status is not yet checked.
557  openAuctionStatusFilter: string, When specified, only creatives having the given open auction status are returned.
558    Allowed values
559      approved - Creatives which have been approved for serving on the open auction.
560      conditionally_approved - Creatives which have been conditionally approved for serving on the open auction.
561      disapproved - Creatives which have been disapproved for serving on the open auction.
562      not_checked - Creatives whose open auction status is not yet checked.
563  pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
564  maxResults: integer, Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
565  buyerCreativeId: string, When specified, only creatives for the given buyer creative ids are returned. (repeated)
566  accountId: integer, When specified, only creatives for the given account ids are returned. (repeated)
567
568Returns:
569  An object of the form:
570
571    { # The creatives feed lists the active creatives for the Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single creative.
572    "nextPageToken": "A String", # Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this.
573    "items": [ # A list of creatives.
574      { # A creative and its classification data.
575          "attribute": [ # List of buyer selectable attributes for the ads that may be shown from this snippet. Each attribute is represented by an integer as defined in  buyer-declarable-creative-attributes.txt.
576            42,
577          ],
578          "height": 42, # Ad height.
579          "advertiserName": "A String", # The name of the company being advertised in the creative. The value provided must exist in the advertisers.txt file.
580          "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL, videoVastXML, and nativeAd should not be set.
581          "openAuctionStatus": "A String", # Top-level open auction status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from ServingRestrictions directly.
582          "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
583          "adChoicesDestinationUrl": "A String", # The link to the Ad Preferences page. This is only supported for native ads.
584          "impressionTrackingUrl": [ # The set of urls to be called to record an impression.
585            "A String",
586          ],
587          "accountId": 42, # Account id.
588          "videoURL": "A String", # The URL to fetch a video ad. If set, HTMLSnippet, videoVastXML, and nativeAd should not be set. Note, this is different from resource.native_ad.video_url above.
589          "videoVastXML": "A String", # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, videoURL, and nativeAd and should not be set.
590          "clickThroughUrl": [ # The set of destination urls for the snippet.
591            "A String",
592          ],
593          "languages": [ # Detected languages for this creative. Read-only. This field should not be set in requests.
594            "A String",
595          ],
596          "width": 42, # Ad width.
597          "nativeAd": { # If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of nativeAd should not be set. (The videoURL inside nativeAd can be set.)
598            "body": "A String", # A long description of the ad.
599            "advertiser": "A String",
600            "store": "A String", # The URL to the app store to purchase/download the promoted app.
601            "videoURL": "A String", # The URL of the XML VAST for a native ad. Note this is a separate field from resource.video_url.
602            "headline": "A String", # A short title for the ad.
603            "image": { # A large image.
604              "url": "A String",
605              "width": 42,
606              "height": 42,
607            },
608            "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
609            "callToAction": "A String", # A label for the button that the user is supposed to click.
610            "logo": { # A smaller image, for the advertiser logo.
611              "url": "A String",
612              "width": 42,
613              "height": 42,
614            },
615            "appIcon": { # The app icon, for app download ads.
616              "url": "A String",
617              "width": 42,
618              "height": 42,
619            },
620            "impressionTrackingUrl": [ # The URLs are called when the impression is rendered.
621              "A String",
622            ],
623            "price": "A String", # The price of the promoted app including the currency info.
624            "clickTrackingUrl": "A String", # The URL to use for click tracking.
625            "clickLinkUrl": "A String", # The URL that the browser/SDK will load when the user clicks the ad.
626          },
627          "version": 42, # The version for this creative. Read-only. This field should not be set in requests.
628          "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
629          "vendorType": [ # List of vendor types for the ads that may be shown from this snippet. Each vendor type is represented by an integer as defined in vendors.txt.
630            42,
631          ],
632          "sensitiveCategories": [ # Detected sensitive categories, if any. Each category is represented by an integer as defined in  ad-sensitive-categories.txt. Read-only. This field should not be set in requests.
633            42,
634          ],
635          "productCategories": [ # Detected product categories, if any. Each category is represented by an integer as defined in  ad-product-categories.txt. Read-only. This field should not be set in requests.
636            42,
637          ],
638          "agencyId": "A String", # The agency id for this creative.
639          "detectedDomains": [ # Detected domains for this creative. Read-only. This field should not be set in requests.
640            "A String",
641          ],
642          "creativeStatusIdentityType": "A String", # Creative status identity type that the creative item applies to. Ad Exchange real-time bidding is migrating to the sizeless creative verification. Originally, Ad Exchange assigned creative verification status to a unique combination of a buyer creative ID and creative dimensions. Post-migration, a single verification status will be assigned at the buyer creative ID level. This field allows to distinguish whether a given creative status applies to a unique combination of a buyer creative ID and creative dimensions, or to a buyer creative ID as a whole.
643          "dealsStatus": "A String", # Top-level deals status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from servingRestrictions directly.
644          "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
645            "A String",
646          ],
647          "kind": "adexchangebuyer#creative", # Resource type.
648          "servingRestrictions": [ # The granular status of this ad in specific contexts. A context here relates to where something ultimately serves (for example, a physical location, a platform, an HTTPS vs HTTP request, or the type of auction). Read-only. This field should not be set in requests. See the examples in the Creatives guide for more details.
649            {
650              "contexts": [ # All known contexts/restrictions.
651                {
652                  "platform": [ # Only set when contextType=PLATFORM. Represents the platforms this restriction applies to.
653                    "A String",
654                  ],
655                  "contextType": "A String", # The type of context (e.g., location, platform, auction type, SSL-ness).
656                  "auctionType": [ # Only set when contextType=AUCTION_TYPE. Represents the auction types this restriction applies to.
657                    "A String",
658                  ],
659                  "geoCriteriaId": [ # Only set when contextType=LOCATION. Represents the geo criterias this restriction applies to. Impressions are considered to match a context if either the user location or publisher location matches a given geoCriteriaId.
660                    42,
661                  ],
662                },
663              ],
664              "disapprovalReasons": [ # The reasons for disapproval within this restriction, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED or CONDITIONALLY_APPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue.
665                {
666                  "reason": "A String", # The categorized reason for disapproval.
667                  "details": [ # Additional details about the reason for disapproval.
668                    "A String",
669                  ],
670                },
671              ],
672              "reason": "A String", # Why the creative is ineligible to serve in this context (e.g., it has been explicitly disapproved or is pending review).
673            },
674          ],
675          "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet. Each category is represented by an integer as defined in the  ad-restricted-categories.txt.
676            42,
677          ],
678          "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
679            {
680              "contexts": [ # All known serving contexts containing serving status information.
681                {
682                  "platform": [ # Only set when contextType=PLATFORM. Represents the platforms this correction applies to.
683                    "A String",
684                  ],
685                  "contextType": "A String", # The type of context (e.g., location, platform, auction type, SSL-ness).
686                  "auctionType": [ # Only set when contextType=AUCTION_TYPE. Represents the auction types this correction applies to.
687                    "A String",
688                  ],
689                  "geoCriteriaId": [ # Only set when contextType=LOCATION. Represents the geo criterias this correction applies to.
690                    42,
691                  ],
692                },
693              ],
694              "reason": "A String", # The type of correction that was applied to the creative.
695              "details": [ # Additional details about the correction.
696                "A String",
697              ],
698            },
699          ],
700          "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests.
701            "date": "A String", # The date in ISO 8601 format for the data. The data is collected from 00:00:00 to 23:59:59 in PST.
702            "reasons": [ # The filtering reasons.
703              {
704                "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange.
705                "filteringStatus": 42, # The filtering status code as defined in  creative-status-codes.txt.
706              },
707            ],
708          },
709        },
710    ],
711    "kind": "adexchangebuyer#creativesList", # Resource type.
712  }</pre>
713</div>
714
715<div class="method">
716    <code class="details" id="listDeals">listDeals(accountId, buyerCreativeId)</code>
717  <pre>Lists the external deal ids associated with the creative.
718
719Args:
720  accountId: integer, The id for the account that will serve this creative. (required)
721  buyerCreativeId: string, The buyer-specific id for this creative. (required)
722
723Returns:
724  An object of the form:
725
726    { # The external deal ids associated with a creative.
727    "dealStatuses": [ # A list of external deal ids and ARC approval status.
728      {
729        "webPropertyId": 42, # Publisher ID.
730        "dealId": "A String", # External deal ID.
731        "arcStatus": "A String", # ARC approval status.
732      },
733    ],
734    "kind": "adexchangebuyer#creativeDealIds", # Resource type.
735  }</pre>
736</div>
737
738<div class="method">
739    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
740  <pre>Retrieves the next page of results.
741
742Args:
743  previous_request: The request for the previous page. (required)
744  previous_response: The response from the request for the previous page. (required)
745
746Returns:
747  A request object that you can call 'execute()' on to request the next
748  page. Returns None if there are no more items in the collection.
749    </pre>
750</div>
751
752<div class="method">
753    <code class="details" id="removeDeal">removeDeal(accountId, buyerCreativeId, dealId)</code>
754  <pre>Remove a deal id associated with the creative.
755
756Args:
757  accountId: integer, The id for the account that will serve this creative. (required)
758  buyerCreativeId: string, The buyer-specific id for this creative. (required)
759  dealId: string, The id of the deal id to disassociate with this creative. (required)
760</pre>
761</div>
762
763</body></html>