• 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_3.html">Ad Exchange Buyer API</a> . <a href="adexchangebuyer_v1_3.creatives.html">creatives</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#get">get(accountId, buyerCreativeId)</a></code></p>
79<p class="firstline">Gets the status for a single creative. A creative will be available 30-40 minutes after submission.</p>
80<p class="toc_element">
81  <code><a href="#insert">insert(body)</a></code></p>
82<p class="firstline">Submit a new creative.</p>
83<p class="toc_element">
84  <code><a href="#list">list(pageToken=None, maxResults=None, statusFilter=None, buyerCreativeId=None, accountId=None)</a></code></p>
85<p class="firstline">Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.</p>
86<p class="toc_element">
87  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
91    <code class="details" id="get">get(accountId, buyerCreativeId)</code>
92  <pre>Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
93
94Args:
95  accountId: integer, The id for the account that will serve this creative. (required)
96  buyerCreativeId: string, The buyer-specific id for this creative. (required)
97
98Returns:
99  An object of the form:
100
101    { # A creative and its classification data.
102      "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
103      "attribute": [ # All attributes for the ads that may be shown from this snippet.
104        42,
105      ],
106      "height": 42, # Ad height.
107      "advertiserName": "A String", # The name of the company being advertised in the creative.
108      "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
109      "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
110      "impressionTrackingUrl": [ # The set of urls to be called to record an impression.
111        "A String",
112      ],
113      "accountId": 42, # Account id.
114      "videoURL": "A String", # The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not be set.
115      "clickThroughUrl": [ # The set of destination urls for the snippet.
116        "A String",
117      ],
118      "width": 42, # Ad width.
119      "nativeAd": { # If nativeAd is set, HTMLSnippet and videoURL should not be set.
120        "body": "A String", # A long description of the ad.
121        "advertiser": "A String",
122        "store": "A String", # The URL to the app store to purchase/download the promoted app.
123        "headline": "A String", # A short title for the ad.
124        "image": { # A large image.
125          "url": "A String",
126          "width": 42,
127          "height": 42,
128        },
129        "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
130        "callToAction": "A String", # A label for the button that the user is supposed to click.
131        "logo": { # A smaller image, for the advertiser logo.
132          "url": "A String",
133          "width": 42,
134          "height": 42,
135        },
136        "appIcon": { # The app icon, for app download ads.
137          "url": "A String",
138          "width": 42,
139          "height": 42,
140        },
141        "impressionTrackingUrl": [ # The URLs are called when the impression is rendered.
142          "A String",
143        ],
144        "price": "A String", # The price of the promoted app including the currency info.
145        "clickTrackingUrl": "A String", # The URL to use for click tracking.
146      },
147      "version": 42, # The version for this creative. Read-only. This field should not be set in requests.
148      "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).
149      "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
150        42,
151      ],
152      "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
153        {
154          "reason": "A String", # The categorized reason for disapproval.
155          "details": [ # Additional details about the reason for disapproval.
156            "A String",
157          ],
158        },
159      ],
160      "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
161        42,
162      ],
163      "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
164        42,
165      ],
166      "agencyId": "A String", # The agency id for this creative.
167      "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
168        "A String",
169      ],
170      "kind": "adexchangebuyer#creative", # Resource type.
171      "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet.
172        42,
173      ],
174      "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
175        {
176          "reason": "A String", # The type of correction that was applied to the creative.
177          "details": [ # Additional details about the correction.
178            "A String",
179          ],
180        },
181      ],
182      "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests.
183        "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.
184        "reasons": [ # The filtering reasons.
185          {
186            "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange.
187            "filteringStatus": 42, # The filtering status code. Please refer to the creative-status-codes.txt file for different statuses.
188          },
189        ],
190      },
191    }</pre>
192</div>
193
194<div class="method">
195    <code class="details" id="insert">insert(body)</code>
196  <pre>Submit a new creative.
197
198Args:
199  body: object, The request body. (required)
200    The object takes the form of:
201
202{ # A creative and its classification data.
203    "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
204    "attribute": [ # All attributes for the ads that may be shown from this snippet.
205      42,
206    ],
207    "height": 42, # Ad height.
208    "advertiserName": "A String", # The name of the company being advertised in the creative.
209    "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
210    "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
211    "impressionTrackingUrl": [ # The set of urls to be called to record an impression.
212      "A String",
213    ],
214    "accountId": 42, # Account id.
215    "videoURL": "A String", # The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not be set.
216    "clickThroughUrl": [ # The set of destination urls for the snippet.
217      "A String",
218    ],
219    "width": 42, # Ad width.
220    "nativeAd": { # If nativeAd is set, HTMLSnippet and videoURL should not be set.
221      "body": "A String", # A long description of the ad.
222      "advertiser": "A String",
223      "store": "A String", # The URL to the app store to purchase/download the promoted app.
224      "headline": "A String", # A short title for the ad.
225      "image": { # A large image.
226        "url": "A String",
227        "width": 42,
228        "height": 42,
229      },
230      "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
231      "callToAction": "A String", # A label for the button that the user is supposed to click.
232      "logo": { # A smaller image, for the advertiser logo.
233        "url": "A String",
234        "width": 42,
235        "height": 42,
236      },
237      "appIcon": { # The app icon, for app download ads.
238        "url": "A String",
239        "width": 42,
240        "height": 42,
241      },
242      "impressionTrackingUrl": [ # The URLs are called when the impression is rendered.
243        "A String",
244      ],
245      "price": "A String", # The price of the promoted app including the currency info.
246      "clickTrackingUrl": "A String", # The URL to use for click tracking.
247    },
248    "version": 42, # The version for this creative. Read-only. This field should not be set in requests.
249    "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).
250    "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
251      42,
252    ],
253    "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
254      {
255        "reason": "A String", # The categorized reason for disapproval.
256        "details": [ # Additional details about the reason for disapproval.
257          "A String",
258        ],
259      },
260    ],
261    "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
262      42,
263    ],
264    "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
265      42,
266    ],
267    "agencyId": "A String", # The agency id for this creative.
268    "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
269      "A String",
270    ],
271    "kind": "adexchangebuyer#creative", # Resource type.
272    "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet.
273      42,
274    ],
275    "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
276      {
277        "reason": "A String", # The type of correction that was applied to the creative.
278        "details": [ # Additional details about the correction.
279          "A String",
280        ],
281      },
282    ],
283    "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests.
284      "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.
285      "reasons": [ # The filtering reasons.
286        {
287          "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange.
288          "filteringStatus": 42, # The filtering status code. Please refer to the creative-status-codes.txt file for different statuses.
289        },
290      ],
291    },
292  }
293
294
295Returns:
296  An object of the form:
297
298    { # A creative and its classification data.
299      "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
300      "attribute": [ # All attributes for the ads that may be shown from this snippet.
301        42,
302      ],
303      "height": 42, # Ad height.
304      "advertiserName": "A String", # The name of the company being advertised in the creative.
305      "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
306      "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
307      "impressionTrackingUrl": [ # The set of urls to be called to record an impression.
308        "A String",
309      ],
310      "accountId": 42, # Account id.
311      "videoURL": "A String", # The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not be set.
312      "clickThroughUrl": [ # The set of destination urls for the snippet.
313        "A String",
314      ],
315      "width": 42, # Ad width.
316      "nativeAd": { # If nativeAd is set, HTMLSnippet and videoURL should not be set.
317        "body": "A String", # A long description of the ad.
318        "advertiser": "A String",
319        "store": "A String", # The URL to the app store to purchase/download the promoted app.
320        "headline": "A String", # A short title for the ad.
321        "image": { # A large image.
322          "url": "A String",
323          "width": 42,
324          "height": 42,
325        },
326        "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
327        "callToAction": "A String", # A label for the button that the user is supposed to click.
328        "logo": { # A smaller image, for the advertiser logo.
329          "url": "A String",
330          "width": 42,
331          "height": 42,
332        },
333        "appIcon": { # The app icon, for app download ads.
334          "url": "A String",
335          "width": 42,
336          "height": 42,
337        },
338        "impressionTrackingUrl": [ # The URLs are called when the impression is rendered.
339          "A String",
340        ],
341        "price": "A String", # The price of the promoted app including the currency info.
342        "clickTrackingUrl": "A String", # The URL to use for click tracking.
343      },
344      "version": 42, # The version for this creative. Read-only. This field should not be set in requests.
345      "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).
346      "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
347        42,
348      ],
349      "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
350        {
351          "reason": "A String", # The categorized reason for disapproval.
352          "details": [ # Additional details about the reason for disapproval.
353            "A String",
354          ],
355        },
356      ],
357      "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
358        42,
359      ],
360      "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
361        42,
362      ],
363      "agencyId": "A String", # The agency id for this creative.
364      "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
365        "A String",
366      ],
367      "kind": "adexchangebuyer#creative", # Resource type.
368      "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet.
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          "reason": "A String", # The type of correction that was applied to the creative.
374          "details": [ # Additional details about the correction.
375            "A String",
376          ],
377        },
378      ],
379      "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests.
380        "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.
381        "reasons": [ # The filtering reasons.
382          {
383            "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange.
384            "filteringStatus": 42, # The filtering status code. Please refer to the creative-status-codes.txt file for different statuses.
385          },
386        ],
387      },
388    }</pre>
389</div>
390
391<div class="method">
392    <code class="details" id="list">list(pageToken=None, maxResults=None, statusFilter=None, buyerCreativeId=None, accountId=None)</code>
393  <pre>Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
394
395Args:
396  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.
397  maxResults: integer, Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
398  statusFilter: string, When specified, only creatives having the given status are returned.
399    Allowed values
400      approved - Creatives which have been approved.
401      disapproved - Creatives which have been disapproved.
402      not_checked - Creatives whose status is not yet checked.
403  buyerCreativeId: string, When specified, only creatives for the given buyer creative ids are returned. (repeated)
404  accountId: integer, When specified, only creatives for the given account ids are returned. (repeated)
405
406Returns:
407  An object of the form:
408
409    { # 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.
410    "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.
411    "items": [ # A list of creatives.
412      { # A creative and its classification data.
413          "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
414          "attribute": [ # All attributes for the ads that may be shown from this snippet.
415            42,
416          ],
417          "height": 42, # Ad height.
418          "advertiserName": "A String", # The name of the company being advertised in the creative.
419          "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
420          "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
421          "impressionTrackingUrl": [ # The set of urls to be called to record an impression.
422            "A String",
423          ],
424          "accountId": 42, # Account id.
425          "videoURL": "A String", # The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not be set.
426          "clickThroughUrl": [ # The set of destination urls for the snippet.
427            "A String",
428          ],
429          "width": 42, # Ad width.
430          "nativeAd": { # If nativeAd is set, HTMLSnippet and videoURL should not be set.
431            "body": "A String", # A long description of the ad.
432            "advertiser": "A String",
433            "store": "A String", # The URL to the app store to purchase/download the promoted app.
434            "headline": "A String", # A short title for the ad.
435            "image": { # A large image.
436              "url": "A String",
437              "width": 42,
438              "height": 42,
439            },
440            "starRating": 3.14, # The app rating in the app store. Must be in the range [0-5].
441            "callToAction": "A String", # A label for the button that the user is supposed to click.
442            "logo": { # A smaller image, for the advertiser logo.
443              "url": "A String",
444              "width": 42,
445              "height": 42,
446            },
447            "appIcon": { # The app icon, for app download ads.
448              "url": "A String",
449              "width": 42,
450              "height": 42,
451            },
452            "impressionTrackingUrl": [ # The URLs are called when the impression is rendered.
453              "A String",
454            ],
455            "price": "A String", # The price of the promoted app including the currency info.
456            "clickTrackingUrl": "A String", # The URL to use for click tracking.
457          },
458          "version": 42, # The version for this creative. Read-only. This field should not be set in requests.
459          "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).
460          "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
461            42,
462          ],
463          "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
464            {
465              "reason": "A String", # The categorized reason for disapproval.
466              "details": [ # Additional details about the reason for disapproval.
467                "A String",
468              ],
469            },
470          ],
471          "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
472            42,
473          ],
474          "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
475            42,
476          ],
477          "agencyId": "A String", # The agency id for this creative.
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          "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet.
483            42,
484          ],
485          "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.
486            {
487              "reason": "A String", # The type of correction that was applied to the creative.
488              "details": [ # Additional details about the correction.
489                "A String",
490              ],
491            },
492          ],
493          "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests.
494            "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.
495            "reasons": [ # The filtering reasons.
496              {
497                "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange.
498                "filteringStatus": 42, # The filtering status code. Please refer to the creative-status-codes.txt file for different statuses.
499              },
500            ],
501          },
502        },
503    ],
504    "kind": "adexchangebuyer#creativesList", # Resource type.
505  }</pre>
506</div>
507
508<div class="method">
509    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
510  <pre>Retrieves the next page of results.
511
512Args:
513  previous_request: The request for the previous page. (required)
514  previous_response: The response from the request for the previous page. (required)
515
516Returns:
517  A request object that you can call 'execute()' on to request the next
518  page. Returns None if there are no more items in the collection.
519    </pre>
520</div>
521
522</body></html>