blob: 82ca5d41f3b6883d2bb735b60d09789b2d5009da [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#create">create(accountId, body=None, duplicateIdMode=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040087<p class="firstline">Creates a creative.</p>
88<p class="toc_element">
89 <code><a href="#get">get(accountId, creativeId, x__xgafv=None)</a></code></p>
90<p class="firstline">Gets a creative.</p>
91<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070092 <code><a href="#list">list(accountId, pageSize=None, pageToken=None, query=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040093<p class="firstline">Lists creatives.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098 <code><a href="#stopWatching">stopWatching(accountId, creativeId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070099<p class="firstline">Stops watching a creative. Will stop push notifications being sent to the topics when the creative changes status.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#update">update(accountId, creativeId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400102<p class="firstline">Updates a creative.</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#watch">watch(accountId, creativeId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105<p class="firstline">Watches a creative. Will result in push notifications being sent to the topic when the creative changes status.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400106<h3>Method Details</h3>
107<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108 <code class="details" id="close">close()</code>
109 <pre>Close httplib2 connections.</pre>
110</div>
111
112<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code class="details" id="create">create(accountId, body=None, duplicateIdMode=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400114 <pre>Creates a creative.
115
116Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700117 accountId: string, The account that this creative belongs to. Can be used to filter the response of the creatives.list method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400119 The object takes the form of:
120
121{ # A creative and its classification data.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700122 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
123 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
124 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
125 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700126 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700127 &quot;version&quot;: 42, # Output only. The version of this creative.
128 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is arbitrary. The codes are 2 or 5 characters and are documented at https://developers.google.com/adwords/api/docs/appendix/languagecodes.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700129 &quot;A String&quot;,
130 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700131 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
132 &quot;A String&quot;,
133 ],
134 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
135 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
136 &quot;A String&quot;,
137 ],
138 &quot;servingRestrictions&quot;: [ # Output only. 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).
139 { # Output only. A representation of the status of an ad in a specific context. A context here relates to where something ultimately serves (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, or the type of auction).
140 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been explicitly disapproved or is pending review).
141 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700142 &quot;details&quot;: [ # Additional details about the reason for disapproval.
143 &quot;A String&quot;,
144 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700145 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700146 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700147 &quot;contexts&quot;: [ # The contexts for the restriction.
148 { # The serving context for this restriction.
149 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
150 &quot;platforms&quot;: [ # The platforms this restriction applies to.
151 &quot;A String&quot;,
152 ],
153 },
154 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
155 &quot;securities&quot;: [ # The security types in this context.
156 &quot;A String&quot;,
157 ],
158 },
159 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
160 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
161 42,
162 ],
163 },
164 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
165 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
166 &quot;A String&quot;,
167 ],
168 },
169 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
170 &quot;appTypes&quot;: [ # The app types this restriction applies to.
171 &quot;A String&quot;,
172 ],
173 },
174 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
175 },
176 ],
177 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method. Deprecated; please use disapproval field instead.
178 { # Output only. The reason and details for a disapproval.
179 &quot;details&quot;: [ # Additional details about the reason for disapproval.
180 &quot;A String&quot;,
181 ],
182 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
183 },
184 ],
185 },
186 ],
187 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method.
188 &quot;A String&quot;,
189 ],
190 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values.
191 42,
192 ],
193 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative. If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
194 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
195 &quot;A String&quot;,
196 ],
197 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method.
198 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
199 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
200 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
201 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any. See the ad-sensitive-categories.txt file in the technical documentation for a list of IDs. You should use these IDs along with the excluded-sensitive-category field in the bid request to filter your bids.
202 42,
203 ],
204 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
205 { # Output only. Shows any corrections that were applied to this creative.
206 &quot;contexts&quot;: [ # The contexts for the correction.
207 { # The serving context for this restriction.
208 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
209 &quot;platforms&quot;: [ # The platforms this restriction applies to.
210 &quot;A String&quot;,
211 ],
212 },
213 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
214 &quot;securities&quot;: [ # The security types in this context.
215 &quot;A String&quot;,
216 ],
217 },
218 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
219 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
220 42,
221 ],
222 },
223 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
224 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
225 &quot;A String&quot;,
226 ],
227 },
228 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
229 &quot;appTypes&quot;: [ # The app types this restriction applies to.
230 &quot;A String&quot;,
231 ],
232 },
233 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
234 },
235 ],
236 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
237 &quot;details&quot;: [ # Additional details about what was corrected.
238 &quot;A String&quot;,
239 ],
240 },
241 ],
242 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
243 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for mapping of provider ID to provided name, a privacy policy URL, and a list of domains which can be attributed to the provider. If the creative contains provider IDs that are outside of those listed in the `BidRequest.adslot.consented_providers_settings.consented_providers` field on the (Google bid protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto] and the `BidRequest.user.ext.consented_providers_settings.consented_providers` field on the (OpenRTB protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto], and a bid is submitted with that creative for an impression that will serve to an EEA user, the bid will be filtered before the auction.
244 &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700245 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700246 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider. If true for a given creative, any bid submitted with that creative for an impression that will serve to an EEA user will be filtered before the auction.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700247 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700248 &quot;native&quot;: { # Native content for a creative. # A native creative.
249 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
250 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A smaller image, for the advertiser&#x27;s logo.
251 &quot;height&quot;: 42, # Image height in pixels.
252 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
253 &quot;width&quot;: 42, # Image width in pixels.
254 },
255 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
256 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # The app icon, for app download ads.
257 &quot;height&quot;: 42, # Image height in pixels.
258 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
259 &quot;width&quot;: 42, # Image width in pixels.
260 },
261 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
262 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
263 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
264 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A large image.
265 &quot;height&quot;: 42, # Image height in pixels.
266 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
267 &quot;width&quot;: 42, # Image width in pixels.
268 },
269 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
270 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
271 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
272 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
273 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
274 },
275 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
276 &quot;A String&quot;,
277 ],
278 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
279 &quot;A String&quot;,
280 ],
281 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any. See the ad-product-categories.txt file in the technical documentation for a list of IDs.
282 42,
283 ],
284 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to. Can be used to filter the response of the creatives.list method.
285 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
286 &quot;A String&quot;,
287 ],
288 &quot;video&quot;: { # Video content for a creative. # A video creative.
289 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard.
290 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
291 },
292 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative. If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
293 }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400294
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700295 duplicateIdMode: string, Indicates if multiple creatives can share an ID or not. Default is NO_DUPLICATES (one ID per creative).
296 Allowed values
297 NO_DUPLICATES - Recommended. This means that an ID will be unique to a single creative. Multiple creatives will not share an ID.
298 FORCE_ENABLE_DUPLICATE_IDS - Not recommended. Using this option will allow multiple creatives to share the same ID. Get and Update requests will not be possible for any ID that has more than one creative associated. (List will still function.) This is only intended for backwards compatibility in cases where a single ID is already shared by multiple creatives from previous APIs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400299 x__xgafv: string, V1 error format.
300 Allowed values
301 1 - v1 error format
302 2 - v2 error format
303
304Returns:
305 An object of the form:
306
307 { # A creative and its classification data.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700308 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
309 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
310 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
311 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700312 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700313 &quot;version&quot;: 42, # Output only. The version of this creative.
314 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is arbitrary. The codes are 2 or 5 characters and are documented at https://developers.google.com/adwords/api/docs/appendix/languagecodes.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700315 &quot;A String&quot;,
316 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700317 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
318 &quot;A String&quot;,
319 ],
320 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
321 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
322 &quot;A String&quot;,
323 ],
324 &quot;servingRestrictions&quot;: [ # Output only. 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).
325 { # Output only. A representation of the status of an ad in a specific context. A context here relates to where something ultimately serves (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, or the type of auction).
326 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been explicitly disapproved or is pending review).
327 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700328 &quot;details&quot;: [ # Additional details about the reason for disapproval.
329 &quot;A String&quot;,
330 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700331 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700332 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700333 &quot;contexts&quot;: [ # The contexts for the restriction.
334 { # The serving context for this restriction.
335 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
336 &quot;platforms&quot;: [ # The platforms this restriction applies to.
337 &quot;A String&quot;,
338 ],
339 },
340 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
341 &quot;securities&quot;: [ # The security types in this context.
342 &quot;A String&quot;,
343 ],
344 },
345 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
346 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
347 42,
348 ],
349 },
350 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
351 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
352 &quot;A String&quot;,
353 ],
354 },
355 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
356 &quot;appTypes&quot;: [ # The app types this restriction applies to.
357 &quot;A String&quot;,
358 ],
359 },
360 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
361 },
362 ],
363 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method. Deprecated; please use disapproval field instead.
364 { # Output only. The reason and details for a disapproval.
365 &quot;details&quot;: [ # Additional details about the reason for disapproval.
366 &quot;A String&quot;,
367 ],
368 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
369 },
370 ],
371 },
372 ],
373 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method.
374 &quot;A String&quot;,
375 ],
376 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values.
377 42,
378 ],
379 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative. If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
380 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
381 &quot;A String&quot;,
382 ],
383 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method.
384 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
385 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
386 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
387 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any. See the ad-sensitive-categories.txt file in the technical documentation for a list of IDs. You should use these IDs along with the excluded-sensitive-category field in the bid request to filter your bids.
388 42,
389 ],
390 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
391 { # Output only. Shows any corrections that were applied to this creative.
392 &quot;contexts&quot;: [ # The contexts for the correction.
393 { # The serving context for this restriction.
394 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
395 &quot;platforms&quot;: [ # The platforms this restriction applies to.
396 &quot;A String&quot;,
397 ],
398 },
399 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
400 &quot;securities&quot;: [ # The security types in this context.
401 &quot;A String&quot;,
402 ],
403 },
404 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
405 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
406 42,
407 ],
408 },
409 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
410 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
411 &quot;A String&quot;,
412 ],
413 },
414 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
415 &quot;appTypes&quot;: [ # The app types this restriction applies to.
416 &quot;A String&quot;,
417 ],
418 },
419 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
420 },
421 ],
422 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
423 &quot;details&quot;: [ # Additional details about what was corrected.
424 &quot;A String&quot;,
425 ],
426 },
427 ],
428 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
429 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for mapping of provider ID to provided name, a privacy policy URL, and a list of domains which can be attributed to the provider. If the creative contains provider IDs that are outside of those listed in the `BidRequest.adslot.consented_providers_settings.consented_providers` field on the (Google bid protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto] and the `BidRequest.user.ext.consented_providers_settings.consented_providers` field on the (OpenRTB protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto], and a bid is submitted with that creative for an impression that will serve to an EEA user, the bid will be filtered before the auction.
430 &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700431 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700432 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider. If true for a given creative, any bid submitted with that creative for an impression that will serve to an EEA user will be filtered before the auction.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700433 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700434 &quot;native&quot;: { # Native content for a creative. # A native creative.
435 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
436 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A smaller image, for the advertiser&#x27;s logo.
437 &quot;height&quot;: 42, # Image height in pixels.
438 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
439 &quot;width&quot;: 42, # Image width in pixels.
440 },
441 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
442 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # The app icon, for app download ads.
443 &quot;height&quot;: 42, # Image height in pixels.
444 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
445 &quot;width&quot;: 42, # Image width in pixels.
446 },
447 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
448 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
449 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
450 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A large image.
451 &quot;height&quot;: 42, # Image height in pixels.
452 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
453 &quot;width&quot;: 42, # Image width in pixels.
454 },
455 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
456 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
457 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
458 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
459 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
460 },
461 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
462 &quot;A String&quot;,
463 ],
464 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
465 &quot;A String&quot;,
466 ],
467 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any. See the ad-product-categories.txt file in the technical documentation for a list of IDs.
468 42,
469 ],
470 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to. Can be used to filter the response of the creatives.list method.
471 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
472 &quot;A String&quot;,
473 ],
474 &quot;video&quot;: { # Video content for a creative. # A video creative.
475 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard.
476 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
477 },
478 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative. If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
479 }</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400480</div>
481
482<div class="method">
483 <code class="details" id="get">get(accountId, creativeId, x__xgafv=None)</code>
484 <pre>Gets a creative.
485
486Args:
487 accountId: string, The account the creative belongs to. (required)
488 creativeId: string, The ID of the creative to retrieve. (required)
489 x__xgafv: string, V1 error format.
490 Allowed values
491 1 - v1 error format
492 2 - v2 error format
493
494Returns:
495 An object of the form:
496
497 { # A creative and its classification data.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700498 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
499 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
500 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
501 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700502 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700503 &quot;version&quot;: 42, # Output only. The version of this creative.
504 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is arbitrary. The codes are 2 or 5 characters and are documented at https://developers.google.com/adwords/api/docs/appendix/languagecodes.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700505 &quot;A String&quot;,
506 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700507 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
508 &quot;A String&quot;,
509 ],
510 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
511 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
512 &quot;A String&quot;,
513 ],
514 &quot;servingRestrictions&quot;: [ # Output only. 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).
515 { # Output only. A representation of the status of an ad in a specific context. A context here relates to where something ultimately serves (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, or the type of auction).
516 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been explicitly disapproved or is pending review).
517 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700518 &quot;details&quot;: [ # Additional details about the reason for disapproval.
519 &quot;A String&quot;,
520 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700521 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700522 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700523 &quot;contexts&quot;: [ # The contexts for the restriction.
524 { # The serving context for this restriction.
525 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
526 &quot;platforms&quot;: [ # The platforms this restriction applies to.
527 &quot;A String&quot;,
528 ],
529 },
530 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
531 &quot;securities&quot;: [ # The security types in this context.
532 &quot;A String&quot;,
533 ],
534 },
535 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
536 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
537 42,
538 ],
539 },
540 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
541 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
542 &quot;A String&quot;,
543 ],
544 },
545 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
546 &quot;appTypes&quot;: [ # The app types this restriction applies to.
547 &quot;A String&quot;,
548 ],
549 },
550 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
551 },
552 ],
553 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method. Deprecated; please use disapproval field instead.
554 { # Output only. The reason and details for a disapproval.
555 &quot;details&quot;: [ # Additional details about the reason for disapproval.
556 &quot;A String&quot;,
557 ],
558 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
559 },
560 ],
561 },
562 ],
563 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method.
564 &quot;A String&quot;,
565 ],
566 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values.
567 42,
568 ],
569 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative. If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
570 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
571 &quot;A String&quot;,
572 ],
573 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method.
574 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
575 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
576 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
577 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any. See the ad-sensitive-categories.txt file in the technical documentation for a list of IDs. You should use these IDs along with the excluded-sensitive-category field in the bid request to filter your bids.
578 42,
579 ],
580 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
581 { # Output only. Shows any corrections that were applied to this creative.
582 &quot;contexts&quot;: [ # The contexts for the correction.
583 { # The serving context for this restriction.
584 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
585 &quot;platforms&quot;: [ # The platforms this restriction applies to.
586 &quot;A String&quot;,
587 ],
588 },
589 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
590 &quot;securities&quot;: [ # The security types in this context.
591 &quot;A String&quot;,
592 ],
593 },
594 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
595 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
596 42,
597 ],
598 },
599 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
600 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
601 &quot;A String&quot;,
602 ],
603 },
604 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
605 &quot;appTypes&quot;: [ # The app types this restriction applies to.
606 &quot;A String&quot;,
607 ],
608 },
609 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
610 },
611 ],
612 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
613 &quot;details&quot;: [ # Additional details about what was corrected.
614 &quot;A String&quot;,
615 ],
616 },
617 ],
618 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
619 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for mapping of provider ID to provided name, a privacy policy URL, and a list of domains which can be attributed to the provider. If the creative contains provider IDs that are outside of those listed in the `BidRequest.adslot.consented_providers_settings.consented_providers` field on the (Google bid protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto] and the `BidRequest.user.ext.consented_providers_settings.consented_providers` field on the (OpenRTB protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto], and a bid is submitted with that creative for an impression that will serve to an EEA user, the bid will be filtered before the auction.
620 &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700621 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700622 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider. If true for a given creative, any bid submitted with that creative for an impression that will serve to an EEA user will be filtered before the auction.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700623 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700624 &quot;native&quot;: { # Native content for a creative. # A native creative.
625 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
626 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A smaller image, for the advertiser&#x27;s logo.
627 &quot;height&quot;: 42, # Image height in pixels.
628 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
629 &quot;width&quot;: 42, # Image width in pixels.
630 },
631 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
632 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # The app icon, for app download ads.
633 &quot;height&quot;: 42, # Image height in pixels.
634 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
635 &quot;width&quot;: 42, # Image width in pixels.
636 },
637 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
638 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
639 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
640 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A large image.
641 &quot;height&quot;: 42, # Image height in pixels.
642 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
643 &quot;width&quot;: 42, # Image width in pixels.
644 },
645 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
646 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
647 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
648 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
649 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
650 },
651 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
652 &quot;A String&quot;,
653 ],
654 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
655 &quot;A String&quot;,
656 ],
657 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any. See the ad-product-categories.txt file in the technical documentation for a list of IDs.
658 42,
659 ],
660 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to. Can be used to filter the response of the creatives.list method.
661 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
662 &quot;A String&quot;,
663 ],
664 &quot;video&quot;: { # Video content for a creative. # A video creative.
665 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard.
666 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
667 },
668 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative. If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
669 }</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400670</div>
671
672<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700673 <code class="details" id="list">list(accountId, pageSize=None, pageToken=None, query=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400674 <pre>Lists creatives.
675
676Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700677 accountId: string, The account to list the creatives from. Specify &quot;-&quot; to list all creatives the current user has access to. (required)
678 pageSize: integer, Requested page size. The server may return fewer creatives than requested (due to timeout constraint) even if more are available via another call. If unspecified, server will pick an appropriate default. Acceptable values are 1 to 1000, inclusive.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700679 pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of ListCreativesResponse.next_page_token returned from the previous call to &#x27;ListCreatives&#x27; method.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700680 query: string, An optional query string to filter creatives. If no filter is specified, all active creatives will be returned. Supported queries are: - accountId=*account_id_string* - creativeId=*creative_id_string* - dealsStatus: {approved, conditionally_approved, disapproved, not_checked} - openAuctionStatus: {approved, conditionally_approved, disapproved, not_checked} - attribute: {a numeric attribute from the list of attributes} - disapprovalReason: {a reason from DisapprovalReason} Example: &#x27;accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47&#x27;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400681 x__xgafv: string, V1 error format.
682 Allowed values
683 1 - v1 error format
684 2 - v2 error format
685
686Returns:
687 An object of the form:
688
689 { # A response for listing creatives.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700690 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. Pass this value in the ListCreativesRequest.page_token field in the subsequent call to `ListCreatives` method to retrieve the next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 &quot;creatives&quot;: [ # The list of creatives.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400692 { # A creative and its classification data.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700693 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
694 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
695 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
696 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700697 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700698 &quot;version&quot;: 42, # Output only. The version of this creative.
699 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is arbitrary. The codes are 2 or 5 characters and are documented at https://developers.google.com/adwords/api/docs/appendix/languagecodes.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700700 &quot;A String&quot;,
701 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700702 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
703 &quot;A String&quot;,
704 ],
705 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
706 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
707 &quot;A String&quot;,
708 ],
709 &quot;servingRestrictions&quot;: [ # Output only. 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).
710 { # Output only. A representation of the status of an ad in a specific context. A context here relates to where something ultimately serves (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, or the type of auction).
711 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been explicitly disapproved or is pending review).
712 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700713 &quot;details&quot;: [ # Additional details about the reason for disapproval.
714 &quot;A String&quot;,
715 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700716 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700717 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700718 &quot;contexts&quot;: [ # The contexts for the restriction.
719 { # The serving context for this restriction.
720 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
721 &quot;platforms&quot;: [ # The platforms this restriction applies to.
722 &quot;A String&quot;,
723 ],
724 },
725 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
726 &quot;securities&quot;: [ # The security types in this context.
727 &quot;A String&quot;,
728 ],
729 },
730 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
731 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
732 42,
733 ],
734 },
735 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
736 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
737 &quot;A String&quot;,
738 ],
739 },
740 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
741 &quot;appTypes&quot;: [ # The app types this restriction applies to.
742 &quot;A String&quot;,
743 ],
744 },
745 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
746 },
747 ],
748 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method. Deprecated; please use disapproval field instead.
749 { # Output only. The reason and details for a disapproval.
750 &quot;details&quot;: [ # Additional details about the reason for disapproval.
751 &quot;A String&quot;,
752 ],
753 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
754 },
755 ],
756 },
757 ],
758 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method.
759 &quot;A String&quot;,
760 ],
761 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values.
762 42,
763 ],
764 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative. If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
765 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
766 &quot;A String&quot;,
767 ],
768 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method.
769 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
770 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
771 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
772 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any. See the ad-sensitive-categories.txt file in the technical documentation for a list of IDs. You should use these IDs along with the excluded-sensitive-category field in the bid request to filter your bids.
773 42,
774 ],
775 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
776 { # Output only. Shows any corrections that were applied to this creative.
777 &quot;contexts&quot;: [ # The contexts for the correction.
778 { # The serving context for this restriction.
779 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
780 &quot;platforms&quot;: [ # The platforms this restriction applies to.
781 &quot;A String&quot;,
782 ],
783 },
784 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
785 &quot;securities&quot;: [ # The security types in this context.
786 &quot;A String&quot;,
787 ],
788 },
789 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
790 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
791 42,
792 ],
793 },
794 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
795 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
796 &quot;A String&quot;,
797 ],
798 },
799 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
800 &quot;appTypes&quot;: [ # The app types this restriction applies to.
801 &quot;A String&quot;,
802 ],
803 },
804 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
805 },
806 ],
807 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
808 &quot;details&quot;: [ # Additional details about what was corrected.
809 &quot;A String&quot;,
810 ],
811 },
812 ],
813 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
814 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for mapping of provider ID to provided name, a privacy policy URL, and a list of domains which can be attributed to the provider. If the creative contains provider IDs that are outside of those listed in the `BidRequest.adslot.consented_providers_settings.consented_providers` field on the (Google bid protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto] and the `BidRequest.user.ext.consented_providers_settings.consented_providers` field on the (OpenRTB protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto], and a bid is submitted with that creative for an impression that will serve to an EEA user, the bid will be filtered before the auction.
815 &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700816 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700817 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider. If true for a given creative, any bid submitted with that creative for an impression that will serve to an EEA user will be filtered before the auction.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700818 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700819 &quot;native&quot;: { # Native content for a creative. # A native creative.
820 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
821 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A smaller image, for the advertiser&#x27;s logo.
822 &quot;height&quot;: 42, # Image height in pixels.
823 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
824 &quot;width&quot;: 42, # Image width in pixels.
825 },
826 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
827 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # The app icon, for app download ads.
828 &quot;height&quot;: 42, # Image height in pixels.
829 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
830 &quot;width&quot;: 42, # Image width in pixels.
831 },
832 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
833 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
834 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
835 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A large image.
836 &quot;height&quot;: 42, # Image height in pixels.
837 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
838 &quot;width&quot;: 42, # Image width in pixels.
839 },
840 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
841 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
842 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
843 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
844 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
845 },
846 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
847 &quot;A String&quot;,
848 ],
849 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
850 &quot;A String&quot;,
851 ],
852 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any. See the ad-product-categories.txt file in the technical documentation for a list of IDs.
853 42,
854 ],
855 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to. Can be used to filter the response of the creatives.list method.
856 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
857 &quot;A String&quot;,
858 ],
859 &quot;video&quot;: { # Video content for a creative. # A video creative.
860 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard.
861 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
862 },
863 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative. If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
864 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400865 ],
866 }</pre>
867</div>
868
869<div class="method">
870 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
871 <pre>Retrieves the next page of results.
872
873Args:
874 previous_request: The request for the previous page. (required)
875 previous_response: The response from the request for the previous page. (required)
876
877Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400879 page. Returns None if there are no more items in the collection.
880 </pre>
881</div>
882
883<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700884 <code class="details" id="stopWatching">stopWatching(accountId, creativeId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700885 <pre>Stops watching a creative. Will stop push notifications being sent to the topics when the creative changes status.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400886
887Args:
888 accountId: string, The account of the creative to stop notifications for. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700889 creativeId: string, The creative ID of the creative to stop notifications for. Specify &quot;-&quot; to specify stopping account level notifications. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700890 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400891 The object takes the form of:
892
893{ # A request for stopping notifications for changes to creative Status.
894 }
895
896 x__xgafv: string, V1 error format.
897 Allowed values
898 1 - v1 error format
899 2 - v2 error format
900
901Returns:
902 An object of the form:
903
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700904 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400905 }</pre>
906</div>
907
908<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700909 <code class="details" id="update">update(accountId, creativeId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400910 <pre>Updates a creative.
911
912Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700913 accountId: string, The account that this creative belongs to. Can be used to filter the response of the creatives.list method. (required)
914 creativeId: string, The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700915 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400916 The object takes the form of:
917
918{ # A creative and its classification data.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700919 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
920 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
921 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
922 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700923 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700924 &quot;version&quot;: 42, # Output only. The version of this creative.
925 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is arbitrary. The codes are 2 or 5 characters and are documented at https://developers.google.com/adwords/api/docs/appendix/languagecodes.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700926 &quot;A String&quot;,
927 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700928 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
929 &quot;A String&quot;,
930 ],
931 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
932 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
933 &quot;A String&quot;,
934 ],
935 &quot;servingRestrictions&quot;: [ # Output only. 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).
936 { # Output only. A representation of the status of an ad in a specific context. A context here relates to where something ultimately serves (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, or the type of auction).
937 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been explicitly disapproved or is pending review).
938 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700939 &quot;details&quot;: [ # Additional details about the reason for disapproval.
940 &quot;A String&quot;,
941 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700942 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700943 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700944 &quot;contexts&quot;: [ # The contexts for the restriction.
945 { # The serving context for this restriction.
946 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
947 &quot;platforms&quot;: [ # The platforms this restriction applies to.
948 &quot;A String&quot;,
949 ],
950 },
951 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
952 &quot;securities&quot;: [ # The security types in this context.
953 &quot;A String&quot;,
954 ],
955 },
956 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
957 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
958 42,
959 ],
960 },
961 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
962 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
963 &quot;A String&quot;,
964 ],
965 },
966 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
967 &quot;appTypes&quot;: [ # The app types this restriction applies to.
968 &quot;A String&quot;,
969 ],
970 },
971 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
972 },
973 ],
974 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method. Deprecated; please use disapproval field instead.
975 { # Output only. The reason and details for a disapproval.
976 &quot;details&quot;: [ # Additional details about the reason for disapproval.
977 &quot;A String&quot;,
978 ],
979 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
980 },
981 ],
982 },
983 ],
984 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method.
985 &quot;A String&quot;,
986 ],
987 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values.
988 42,
989 ],
990 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative. If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
991 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
992 &quot;A String&quot;,
993 ],
994 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method.
995 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
996 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
997 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
998 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any. See the ad-sensitive-categories.txt file in the technical documentation for a list of IDs. You should use these IDs along with the excluded-sensitive-category field in the bid request to filter your bids.
999 42,
1000 ],
1001 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
1002 { # Output only. Shows any corrections that were applied to this creative.
1003 &quot;contexts&quot;: [ # The contexts for the correction.
1004 { # The serving context for this restriction.
1005 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1006 &quot;platforms&quot;: [ # The platforms this restriction applies to.
1007 &quot;A String&quot;,
1008 ],
1009 },
1010 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
1011 &quot;securities&quot;: [ # The security types in this context.
1012 &quot;A String&quot;,
1013 ],
1014 },
1015 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
1016 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
1017 42,
1018 ],
1019 },
1020 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
1021 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
1022 &quot;A String&quot;,
1023 ],
1024 },
1025 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1026 &quot;appTypes&quot;: [ # The app types this restriction applies to.
1027 &quot;A String&quot;,
1028 ],
1029 },
1030 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
1031 },
1032 ],
1033 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
1034 &quot;details&quot;: [ # Additional details about what was corrected.
1035 &quot;A String&quot;,
1036 ],
1037 },
1038 ],
1039 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
1040 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for mapping of provider ID to provided name, a privacy policy URL, and a list of domains which can be attributed to the provider. If the creative contains provider IDs that are outside of those listed in the `BidRequest.adslot.consented_providers_settings.consented_providers` field on the (Google bid protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto] and the `BidRequest.user.ext.consented_providers_settings.consented_providers` field on the (OpenRTB protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto], and a bid is submitted with that creative for an impression that will serve to an EEA user, the bid will be filtered before the auction.
1041 &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001042 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001043 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider. If true for a given creative, any bid submitted with that creative for an impression that will serve to an EEA user will be filtered before the auction.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001044 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001045 &quot;native&quot;: { # Native content for a creative. # A native creative.
1046 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
1047 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A smaller image, for the advertiser&#x27;s logo.
1048 &quot;height&quot;: 42, # Image height in pixels.
1049 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1050 &quot;width&quot;: 42, # Image width in pixels.
1051 },
1052 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
1053 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # The app icon, for app download ads.
1054 &quot;height&quot;: 42, # Image height in pixels.
1055 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1056 &quot;width&quot;: 42, # Image width in pixels.
1057 },
1058 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
1059 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
1060 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
1061 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A large image.
1062 &quot;height&quot;: 42, # Image height in pixels.
1063 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1064 &quot;width&quot;: 42, # Image width in pixels.
1065 },
1066 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
1067 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
1068 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
1069 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
1070 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
1071 },
1072 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
1073 &quot;A String&quot;,
1074 ],
1075 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
1076 &quot;A String&quot;,
1077 ],
1078 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any. See the ad-product-categories.txt file in the technical documentation for a list of IDs.
1079 42,
1080 ],
1081 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to. Can be used to filter the response of the creatives.list method.
1082 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
1083 &quot;A String&quot;,
1084 ],
1085 &quot;video&quot;: { # Video content for a creative. # A video creative.
1086 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard.
1087 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
1088 },
1089 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative. If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
1090 }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001091
1092 x__xgafv: string, V1 error format.
1093 Allowed values
1094 1 - v1 error format
1095 2 - v2 error format
1096
1097Returns:
1098 An object of the form:
1099
1100 { # A creative and its classification data.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001101 &quot;html&quot;: { # HTML content for a creative. # An HTML creative.
1102 &quot;snippet&quot;: &quot;A String&quot;, # The HTML snippet that displays the ad when inserted in the web page.
1103 &quot;height&quot;: 42, # The height of the HTML snippet in pixels.
1104 &quot;width&quot;: 42, # The width of the HTML snippet in pixels.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001105 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001106 &quot;version&quot;: 42, # Output only. The version of this creative.
1107 &quot;detectedLanguages&quot;: [ # Output only. The detected languages for this creative. The order is arbitrary. The codes are 2 or 5 characters and are documented at https://developers.google.com/adwords/api/docs/appendix/languagecodes.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001108 &quot;A String&quot;,
1109 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001110 &quot;impressionTrackingUrls&quot;: [ # The set of URLs to be called to record an impression.
1111 &quot;A String&quot;,
1112 ],
1113 &quot;apiUpdateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the creative via API.
1114 &quot;detectedDomains&quot;: [ # Output only. The detected domains for this creative.
1115 &quot;A String&quot;,
1116 ],
1117 &quot;servingRestrictions&quot;: [ # Output only. 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).
1118 { # Output only. A representation of the status of an ad in a specific context. A context here relates to where something ultimately serves (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, or the type of auction).
1119 &quot;status&quot;: &quot;A String&quot;, # The status of the creative in this context (for example, it has been explicitly disapproved or is pending review).
1120 &quot;disapproval&quot;: { # Output only. The reason and details for a disapproval. # Disapproval bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001121 &quot;details&quot;: [ # Additional details about the reason for disapproval.
1122 &quot;A String&quot;,
1123 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001124 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001125 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001126 &quot;contexts&quot;: [ # The contexts for the restriction.
1127 { # The serving context for this restriction.
1128 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1129 &quot;platforms&quot;: [ # The platforms this restriction applies to.
1130 &quot;A String&quot;,
1131 ],
1132 },
1133 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
1134 &quot;securities&quot;: [ # The security types in this context.
1135 &quot;A String&quot;,
1136 ],
1137 },
1138 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
1139 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
1140 42,
1141 ],
1142 },
1143 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
1144 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
1145 &quot;A String&quot;,
1146 ],
1147 },
1148 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1149 &quot;appTypes&quot;: [ # The app types this restriction applies to.
1150 &quot;A String&quot;,
1151 ],
1152 },
1153 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
1154 },
1155 ],
1156 &quot;disapprovalReasons&quot;: [ # Any disapprovals bound to this restriction. Only present if status=DISAPPROVED. Can be used to filter the response of the creatives.list method. Deprecated; please use disapproval field instead.
1157 { # Output only. The reason and details for a disapproval.
1158 &quot;details&quot;: [ # Additional details about the reason for disapproval.
1159 &quot;A String&quot;,
1160 ],
1161 &quot;reason&quot;: &quot;A String&quot;, # The categorized reason for disapproval.
1162 },
1163 ],
1164 },
1165 ],
1166 &quot;attributes&quot;: [ # All attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method.
1167 &quot;A String&quot;,
1168 ],
1169 &quot;vendorIds&quot;: [ # All vendor IDs for the ads that may be shown from this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values.
1170 42,
1171 ],
1172 &quot;openAuctionStatus&quot;: &quot;A String&quot;, # Output only. The top-level open auction status of this creative. If disapproved, an entry for &#x27;auctionType = OPEN_AUCTION&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
1173 &quot;restrictedCategories&quot;: [ # All restricted categories for the ads that may be shown from this creative.
1174 &quot;A String&quot;,
1175 ],
1176 &quot;creativeId&quot;: &quot;A String&quot;, # The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method.
1177 &quot;adChoicesDestinationUrl&quot;: &quot;A String&quot;, # The link to AdChoices destination page.
1178 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the company being advertised in the creative.
1179 &quot;agencyId&quot;: &quot;A String&quot;, # The agency ID for this creative.
1180 &quot;detectedSensitiveCategories&quot;: [ # Output only. Detected sensitive categories, if any. See the ad-sensitive-categories.txt file in the technical documentation for a list of IDs. You should use these IDs along with the excluded-sensitive-category field in the bid request to filter your bids.
1181 42,
1182 ],
1183 &quot;corrections&quot;: [ # Output only. Shows any corrections that were applied to this creative.
1184 { # Output only. Shows any corrections that were applied to this creative.
1185 &quot;contexts&quot;: [ # The contexts for the correction.
1186 { # The serving context for this restriction.
1187 &quot;platform&quot;: { # Output only. The type of platform the restriction applies to. # Matches impressions coming from a particular platform.
1188 &quot;platforms&quot;: [ # The platforms this restriction applies to.
1189 &quot;A String&quot;,
1190 ],
1191 },
1192 &quot;securityType&quot;: { # Output only. A security context. # Matches impressions for a particular security type.
1193 &quot;securities&quot;: [ # The security types in this context.
1194 &quot;A String&quot;,
1195 ],
1196 },
1197 &quot;location&quot;: { # Output only. The Geo criteria the restriction applies to. # Matches impressions coming from users *or* publishers in a specific location.
1198 &quot;geoCriteriaIds&quot;: [ # IDs representing the geo location for this context. Please refer to the [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) file for different geo criteria IDs.
1199 42,
1200 ],
1201 },
1202 &quot;auctionType&quot;: { # Output only. The auction type the restriction applies to. # Matches impressions for a particular auction type.
1203 &quot;auctionTypes&quot;: [ # The auction types this restriction applies to.
1204 &quot;A String&quot;,
1205 ],
1206 },
1207 &quot;appType&quot;: { # Output only. The app type the restriction applies to for mobile device. # Matches impressions for a particular app type.
1208 &quot;appTypes&quot;: [ # The app types this restriction applies to.
1209 &quot;A String&quot;,
1210 ],
1211 },
1212 &quot;all&quot;: &quot;A String&quot;, # Matches all contexts.
1213 },
1214 ],
1215 &quot;type&quot;: &quot;A String&quot;, # The type of correction that was applied to the creative.
1216 &quot;details&quot;: [ # Additional details about what was corrected.
1217 &quot;A String&quot;,
1218 ],
1219 },
1220 ],
1221 &quot;adTechnologyProviders&quot;: { # Detected ad technology provider information. # Output only. The detected ad technology providers.
1222 &quot;detectedProviderIds&quot;: [ # The detected ad technology provider IDs for this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for mapping of provider ID to provided name, a privacy policy URL, and a list of domains which can be attributed to the provider. If the creative contains provider IDs that are outside of those listed in the `BidRequest.adslot.consented_providers_settings.consented_providers` field on the (Google bid protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto] and the `BidRequest.user.ext.consented_providers_settings.consented_providers` field on the (OpenRTB protocol)[https://developers.google.com/authorized-buyers/rtb/downloads/openrtb-adx-proto], and a bid is submitted with that creative for an impression that will serve to an EEA user, the bid will be filtered before the auction.
1223 &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001224 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001225 &quot;hasUnidentifiedProvider&quot;: True or False, # Whether the creative contains an unidentified ad technology provider. If true for a given creative, any bid submitted with that creative for an impression that will serve to an EEA user will be filtered before the auction.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001226 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001227 &quot;native&quot;: { # Native content for a creative. # A native creative.
1228 &quot;clickTrackingUrl&quot;: &quot;A String&quot;, # The URL to use for click tracking.
1229 &quot;logo&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A smaller image, for the advertiser&#x27;s logo.
1230 &quot;height&quot;: 42, # Image height in pixels.
1231 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1232 &quot;width&quot;: 42, # Image width in pixels.
1233 },
1234 &quot;clickLinkUrl&quot;: &quot;A String&quot;, # The URL that the browser/SDK will load when the user clicks the ad.
1235 &quot;appIcon&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # The app icon, for app download ads.
1236 &quot;height&quot;: 42, # Image height in pixels.
1237 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1238 &quot;width&quot;: 42, # Image width in pixels.
1239 },
1240 &quot;callToAction&quot;: &quot;A String&quot;, # A label for the button that the user is supposed to click.
1241 &quot;starRating&quot;: 3.14, # The app rating in the app store. Must be in the range [0-5].
1242 &quot;advertiserName&quot;: &quot;A String&quot;, # The name of the advertiser or sponsor, to be displayed in the ad creative.
1243 &quot;image&quot;: { # An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved. # A large image.
1244 &quot;height&quot;: 42, # Image height in pixels.
1245 &quot;url&quot;: &quot;A String&quot;, # The URL of the image.
1246 &quot;width&quot;: 42, # Image width in pixels.
1247 },
1248 &quot;storeUrl&quot;: &quot;A String&quot;, # The URL to the app store to purchase/download the promoted app.
1249 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a native video ad.
1250 &quot;body&quot;: &quot;A String&quot;, # A long description of the ad.
1251 &quot;priceDisplayText&quot;: &quot;A String&quot;, # The price of the promoted app including currency info.
1252 &quot;headline&quot;: &quot;A String&quot;, # A short title for the ad.
1253 },
1254 &quot;declaredClickThroughUrls&quot;: [ # The set of declared destination URLs for the creative.
1255 &quot;A String&quot;,
1256 ],
1257 &quot;clickThroughUrls&quot;: [ # The set of destination URLs for the creative.
1258 &quot;A String&quot;,
1259 ],
1260 &quot;detectedProductCategories&quot;: [ # Output only. Detected product categories, if any. See the ad-product-categories.txt file in the technical documentation for a list of IDs.
1261 42,
1262 ],
1263 &quot;accountId&quot;: &quot;A String&quot;, # The account that this creative belongs to. Can be used to filter the response of the creatives.list method.
1264 &quot;detectedAdvertiserIds&quot;: [ # Output only. Detected advertiser IDs, if any.
1265 &quot;A String&quot;,
1266 ],
1267 &quot;video&quot;: { # Video content for a creative. # A video creative.
1268 &quot;videoVastXml&quot;: &quot;A String&quot;, # The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard.
1269 &quot;videoUrl&quot;: &quot;A String&quot;, # The URL to fetch a video ad.
1270 },
1271 &quot;dealsStatus&quot;: &quot;A String&quot;, # Output only. The top-level deals status of this creative. If disapproved, an entry for &#x27;auctionType=DIRECT_DEALS&#x27; (or &#x27;ALL&#x27;) in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method.
1272 }</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001273</div>
1274
1275<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001276 <code class="details" id="watch">watch(accountId, creativeId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001277 <pre>Watches a creative. Will result in push notifications being sent to the topic when the creative changes status.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001278
1279Args:
1280 accountId: string, The account of the creative to watch. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001281 creativeId: string, The creative ID to watch for status changes. Specify &quot;-&quot; to watch all creatives under the above account. If both creative-level and account-level notifications are sent, only a single notification will be sent to the creative-level notification topic. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001282 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001283 The object takes the form of:
1284
1285{ # A request for watching changes to creative Status.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001286 &quot;topic&quot;: &quot;A String&quot;, # The Pub/Sub topic to publish notifications to. This topic must already exist and must give permission to ad-exchange-buyside-reports@google.com to write to the topic. This should be the full resource name in &quot;projects/{project_id}/topics/{topic_id}&quot; format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001287 }
1288
1289 x__xgafv: string, V1 error format.
1290 Allowed values
1291 1 - v1 error format
1292 2 - v2 error format
1293
1294Returns:
1295 An object of the form:
1296
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001297 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001298 }</pre>
1299</div>
1300
1301</body></html>