1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="adexchangebuyer_v1_2.html">Ad Exchange Buyer API</a> . <a href="adexchangebuyer_v1_2.creatives.html">creatives</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#get">get(accountId, buyerCreativeId)</a></code></p> 79<p class="firstline">Gets the status for a single creative. A creative will be available 30-40 minutes after submission.</p> 80<p class="toc_element"> 81 <code><a href="#insert">insert(body)</a></code></p> 82<p class="firstline">Submit a new creative.</p> 83<p class="toc_element"> 84 <code><a href="#list">list(pageToken=None, maxResults=None, statusFilter=None)</a></code></p> 85<p class="firstline">Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.</p> 86<p class="toc_element"> 87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 88<p class="firstline">Retrieves the next page of results.</p> 89<h3>Method Details</h3> 90<div class="method"> 91 <code class="details" id="get">get(accountId, buyerCreativeId)</code> 92 <pre>Gets the status for a single creative. A creative will be available 30-40 minutes after submission. 93 94Args: 95 accountId: integer, The id for the account that will serve this creative. (required) 96 buyerCreativeId: string, The buyer-specific id for this creative. (required) 97 98Returns: 99 An object of the form: 100 101 { # A creative and its classification data. 102 "status": "A String", # Creative serving status. Read-only. This field should not be set in requests. 103 "attribute": [ # All attributes for the ads that may be shown from this snippet. 104 42, 105 ], 106 "height": 42, # Ad height. 107 "advertiserName": "A String", # The name of the company being advertised in the creative. 108 "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set. 109 "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad. 110 "impressionTrackingUrl": [ # The set of urls to be called to record an impression. 111 "A String", 112 ], 113 "accountId": 42, # Account id. 114 "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set. 115 "clickThroughUrl": [ # The set of destination urls for the snippet. 116 "A String", 117 ], 118 "width": 42, # Ad width. 119 "version": 42, # The version for this creative. Read-only. This field should not be set in requests. 120 "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp). 121 "vendorType": [ # All vendor types for the ads that may be shown from this snippet. 122 42, 123 ], 124 "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests. 125 { 126 "reason": "A String", # The categorized reason for disapproval. 127 "details": [ # Additional details about the reason for disapproval. 128 "A String", 129 ], 130 }, 131 ], 132 "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests. 133 42, 134 ], 135 "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests. 136 42, 137 ], 138 "agencyId": "A String", # The agency id for this creative. 139 "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests. 140 "A String", 141 ], 142 "kind": "adexchangebuyer#creative", # Resource type. 143 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet. 144 42, 145 ], 146 "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests. 147 { 148 "reason": "A String", # The type of correction that was applied to the creative. 149 "details": [ # Additional details about the correction. 150 "A String", 151 ], 152 }, 153 ], 154 "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests. 155 "date": "A String", # The date in ISO 8601 format for the data. The data is collected from 00:00:00 to 23:59:59 in PST. 156 "reasons": [ # The filtering reasons. 157 { 158 "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange. 159 "filteringStatus": 42, # The filtering status code. Please refer to the creative-status-codes.txt file for different statuses. 160 }, 161 ], 162 }, 163 }</pre> 164</div> 165 166<div class="method"> 167 <code class="details" id="insert">insert(body)</code> 168 <pre>Submit a new creative. 169 170Args: 171 body: object, The request body. (required) 172 The object takes the form of: 173 174{ # A creative and its classification data. 175 "status": "A String", # Creative serving status. Read-only. This field should not be set in requests. 176 "attribute": [ # All attributes for the ads that may be shown from this snippet. 177 42, 178 ], 179 "height": 42, # Ad height. 180 "advertiserName": "A String", # The name of the company being advertised in the creative. 181 "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set. 182 "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad. 183 "impressionTrackingUrl": [ # The set of urls to be called to record an impression. 184 "A String", 185 ], 186 "accountId": 42, # Account id. 187 "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set. 188 "clickThroughUrl": [ # The set of destination urls for the snippet. 189 "A String", 190 ], 191 "width": 42, # Ad width. 192 "version": 42, # The version for this creative. Read-only. This field should not be set in requests. 193 "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp). 194 "vendorType": [ # All vendor types for the ads that may be shown from this snippet. 195 42, 196 ], 197 "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests. 198 { 199 "reason": "A String", # The categorized reason for disapproval. 200 "details": [ # Additional details about the reason for disapproval. 201 "A String", 202 ], 203 }, 204 ], 205 "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests. 206 42, 207 ], 208 "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests. 209 42, 210 ], 211 "agencyId": "A String", # The agency id for this creative. 212 "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests. 213 "A String", 214 ], 215 "kind": "adexchangebuyer#creative", # Resource type. 216 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet. 217 42, 218 ], 219 "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests. 220 { 221 "reason": "A String", # The type of correction that was applied to the creative. 222 "details": [ # Additional details about the correction. 223 "A String", 224 ], 225 }, 226 ], 227 "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests. 228 "date": "A String", # The date in ISO 8601 format for the data. The data is collected from 00:00:00 to 23:59:59 in PST. 229 "reasons": [ # The filtering reasons. 230 { 231 "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange. 232 "filteringStatus": 42, # The filtering status code. Please refer to the creative-status-codes.txt file for different statuses. 233 }, 234 ], 235 }, 236 } 237 238 239Returns: 240 An object of the form: 241 242 { # A creative and its classification data. 243 "status": "A String", # Creative serving status. Read-only. This field should not be set in requests. 244 "attribute": [ # All attributes for the ads that may be shown from this snippet. 245 42, 246 ], 247 "height": 42, # Ad height. 248 "advertiserName": "A String", # The name of the company being advertised in the creative. 249 "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set. 250 "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad. 251 "impressionTrackingUrl": [ # The set of urls to be called to record an impression. 252 "A String", 253 ], 254 "accountId": 42, # Account id. 255 "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set. 256 "clickThroughUrl": [ # The set of destination urls for the snippet. 257 "A String", 258 ], 259 "width": 42, # Ad width. 260 "version": 42, # The version for this creative. Read-only. This field should not be set in requests. 261 "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp). 262 "vendorType": [ # All vendor types for the ads that may be shown from this snippet. 263 42, 264 ], 265 "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests. 266 { 267 "reason": "A String", # The categorized reason for disapproval. 268 "details": [ # Additional details about the reason for disapproval. 269 "A String", 270 ], 271 }, 272 ], 273 "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests. 274 42, 275 ], 276 "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests. 277 42, 278 ], 279 "agencyId": "A String", # The agency id for this creative. 280 "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests. 281 "A String", 282 ], 283 "kind": "adexchangebuyer#creative", # Resource type. 284 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet. 285 42, 286 ], 287 "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests. 288 { 289 "reason": "A String", # The type of correction that was applied to the creative. 290 "details": [ # Additional details about the correction. 291 "A String", 292 ], 293 }, 294 ], 295 "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests. 296 "date": "A String", # The date in ISO 8601 format for the data. The data is collected from 00:00:00 to 23:59:59 in PST. 297 "reasons": [ # The filtering reasons. 298 { 299 "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange. 300 "filteringStatus": 42, # The filtering status code. Please refer to the creative-status-codes.txt file for different statuses. 301 }, 302 ], 303 }, 304 }</pre> 305</div> 306 307<div class="method"> 308 <code class="details" id="list">list(pageToken=None, maxResults=None, statusFilter=None)</code> 309 <pre>Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission. 310 311Args: 312 pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional. 313 maxResults: integer, Maximum number of entries returned on one result page. If not set, the default is 100. Optional. 314 statusFilter: string, When specified, only creatives having the given status are returned. 315 Allowed values 316 approved - Creatives which have been approved. 317 disapproved - Creatives which have been disapproved. 318 not_checked - Creatives whose status is not yet checked. 319 320Returns: 321 An object of the form: 322 323 { # The creatives feed lists the active creatives for the Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single creative. 324 "nextPageToken": "A String", # Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this. 325 "items": [ # A list of creatives. 326 { # A creative and its classification data. 327 "status": "A String", # Creative serving status. Read-only. This field should not be set in requests. 328 "attribute": [ # All attributes for the ads that may be shown from this snippet. 329 42, 330 ], 331 "height": 42, # Ad height. 332 "advertiserName": "A String", # The name of the company being advertised in the creative. 333 "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set. 334 "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad. 335 "impressionTrackingUrl": [ # The set of urls to be called to record an impression. 336 "A String", 337 ], 338 "accountId": 42, # Account id. 339 "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set. 340 "clickThroughUrl": [ # The set of destination urls for the snippet. 341 "A String", 342 ], 343 "width": 42, # Ad width. 344 "version": 42, # The version for this creative. Read-only. This field should not be set in requests. 345 "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp). 346 "vendorType": [ # All vendor types for the ads that may be shown from this snippet. 347 42, 348 ], 349 "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests. 350 { 351 "reason": "A String", # The categorized reason for disapproval. 352 "details": [ # Additional details about the reason for disapproval. 353 "A String", 354 ], 355 }, 356 ], 357 "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests. 358 42, 359 ], 360 "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests. 361 42, 362 ], 363 "agencyId": "A String", # The agency id for this creative. 364 "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests. 365 "A String", 366 ], 367 "kind": "adexchangebuyer#creative", # Resource type. 368 "restrictedCategories": [ # All restricted categories for the ads that may be shown from this snippet. 369 42, 370 ], 371 "corrections": [ # Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests. 372 { 373 "reason": "A String", # The type of correction that was applied to the creative. 374 "details": [ # Additional details about the correction. 375 "A String", 376 ], 377 }, 378 ], 379 "filteringReasons": { # The filtering reasons for the creative. Read-only. This field should not be set in requests. 380 "date": "A String", # The date in ISO 8601 format for the data. The data is collected from 00:00:00 to 23:59:59 in PST. 381 "reasons": [ # The filtering reasons. 382 { 383 "filteringCount": "A String", # The number of times the creative was filtered for the status. The count is aggregated across all publishers on the exchange. 384 "filteringStatus": 42, # The filtering status code. Please refer to the creative-status-codes.txt file for different statuses. 385 }, 386 ], 387 }, 388 }, 389 ], 390 "kind": "adexchangebuyer#creativesList", # Resource type. 391 }</pre> 392</div> 393 394<div class="method"> 395 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 396 <pre>Retrieves the next page of results. 397 398Args: 399 previous_request: The request for the previous page. (required) 400 previous_response: The response from the request for the previous page. (required) 401 402Returns: 403 A request object that you can call 'execute()' on to request the next 404 page. Returns None if there are no more items in the collection. 405 </pre> 406</div> 407 408</body></html>