• 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.accounts.html">accounts</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#get">get(id)</a></code></p>
79<p class="firstline">Gets one account by ID.</p>
80<p class="toc_element">
81  <code><a href="#list">list()</a></code></p>
82<p class="firstline">Retrieves the authenticated user's list of accounts.</p>
83<p class="toc_element">
84  <code><a href="#patch">patch(id, body, confirmUnsafeAccountChange=None)</a></code></p>
85<p class="firstline">Updates an existing account. This method supports patch semantics.</p>
86<p class="toc_element">
87  <code><a href="#update">update(id, body, confirmUnsafeAccountChange=None)</a></code></p>
88<p class="firstline">Updates an existing account.</p>
89<h3>Method Details</h3>
90<div class="method">
91    <code class="details" id="get">get(id)</code>
92  <pre>Gets one account by ID.
93
94Args:
95  id: integer, The account id (required)
96
97Returns:
98  An object of the form:
99
100    { # Configuration data for an Ad Exchange buyer account.
101      "kind": "adexchangebuyer#account", # Resource type.
102      "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
103      "maximumActiveCreatives": 42, # The maximum number of active creatives that an account can have, where a creative is active if it was inserted or bid with in the last 30 days. Please contact your technical account manager if you need to change this.
104      "bidderLocation": [ # Your bidder locations that have distinct URLs.
105        {
106          "url": "A String", # The URL to which the Ad Exchange will send bid requests.
107          "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
108              # - ASIA
109              # - EUROPE
110              # - US_EAST
111              # - US_WEST
112          "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
113          "bidProtocol": "A String", # The protocol that the bidder endpoint is using. OpenRTB protocols with prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON.  Allowed values:
114              # - PROTOCOL_ADX
115              # - PROTOCOL_OPENRTB_2_2
116              # - PROTOCOL_OPENRTB_2_3
117              # - PROTOCOL_OPENRTB_2_4
118              # - PROTOCOL_OPENRTB_2_5
119              # - PROTOCOL_OPENRTB_PROTOBUF_2_3
120              # - PROTOCOL_OPENRTB_PROTOBUF_2_4
121              # - PROTOCOL_OPENRTB_PROTOBUF_2_5
122        },
123      ],
124      "applyPretargetingToNonGuaranteedDeals": True or False, # When this is false, bid requests that include a deal ID for a private auction or preferred deal are always sent to your bidder. When true, all active pretargeting configs will be applied to private auctions and preferred deals. Programmatic Guaranteed deals (when enabled) are always sent to your bidder.
125      "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
126      "numberActiveCreatives": 42, # The number of creatives that this account inserted or bid with in the last 30 days.
127      "id": 42, # Account id.
128      "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
129    }</pre>
130</div>
131
132<div class="method">
133    <code class="details" id="list">list()</code>
134  <pre>Retrieves the authenticated user's list of accounts.
135
136Args:
137
138Returns:
139  An object of the form:
140
141    { # An account feed lists Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single buyer account.
142    "items": [ # A list of accounts.
143      { # Configuration data for an Ad Exchange buyer account.
144          "kind": "adexchangebuyer#account", # Resource type.
145          "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
146          "maximumActiveCreatives": 42, # The maximum number of active creatives that an account can have, where a creative is active if it was inserted or bid with in the last 30 days. Please contact your technical account manager if you need to change this.
147          "bidderLocation": [ # Your bidder locations that have distinct URLs.
148            {
149              "url": "A String", # The URL to which the Ad Exchange will send bid requests.
150              "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
151                  # - ASIA
152                  # - EUROPE
153                  # - US_EAST
154                  # - US_WEST
155              "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
156              "bidProtocol": "A String", # The protocol that the bidder endpoint is using. OpenRTB protocols with prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON.  Allowed values:
157                  # - PROTOCOL_ADX
158                  # - PROTOCOL_OPENRTB_2_2
159                  # - PROTOCOL_OPENRTB_2_3
160                  # - PROTOCOL_OPENRTB_2_4
161                  # - PROTOCOL_OPENRTB_2_5
162                  # - PROTOCOL_OPENRTB_PROTOBUF_2_3
163                  # - PROTOCOL_OPENRTB_PROTOBUF_2_4
164                  # - PROTOCOL_OPENRTB_PROTOBUF_2_5
165            },
166          ],
167          "applyPretargetingToNonGuaranteedDeals": True or False, # When this is false, bid requests that include a deal ID for a private auction or preferred deal are always sent to your bidder. When true, all active pretargeting configs will be applied to private auctions and preferred deals. Programmatic Guaranteed deals (when enabled) are always sent to your bidder.
168          "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
169          "numberActiveCreatives": 42, # The number of creatives that this account inserted or bid with in the last 30 days.
170          "id": 42, # Account id.
171          "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
172        },
173    ],
174    "kind": "adexchangebuyer#accountsList", # Resource type.
175  }</pre>
176</div>
177
178<div class="method">
179    <code class="details" id="patch">patch(id, body, confirmUnsafeAccountChange=None)</code>
180  <pre>Updates an existing account. This method supports patch semantics.
181
182Args:
183  id: integer, The account id (required)
184  body: object, The request body. (required)
185    The object takes the form of:
186
187{ # Configuration data for an Ad Exchange buyer account.
188    "kind": "adexchangebuyer#account", # Resource type.
189    "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
190    "maximumActiveCreatives": 42, # The maximum number of active creatives that an account can have, where a creative is active if it was inserted or bid with in the last 30 days. Please contact your technical account manager if you need to change this.
191    "bidderLocation": [ # Your bidder locations that have distinct URLs.
192      {
193        "url": "A String", # The URL to which the Ad Exchange will send bid requests.
194        "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
195            # - ASIA
196            # - EUROPE
197            # - US_EAST
198            # - US_WEST
199        "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
200        "bidProtocol": "A String", # The protocol that the bidder endpoint is using. OpenRTB protocols with prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON.  Allowed values:
201            # - PROTOCOL_ADX
202            # - PROTOCOL_OPENRTB_2_2
203            # - PROTOCOL_OPENRTB_2_3
204            # - PROTOCOL_OPENRTB_2_4
205            # - PROTOCOL_OPENRTB_2_5
206            # - PROTOCOL_OPENRTB_PROTOBUF_2_3
207            # - PROTOCOL_OPENRTB_PROTOBUF_2_4
208            # - PROTOCOL_OPENRTB_PROTOBUF_2_5
209      },
210    ],
211    "applyPretargetingToNonGuaranteedDeals": True or False, # When this is false, bid requests that include a deal ID for a private auction or preferred deal are always sent to your bidder. When true, all active pretargeting configs will be applied to private auctions and preferred deals. Programmatic Guaranteed deals (when enabled) are always sent to your bidder.
212    "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
213    "numberActiveCreatives": 42, # The number of creatives that this account inserted or bid with in the last 30 days.
214    "id": 42, # Account id.
215    "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
216  }
217
218  confirmUnsafeAccountChange: boolean, Confirmation for erasing bidder and cookie matching urls.
219
220Returns:
221  An object of the form:
222
223    { # Configuration data for an Ad Exchange buyer account.
224      "kind": "adexchangebuyer#account", # Resource type.
225      "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
226      "maximumActiveCreatives": 42, # The maximum number of active creatives that an account can have, where a creative is active if it was inserted or bid with in the last 30 days. Please contact your technical account manager if you need to change this.
227      "bidderLocation": [ # Your bidder locations that have distinct URLs.
228        {
229          "url": "A String", # The URL to which the Ad Exchange will send bid requests.
230          "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
231              # - ASIA
232              # - EUROPE
233              # - US_EAST
234              # - US_WEST
235          "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
236          "bidProtocol": "A String", # The protocol that the bidder endpoint is using. OpenRTB protocols with prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON.  Allowed values:
237              # - PROTOCOL_ADX
238              # - PROTOCOL_OPENRTB_2_2
239              # - PROTOCOL_OPENRTB_2_3
240              # - PROTOCOL_OPENRTB_2_4
241              # - PROTOCOL_OPENRTB_2_5
242              # - PROTOCOL_OPENRTB_PROTOBUF_2_3
243              # - PROTOCOL_OPENRTB_PROTOBUF_2_4
244              # - PROTOCOL_OPENRTB_PROTOBUF_2_5
245        },
246      ],
247      "applyPretargetingToNonGuaranteedDeals": True or False, # When this is false, bid requests that include a deal ID for a private auction or preferred deal are always sent to your bidder. When true, all active pretargeting configs will be applied to private auctions and preferred deals. Programmatic Guaranteed deals (when enabled) are always sent to your bidder.
248      "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
249      "numberActiveCreatives": 42, # The number of creatives that this account inserted or bid with in the last 30 days.
250      "id": 42, # Account id.
251      "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
252    }</pre>
253</div>
254
255<div class="method">
256    <code class="details" id="update">update(id, body, confirmUnsafeAccountChange=None)</code>
257  <pre>Updates an existing account.
258
259Args:
260  id: integer, The account id (required)
261  body: object, The request body. (required)
262    The object takes the form of:
263
264{ # Configuration data for an Ad Exchange buyer account.
265    "kind": "adexchangebuyer#account", # Resource type.
266    "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
267    "maximumActiveCreatives": 42, # The maximum number of active creatives that an account can have, where a creative is active if it was inserted or bid with in the last 30 days. Please contact your technical account manager if you need to change this.
268    "bidderLocation": [ # Your bidder locations that have distinct URLs.
269      {
270        "url": "A String", # The URL to which the Ad Exchange will send bid requests.
271        "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
272            # - ASIA
273            # - EUROPE
274            # - US_EAST
275            # - US_WEST
276        "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
277        "bidProtocol": "A String", # The protocol that the bidder endpoint is using. OpenRTB protocols with prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON.  Allowed values:
278            # - PROTOCOL_ADX
279            # - PROTOCOL_OPENRTB_2_2
280            # - PROTOCOL_OPENRTB_2_3
281            # - PROTOCOL_OPENRTB_2_4
282            # - PROTOCOL_OPENRTB_2_5
283            # - PROTOCOL_OPENRTB_PROTOBUF_2_3
284            # - PROTOCOL_OPENRTB_PROTOBUF_2_4
285            # - PROTOCOL_OPENRTB_PROTOBUF_2_5
286      },
287    ],
288    "applyPretargetingToNonGuaranteedDeals": True or False, # When this is false, bid requests that include a deal ID for a private auction or preferred deal are always sent to your bidder. When true, all active pretargeting configs will be applied to private auctions and preferred deals. Programmatic Guaranteed deals (when enabled) are always sent to your bidder.
289    "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
290    "numberActiveCreatives": 42, # The number of creatives that this account inserted or bid with in the last 30 days.
291    "id": 42, # Account id.
292    "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
293  }
294
295  confirmUnsafeAccountChange: boolean, Confirmation for erasing bidder and cookie matching urls.
296
297Returns:
298  An object of the form:
299
300    { # Configuration data for an Ad Exchange buyer account.
301      "kind": "adexchangebuyer#account", # Resource type.
302      "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
303      "maximumActiveCreatives": 42, # The maximum number of active creatives that an account can have, where a creative is active if it was inserted or bid with in the last 30 days. Please contact your technical account manager if you need to change this.
304      "bidderLocation": [ # Your bidder locations that have distinct URLs.
305        {
306          "url": "A String", # The URL to which the Ad Exchange will send bid requests.
307          "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
308              # - ASIA
309              # - EUROPE
310              # - US_EAST
311              # - US_WEST
312          "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
313          "bidProtocol": "A String", # The protocol that the bidder endpoint is using. OpenRTB protocols with prefix PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON.  Allowed values:
314              # - PROTOCOL_ADX
315              # - PROTOCOL_OPENRTB_2_2
316              # - PROTOCOL_OPENRTB_2_3
317              # - PROTOCOL_OPENRTB_2_4
318              # - PROTOCOL_OPENRTB_2_5
319              # - PROTOCOL_OPENRTB_PROTOBUF_2_3
320              # - PROTOCOL_OPENRTB_PROTOBUF_2_4
321              # - PROTOCOL_OPENRTB_PROTOBUF_2_5
322        },
323      ],
324      "applyPretargetingToNonGuaranteedDeals": True or False, # When this is false, bid requests that include a deal ID for a private auction or preferred deal are always sent to your bidder. When true, all active pretargeting configs will be applied to private auctions and preferred deals. Programmatic Guaranteed deals (when enabled) are always sent to your bidder.
325      "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
326      "numberActiveCreatives": 42, # The number of creatives that this account inserted or bid with in the last 30 days.
327      "id": 42, # Account id.
328      "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
329    }</pre>
330</div>
331
332</body></html>