• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="adexchangebuyer_v1_4.html">Ad Exchange Buyer API</a> . <a href="adexchangebuyer_v1_4.pretargetingConfig.html">pretargetingConfig</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#delete">delete(accountId, configId)</a></code></p>
79<p class="firstline">Deletes an existing pretargeting config.</p>
80<p class="toc_element">
81  <code><a href="#get">get(accountId, configId)</a></code></p>
82<p class="firstline">Gets a specific pretargeting configuration</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(accountId, body)</a></code></p>
85<p class="firstline">Inserts a new pretargeting configuration.</p>
86<p class="toc_element">
87  <code><a href="#list">list(accountId)</a></code></p>
88<p class="firstline">Retrieves a list of the authenticated user's pretargeting configurations.</p>
89<p class="toc_element">
90  <code><a href="#patch">patch(accountId, configId, body)</a></code></p>
91<p class="firstline">Updates an existing pretargeting config. This method supports patch semantics.</p>
92<p class="toc_element">
93  <code><a href="#update">update(accountId, configId, body)</a></code></p>
94<p class="firstline">Updates an existing pretargeting config.</p>
95<h3>Method Details</h3>
96<div class="method">
97    <code class="details" id="delete">delete(accountId, configId)</code>
98  <pre>Deletes an existing pretargeting config.
99
100Args:
101  accountId: string, The account id to delete the pretargeting config for. (required)
102  configId: string, The specific id of the configuration to delete. (required)
103</pre>
104</div>
105
106<div class="method">
107    <code class="details" id="get">get(accountId, configId)</code>
108  <pre>Gets a specific pretargeting configuration
109
110Args:
111  accountId: string, The account id to get the pretargeting config for. (required)
112  configId: string, The specific id of the configuration to retrieve. (required)
113
114Returns:
115  An object of the form:
116
117    {
118      "verticals": [ # Requests containing any of these vertical ids will match.
119        "A String",
120      ],
121      "platforms": [ # Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.
122        "A String",
123      ],
124      "videoPlayerSizes": [ # Video requests satisfying any of these player size constraints will match.
125        {
126          "minWidth": "A String", # The minimum player width in pixels. Leave this field blank to match any player width.
127          "aspectRatio": "A String", # The type of aspect ratio. Leave this field blank to match all aspect ratios.
128          "minHeight": "A String", # The minimum player height in pixels. Leave this field blank to match any player height.
129        },
130      ],
131      "configId": "A String", # The config id; generated automatically. Leave this field blank for insert requests.
132      "excludedVerticals": [ # Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section.
133        "A String",
134      ],
135      "configName": "A String", # The name of the config. Must be unique. Required for all requests.
136      "excludedGeoCriteriaIds": [ # Requests containing any of these geo criteria ids will not match.
137        "A String",
138      ],
139      "excludedContentLabels": [ # Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section.
140        "A String",
141      ],
142      "languages": [ # Request containing any of these language codes will match.
143        "A String",
144      ],
145      "mobileDevices": [ # Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section.
146        "A String",
147      ],
148      "mobileCarriers": [ # Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section.
149        "A String",
150      ],
151      "excludedPlacements": [ # Requests containing any of these placements will not match.
152        {
153          "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
154          "type": "A String", # The type of the placement.
155        },
156      ],
157      "dimensions": [ # Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions.
158        {
159          "width": "A String", # Width in pixels.
160          "height": "A String", # Height in pixels.
161        },
162      ],
163      "billingId": "A String", # The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically.
164      "geoCriteriaIds": [ # Requests containing any of these geo criteria ids will match.
165        "A String",
166      ],
167      "mobileOperatingSystemVersions": [ # Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section.
168        "A String",
169      ],
170      "excludedUserLists": [ # Requests containing any of these users list ids will not match.
171        "A String",
172      ],
173      "isActive": True or False, # Whether this config is active. Required for all requests.
174      "minimumViewabilityDecile": 42, # Requests where the predicted viewability is below the specified decile will not match. E.g. if the buyer sets this value to 5, requests from slots where the predicted viewability is below 50% will not match. If the predicted viewability is unknown this field will be ignored.
175      "kind": "adexchangebuyer#pretargetingConfig", # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
176      "supportedCreativeAttributes": [ # Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section.
177        "A String",
178      ],
179      "userIdentifierDataRequired": [ # Requests containing the specified type of user data will match. Possible values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means the request has either a targetable cookie or an iOS IDFA.
180        "A String",
181      ],
182      "vendorTypes": [ # Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section.
183        "A String",
184      ],
185      "userLists": [ # Requests containing any of these user list ids will match.
186        "A String",
187      ],
188      "creativeType": [ # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.
189        "A String",
190      ],
191      "placements": [ # Requests containing any of these placements will match.
192        {
193          "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
194          "type": "A String", # The type of the placement.
195        },
196      ],
197    }</pre>
198</div>
199
200<div class="method">
201    <code class="details" id="insert">insert(accountId, body)</code>
202  <pre>Inserts a new pretargeting configuration.
203
204Args:
205  accountId: string, The account id to insert the pretargeting config for. (required)
206  body: object, The request body. (required)
207    The object takes the form of:
208
209{
210    "verticals": [ # Requests containing any of these vertical ids will match.
211      "A String",
212    ],
213    "platforms": [ # Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.
214      "A String",
215    ],
216    "videoPlayerSizes": [ # Video requests satisfying any of these player size constraints will match.
217      {
218        "minWidth": "A String", # The minimum player width in pixels. Leave this field blank to match any player width.
219        "aspectRatio": "A String", # The type of aspect ratio. Leave this field blank to match all aspect ratios.
220        "minHeight": "A String", # The minimum player height in pixels. Leave this field blank to match any player height.
221      },
222    ],
223    "configId": "A String", # The config id; generated automatically. Leave this field blank for insert requests.
224    "excludedVerticals": [ # Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section.
225      "A String",
226    ],
227    "configName": "A String", # The name of the config. Must be unique. Required for all requests.
228    "excludedGeoCriteriaIds": [ # Requests containing any of these geo criteria ids will not match.
229      "A String",
230    ],
231    "excludedContentLabels": [ # Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section.
232      "A String",
233    ],
234    "languages": [ # Request containing any of these language codes will match.
235      "A String",
236    ],
237    "mobileDevices": [ # Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section.
238      "A String",
239    ],
240    "mobileCarriers": [ # Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section.
241      "A String",
242    ],
243    "excludedPlacements": [ # Requests containing any of these placements will not match.
244      {
245        "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
246        "type": "A String", # The type of the placement.
247      },
248    ],
249    "dimensions": [ # Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions.
250      {
251        "width": "A String", # Width in pixels.
252        "height": "A String", # Height in pixels.
253      },
254    ],
255    "billingId": "A String", # The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically.
256    "geoCriteriaIds": [ # Requests containing any of these geo criteria ids will match.
257      "A String",
258    ],
259    "mobileOperatingSystemVersions": [ # Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section.
260      "A String",
261    ],
262    "excludedUserLists": [ # Requests containing any of these users list ids will not match.
263      "A String",
264    ],
265    "isActive": True or False, # Whether this config is active. Required for all requests.
266    "minimumViewabilityDecile": 42, # Requests where the predicted viewability is below the specified decile will not match. E.g. if the buyer sets this value to 5, requests from slots where the predicted viewability is below 50% will not match. If the predicted viewability is unknown this field will be ignored.
267    "kind": "adexchangebuyer#pretargetingConfig", # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
268    "supportedCreativeAttributes": [ # Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section.
269      "A String",
270    ],
271    "userIdentifierDataRequired": [ # Requests containing the specified type of user data will match. Possible values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means the request has either a targetable cookie or an iOS IDFA.
272      "A String",
273    ],
274    "vendorTypes": [ # Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section.
275      "A String",
276    ],
277    "userLists": [ # Requests containing any of these user list ids will match.
278      "A String",
279    ],
280    "creativeType": [ # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.
281      "A String",
282    ],
283    "placements": [ # Requests containing any of these placements will match.
284      {
285        "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
286        "type": "A String", # The type of the placement.
287      },
288    ],
289  }
290
291
292Returns:
293  An object of the form:
294
295    {
296      "verticals": [ # Requests containing any of these vertical ids will match.
297        "A String",
298      ],
299      "platforms": [ # Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.
300        "A String",
301      ],
302      "videoPlayerSizes": [ # Video requests satisfying any of these player size constraints will match.
303        {
304          "minWidth": "A String", # The minimum player width in pixels. Leave this field blank to match any player width.
305          "aspectRatio": "A String", # The type of aspect ratio. Leave this field blank to match all aspect ratios.
306          "minHeight": "A String", # The minimum player height in pixels. Leave this field blank to match any player height.
307        },
308      ],
309      "configId": "A String", # The config id; generated automatically. Leave this field blank for insert requests.
310      "excludedVerticals": [ # Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section.
311        "A String",
312      ],
313      "configName": "A String", # The name of the config. Must be unique. Required for all requests.
314      "excludedGeoCriteriaIds": [ # Requests containing any of these geo criteria ids will not match.
315        "A String",
316      ],
317      "excludedContentLabels": [ # Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section.
318        "A String",
319      ],
320      "languages": [ # Request containing any of these language codes will match.
321        "A String",
322      ],
323      "mobileDevices": [ # Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section.
324        "A String",
325      ],
326      "mobileCarriers": [ # Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section.
327        "A String",
328      ],
329      "excludedPlacements": [ # Requests containing any of these placements will not match.
330        {
331          "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
332          "type": "A String", # The type of the placement.
333        },
334      ],
335      "dimensions": [ # Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions.
336        {
337          "width": "A String", # Width in pixels.
338          "height": "A String", # Height in pixels.
339        },
340      ],
341      "billingId": "A String", # The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically.
342      "geoCriteriaIds": [ # Requests containing any of these geo criteria ids will match.
343        "A String",
344      ],
345      "mobileOperatingSystemVersions": [ # Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section.
346        "A String",
347      ],
348      "excludedUserLists": [ # Requests containing any of these users list ids will not match.
349        "A String",
350      ],
351      "isActive": True or False, # Whether this config is active. Required for all requests.
352      "minimumViewabilityDecile": 42, # Requests where the predicted viewability is below the specified decile will not match. E.g. if the buyer sets this value to 5, requests from slots where the predicted viewability is below 50% will not match. If the predicted viewability is unknown this field will be ignored.
353      "kind": "adexchangebuyer#pretargetingConfig", # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
354      "supportedCreativeAttributes": [ # Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section.
355        "A String",
356      ],
357      "userIdentifierDataRequired": [ # Requests containing the specified type of user data will match. Possible values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means the request has either a targetable cookie or an iOS IDFA.
358        "A String",
359      ],
360      "vendorTypes": [ # Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section.
361        "A String",
362      ],
363      "userLists": [ # Requests containing any of these user list ids will match.
364        "A String",
365      ],
366      "creativeType": [ # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.
367        "A String",
368      ],
369      "placements": [ # Requests containing any of these placements will match.
370        {
371          "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
372          "type": "A String", # The type of the placement.
373        },
374      ],
375    }</pre>
376</div>
377
378<div class="method">
379    <code class="details" id="list">list(accountId)</code>
380  <pre>Retrieves a list of the authenticated user's pretargeting configurations.
381
382Args:
383  accountId: string, The account id to get the pretargeting configs for. (required)
384
385Returns:
386  An object of the form:
387
388    {
389    "items": [ # A list of pretargeting configs
390      {
391          "verticals": [ # Requests containing any of these vertical ids will match.
392            "A String",
393          ],
394          "platforms": [ # Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.
395            "A String",
396          ],
397          "videoPlayerSizes": [ # Video requests satisfying any of these player size constraints will match.
398            {
399              "minWidth": "A String", # The minimum player width in pixels. Leave this field blank to match any player width.
400              "aspectRatio": "A String", # The type of aspect ratio. Leave this field blank to match all aspect ratios.
401              "minHeight": "A String", # The minimum player height in pixels. Leave this field blank to match any player height.
402            },
403          ],
404          "configId": "A String", # The config id; generated automatically. Leave this field blank for insert requests.
405          "excludedVerticals": [ # Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section.
406            "A String",
407          ],
408          "configName": "A String", # The name of the config. Must be unique. Required for all requests.
409          "excludedGeoCriteriaIds": [ # Requests containing any of these geo criteria ids will not match.
410            "A String",
411          ],
412          "excludedContentLabels": [ # Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section.
413            "A String",
414          ],
415          "languages": [ # Request containing any of these language codes will match.
416            "A String",
417          ],
418          "mobileDevices": [ # Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section.
419            "A String",
420          ],
421          "mobileCarriers": [ # Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section.
422            "A String",
423          ],
424          "excludedPlacements": [ # Requests containing any of these placements will not match.
425            {
426              "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
427              "type": "A String", # The type of the placement.
428            },
429          ],
430          "dimensions": [ # Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions.
431            {
432              "width": "A String", # Width in pixels.
433              "height": "A String", # Height in pixels.
434            },
435          ],
436          "billingId": "A String", # The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically.
437          "geoCriteriaIds": [ # Requests containing any of these geo criteria ids will match.
438            "A String",
439          ],
440          "mobileOperatingSystemVersions": [ # Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section.
441            "A String",
442          ],
443          "excludedUserLists": [ # Requests containing any of these users list ids will not match.
444            "A String",
445          ],
446          "isActive": True or False, # Whether this config is active. Required for all requests.
447          "minimumViewabilityDecile": 42, # Requests where the predicted viewability is below the specified decile will not match. E.g. if the buyer sets this value to 5, requests from slots where the predicted viewability is below 50% will not match. If the predicted viewability is unknown this field will be ignored.
448          "kind": "adexchangebuyer#pretargetingConfig", # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
449          "supportedCreativeAttributes": [ # Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section.
450            "A String",
451          ],
452          "userIdentifierDataRequired": [ # Requests containing the specified type of user data will match. Possible values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means the request has either a targetable cookie or an iOS IDFA.
453            "A String",
454          ],
455          "vendorTypes": [ # Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section.
456            "A String",
457          ],
458          "userLists": [ # Requests containing any of these user list ids will match.
459            "A String",
460          ],
461          "creativeType": [ # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.
462            "A String",
463          ],
464          "placements": [ # Requests containing any of these placements will match.
465            {
466              "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
467              "type": "A String", # The type of the placement.
468            },
469          ],
470        },
471    ],
472    "kind": "adexchangebuyer#pretargetingConfigList", # Resource type.
473  }</pre>
474</div>
475
476<div class="method">
477    <code class="details" id="patch">patch(accountId, configId, body)</code>
478  <pre>Updates an existing pretargeting config. This method supports patch semantics.
479
480Args:
481  accountId: string, The account id to update the pretargeting config for. (required)
482  configId: string, The specific id of the configuration to update. (required)
483  body: object, The request body. (required)
484    The object takes the form of:
485
486{
487    "verticals": [ # Requests containing any of these vertical ids will match.
488      "A String",
489    ],
490    "platforms": [ # Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.
491      "A String",
492    ],
493    "videoPlayerSizes": [ # Video requests satisfying any of these player size constraints will match.
494      {
495        "minWidth": "A String", # The minimum player width in pixels. Leave this field blank to match any player width.
496        "aspectRatio": "A String", # The type of aspect ratio. Leave this field blank to match all aspect ratios.
497        "minHeight": "A String", # The minimum player height in pixels. Leave this field blank to match any player height.
498      },
499    ],
500    "configId": "A String", # The config id; generated automatically. Leave this field blank for insert requests.
501    "excludedVerticals": [ # Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section.
502      "A String",
503    ],
504    "configName": "A String", # The name of the config. Must be unique. Required for all requests.
505    "excludedGeoCriteriaIds": [ # Requests containing any of these geo criteria ids will not match.
506      "A String",
507    ],
508    "excludedContentLabels": [ # Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section.
509      "A String",
510    ],
511    "languages": [ # Request containing any of these language codes will match.
512      "A String",
513    ],
514    "mobileDevices": [ # Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section.
515      "A String",
516    ],
517    "mobileCarriers": [ # Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section.
518      "A String",
519    ],
520    "excludedPlacements": [ # Requests containing any of these placements will not match.
521      {
522        "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
523        "type": "A String", # The type of the placement.
524      },
525    ],
526    "dimensions": [ # Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions.
527      {
528        "width": "A String", # Width in pixels.
529        "height": "A String", # Height in pixels.
530      },
531    ],
532    "billingId": "A String", # The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically.
533    "geoCriteriaIds": [ # Requests containing any of these geo criteria ids will match.
534      "A String",
535    ],
536    "mobileOperatingSystemVersions": [ # Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section.
537      "A String",
538    ],
539    "excludedUserLists": [ # Requests containing any of these users list ids will not match.
540      "A String",
541    ],
542    "isActive": True or False, # Whether this config is active. Required for all requests.
543    "minimumViewabilityDecile": 42, # Requests where the predicted viewability is below the specified decile will not match. E.g. if the buyer sets this value to 5, requests from slots where the predicted viewability is below 50% will not match. If the predicted viewability is unknown this field will be ignored.
544    "kind": "adexchangebuyer#pretargetingConfig", # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
545    "supportedCreativeAttributes": [ # Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section.
546      "A String",
547    ],
548    "userIdentifierDataRequired": [ # Requests containing the specified type of user data will match. Possible values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means the request has either a targetable cookie or an iOS IDFA.
549      "A String",
550    ],
551    "vendorTypes": [ # Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section.
552      "A String",
553    ],
554    "userLists": [ # Requests containing any of these user list ids will match.
555      "A String",
556    ],
557    "creativeType": [ # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.
558      "A String",
559    ],
560    "placements": [ # Requests containing any of these placements will match.
561      {
562        "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
563        "type": "A String", # The type of the placement.
564      },
565    ],
566  }
567
568
569Returns:
570  An object of the form:
571
572    {
573      "verticals": [ # Requests containing any of these vertical ids will match.
574        "A String",
575      ],
576      "platforms": [ # Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.
577        "A String",
578      ],
579      "videoPlayerSizes": [ # Video requests satisfying any of these player size constraints will match.
580        {
581          "minWidth": "A String", # The minimum player width in pixels. Leave this field blank to match any player width.
582          "aspectRatio": "A String", # The type of aspect ratio. Leave this field blank to match all aspect ratios.
583          "minHeight": "A String", # The minimum player height in pixels. Leave this field blank to match any player height.
584        },
585      ],
586      "configId": "A String", # The config id; generated automatically. Leave this field blank for insert requests.
587      "excludedVerticals": [ # Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section.
588        "A String",
589      ],
590      "configName": "A String", # The name of the config. Must be unique. Required for all requests.
591      "excludedGeoCriteriaIds": [ # Requests containing any of these geo criteria ids will not match.
592        "A String",
593      ],
594      "excludedContentLabels": [ # Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section.
595        "A String",
596      ],
597      "languages": [ # Request containing any of these language codes will match.
598        "A String",
599      ],
600      "mobileDevices": [ # Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section.
601        "A String",
602      ],
603      "mobileCarriers": [ # Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section.
604        "A String",
605      ],
606      "excludedPlacements": [ # Requests containing any of these placements will not match.
607        {
608          "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
609          "type": "A String", # The type of the placement.
610        },
611      ],
612      "dimensions": [ # Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions.
613        {
614          "width": "A String", # Width in pixels.
615          "height": "A String", # Height in pixels.
616        },
617      ],
618      "billingId": "A String", # The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically.
619      "geoCriteriaIds": [ # Requests containing any of these geo criteria ids will match.
620        "A String",
621      ],
622      "mobileOperatingSystemVersions": [ # Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section.
623        "A String",
624      ],
625      "excludedUserLists": [ # Requests containing any of these users list ids will not match.
626        "A String",
627      ],
628      "isActive": True or False, # Whether this config is active. Required for all requests.
629      "minimumViewabilityDecile": 42, # Requests where the predicted viewability is below the specified decile will not match. E.g. if the buyer sets this value to 5, requests from slots where the predicted viewability is below 50% will not match. If the predicted viewability is unknown this field will be ignored.
630      "kind": "adexchangebuyer#pretargetingConfig", # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
631      "supportedCreativeAttributes": [ # Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section.
632        "A String",
633      ],
634      "userIdentifierDataRequired": [ # Requests containing the specified type of user data will match. Possible values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means the request has either a targetable cookie or an iOS IDFA.
635        "A String",
636      ],
637      "vendorTypes": [ # Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section.
638        "A String",
639      ],
640      "userLists": [ # Requests containing any of these user list ids will match.
641        "A String",
642      ],
643      "creativeType": [ # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.
644        "A String",
645      ],
646      "placements": [ # Requests containing any of these placements will match.
647        {
648          "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
649          "type": "A String", # The type of the placement.
650        },
651      ],
652    }</pre>
653</div>
654
655<div class="method">
656    <code class="details" id="update">update(accountId, configId, body)</code>
657  <pre>Updates an existing pretargeting config.
658
659Args:
660  accountId: string, The account id to update the pretargeting config for. (required)
661  configId: string, The specific id of the configuration to update. (required)
662  body: object, The request body. (required)
663    The object takes the form of:
664
665{
666    "verticals": [ # Requests containing any of these vertical ids will match.
667      "A String",
668    ],
669    "platforms": [ # Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.
670      "A String",
671    ],
672    "videoPlayerSizes": [ # Video requests satisfying any of these player size constraints will match.
673      {
674        "minWidth": "A String", # The minimum player width in pixels. Leave this field blank to match any player width.
675        "aspectRatio": "A String", # The type of aspect ratio. Leave this field blank to match all aspect ratios.
676        "minHeight": "A String", # The minimum player height in pixels. Leave this field blank to match any player height.
677      },
678    ],
679    "configId": "A String", # The config id; generated automatically. Leave this field blank for insert requests.
680    "excludedVerticals": [ # Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section.
681      "A String",
682    ],
683    "configName": "A String", # The name of the config. Must be unique. Required for all requests.
684    "excludedGeoCriteriaIds": [ # Requests containing any of these geo criteria ids will not match.
685      "A String",
686    ],
687    "excludedContentLabels": [ # Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section.
688      "A String",
689    ],
690    "languages": [ # Request containing any of these language codes will match.
691      "A String",
692    ],
693    "mobileDevices": [ # Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section.
694      "A String",
695    ],
696    "mobileCarriers": [ # Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section.
697      "A String",
698    ],
699    "excludedPlacements": [ # Requests containing any of these placements will not match.
700      {
701        "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
702        "type": "A String", # The type of the placement.
703      },
704    ],
705    "dimensions": [ # Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions.
706      {
707        "width": "A String", # Width in pixels.
708        "height": "A String", # Height in pixels.
709      },
710    ],
711    "billingId": "A String", # The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically.
712    "geoCriteriaIds": [ # Requests containing any of these geo criteria ids will match.
713      "A String",
714    ],
715    "mobileOperatingSystemVersions": [ # Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section.
716      "A String",
717    ],
718    "excludedUserLists": [ # Requests containing any of these users list ids will not match.
719      "A String",
720    ],
721    "isActive": True or False, # Whether this config is active. Required for all requests.
722    "minimumViewabilityDecile": 42, # Requests where the predicted viewability is below the specified decile will not match. E.g. if the buyer sets this value to 5, requests from slots where the predicted viewability is below 50% will not match. If the predicted viewability is unknown this field will be ignored.
723    "kind": "adexchangebuyer#pretargetingConfig", # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
724    "supportedCreativeAttributes": [ # Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section.
725      "A String",
726    ],
727    "userIdentifierDataRequired": [ # Requests containing the specified type of user data will match. Possible values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means the request has either a targetable cookie or an iOS IDFA.
728      "A String",
729    ],
730    "vendorTypes": [ # Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section.
731      "A String",
732    ],
733    "userLists": [ # Requests containing any of these user list ids will match.
734      "A String",
735    ],
736    "creativeType": [ # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.
737      "A String",
738    ],
739    "placements": [ # Requests containing any of these placements will match.
740      {
741        "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
742        "type": "A String", # The type of the placement.
743      },
744    ],
745  }
746
747
748Returns:
749  An object of the form:
750
751    {
752      "verticals": [ # Requests containing any of these vertical ids will match.
753        "A String",
754      ],
755      "platforms": [ # Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.
756        "A String",
757      ],
758      "videoPlayerSizes": [ # Video requests satisfying any of these player size constraints will match.
759        {
760          "minWidth": "A String", # The minimum player width in pixels. Leave this field blank to match any player width.
761          "aspectRatio": "A String", # The type of aspect ratio. Leave this field blank to match all aspect ratios.
762          "minHeight": "A String", # The minimum player height in pixels. Leave this field blank to match any player height.
763        },
764      ],
765      "configId": "A String", # The config id; generated automatically. Leave this field blank for insert requests.
766      "excludedVerticals": [ # Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section.
767        "A String",
768      ],
769      "configName": "A String", # The name of the config. Must be unique. Required for all requests.
770      "excludedGeoCriteriaIds": [ # Requests containing any of these geo criteria ids will not match.
771        "A String",
772      ],
773      "excludedContentLabels": [ # Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section.
774        "A String",
775      ],
776      "languages": [ # Request containing any of these language codes will match.
777        "A String",
778      ],
779      "mobileDevices": [ # Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section.
780        "A String",
781      ],
782      "mobileCarriers": [ # Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section.
783        "A String",
784      ],
785      "excludedPlacements": [ # Requests containing any of these placements will not match.
786        {
787          "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
788          "type": "A String", # The type of the placement.
789        },
790      ],
791      "dimensions": [ # Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions.
792        {
793          "width": "A String", # Width in pixels.
794          "height": "A String", # Height in pixels.
795        },
796      ],
797      "billingId": "A String", # The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically.
798      "geoCriteriaIds": [ # Requests containing any of these geo criteria ids will match.
799        "A String",
800      ],
801      "mobileOperatingSystemVersions": [ # Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section.
802        "A String",
803      ],
804      "excludedUserLists": [ # Requests containing any of these users list ids will not match.
805        "A String",
806      ],
807      "isActive": True or False, # Whether this config is active. Required for all requests.
808      "minimumViewabilityDecile": 42, # Requests where the predicted viewability is below the specified decile will not match. E.g. if the buyer sets this value to 5, requests from slots where the predicted viewability is below 50% will not match. If the predicted viewability is unknown this field will be ignored.
809      "kind": "adexchangebuyer#pretargetingConfig", # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
810      "supportedCreativeAttributes": [ # Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section.
811        "A String",
812      ],
813      "userIdentifierDataRequired": [ # Requests containing the specified type of user data will match. Possible values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means the request has either a targetable cookie or an iOS IDFA.
814        "A String",
815      ],
816      "vendorTypes": [ # Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section.
817        "A String",
818      ],
819      "userLists": [ # Requests containing any of these user list ids will match.
820        "A String",
821      ],
822      "creativeType": [ # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.
823        "A String",
824      ],
825      "placements": [ # Requests containing any of these placements will match.
826        {
827          "token": "A String", # The value of the placement. Interpretation depends on the placement type, e.g. URL for a site placement, channel name for a channel placement, app id for a mobile app placement.
828          "type": "A String", # The type of the placement.
829        },
830      ],
831    }</pre>
832</div>
833
834</body></html>