@maxim_mazurok/gapi.client.adexchangebuyer2-v2beta1 0.0.20231129 → 0.0.20231130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3753 -5783
- package/package.json +6 -6
- package/readme.md +17 -12
- package/tests.ts +0 -1683
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/tests.ts
DELETED
|
@@ -1,1683 +0,0 @@
|
|
|
1
|
-
/* This is stub file for gapi.client.adexchangebuyer2-v2beta1 definition tests */
|
|
2
|
-
// IMPORTANT
|
|
3
|
-
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
-
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
-
|
|
6
|
-
// Revision: 20231129
|
|
7
|
-
|
|
8
|
-
gapi.load('client', async () => {
|
|
9
|
-
/** now we can use gapi.client */
|
|
10
|
-
|
|
11
|
-
await gapi.client.load('https://adexchangebuyer.googleapis.com/$discovery/rest?version=v2beta1');
|
|
12
|
-
/** now we can use gapi.client.adexchangebuyer2 */
|
|
13
|
-
|
|
14
|
-
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
-
/** declare client_id registered in Google Developers Console */
|
|
16
|
-
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
-
const scope = [
|
|
18
|
-
/** Manage your Ad Exchange buyer account configuration */
|
|
19
|
-
'https://www.googleapis.com/auth/adexchange.buyer',
|
|
20
|
-
];
|
|
21
|
-
const immediate = false;
|
|
22
|
-
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
-
if (authResult && !authResult.error) {
|
|
24
|
-
/** handle successful authorization */
|
|
25
|
-
run();
|
|
26
|
-
} else {
|
|
27
|
-
/** handle authorization error */
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
async function run() {
|
|
32
|
-
/** Creates a new client buyer. */
|
|
33
|
-
await gapi.client.adexchangebuyer2.accounts.clients.create({
|
|
34
|
-
accountId: "Test string",
|
|
35
|
-
}, {
|
|
36
|
-
clientAccountId: "Test string",
|
|
37
|
-
clientName: "Test string",
|
|
38
|
-
entityId: "Test string",
|
|
39
|
-
entityName: "Test string",
|
|
40
|
-
entityType: "Test string",
|
|
41
|
-
partnerClientId: "Test string",
|
|
42
|
-
role: "Test string",
|
|
43
|
-
status: "Test string",
|
|
44
|
-
visibleToSeller: true,
|
|
45
|
-
});
|
|
46
|
-
/** Gets a client buyer with a given client account ID. */
|
|
47
|
-
await gapi.client.adexchangebuyer2.accounts.clients.get({
|
|
48
|
-
accountId: "Test string",
|
|
49
|
-
clientAccountId: "Test string",
|
|
50
|
-
});
|
|
51
|
-
/** Lists all the clients for the current sponsor buyer. */
|
|
52
|
-
await gapi.client.adexchangebuyer2.accounts.clients.list({
|
|
53
|
-
accountId: "Test string",
|
|
54
|
-
pageSize: 42,
|
|
55
|
-
pageToken: "Test string",
|
|
56
|
-
partnerClientId: "Test string",
|
|
57
|
-
});
|
|
58
|
-
/** Updates an existing client buyer. */
|
|
59
|
-
await gapi.client.adexchangebuyer2.accounts.clients.update({
|
|
60
|
-
accountId: "Test string",
|
|
61
|
-
clientAccountId: "Test string",
|
|
62
|
-
}, {
|
|
63
|
-
clientAccountId: "Test string",
|
|
64
|
-
clientName: "Test string",
|
|
65
|
-
entityId: "Test string",
|
|
66
|
-
entityName: "Test string",
|
|
67
|
-
entityType: "Test string",
|
|
68
|
-
partnerClientId: "Test string",
|
|
69
|
-
role: "Test string",
|
|
70
|
-
status: "Test string",
|
|
71
|
-
visibleToSeller: true,
|
|
72
|
-
});
|
|
73
|
-
/** Creates and sends out an email invitation to access an Ad Exchange client buyer account. */
|
|
74
|
-
await gapi.client.adexchangebuyer2.accounts.clients.invitations.create({
|
|
75
|
-
accountId: "Test string",
|
|
76
|
-
clientAccountId: "Test string",
|
|
77
|
-
}, {
|
|
78
|
-
clientAccountId: "Test string",
|
|
79
|
-
email: "Test string",
|
|
80
|
-
invitationId: "Test string",
|
|
81
|
-
});
|
|
82
|
-
/** Retrieves an existing client user invitation. */
|
|
83
|
-
await gapi.client.adexchangebuyer2.accounts.clients.invitations.get({
|
|
84
|
-
accountId: "Test string",
|
|
85
|
-
clientAccountId: "Test string",
|
|
86
|
-
invitationId: "Test string",
|
|
87
|
-
});
|
|
88
|
-
/** Lists all the client users invitations for a client with a given account ID. */
|
|
89
|
-
await gapi.client.adexchangebuyer2.accounts.clients.invitations.list({
|
|
90
|
-
accountId: "Test string",
|
|
91
|
-
clientAccountId: "Test string",
|
|
92
|
-
pageSize: 42,
|
|
93
|
-
pageToken: "Test string",
|
|
94
|
-
});
|
|
95
|
-
/** Retrieves an existing client user. */
|
|
96
|
-
await gapi.client.adexchangebuyer2.accounts.clients.users.get({
|
|
97
|
-
accountId: "Test string",
|
|
98
|
-
clientAccountId: "Test string",
|
|
99
|
-
userId: "Test string",
|
|
100
|
-
});
|
|
101
|
-
/** Lists all the known client users for a specified sponsor buyer account ID. */
|
|
102
|
-
await gapi.client.adexchangebuyer2.accounts.clients.users.list({
|
|
103
|
-
accountId: "Test string",
|
|
104
|
-
clientAccountId: "Test string",
|
|
105
|
-
pageSize: 42,
|
|
106
|
-
pageToken: "Test string",
|
|
107
|
-
});
|
|
108
|
-
/** Updates an existing client user. Only the user status can be changed on update. */
|
|
109
|
-
await gapi.client.adexchangebuyer2.accounts.clients.users.update({
|
|
110
|
-
accountId: "Test string",
|
|
111
|
-
clientAccountId: "Test string",
|
|
112
|
-
userId: "Test string",
|
|
113
|
-
}, {
|
|
114
|
-
clientAccountId: "Test string",
|
|
115
|
-
email: "Test string",
|
|
116
|
-
status: "Test string",
|
|
117
|
-
userId: "Test string",
|
|
118
|
-
});
|
|
119
|
-
/** Creates a creative. */
|
|
120
|
-
await gapi.client.adexchangebuyer2.accounts.creatives.create({
|
|
121
|
-
accountId: "Test string",
|
|
122
|
-
duplicateIdMode: "Test string",
|
|
123
|
-
}, {
|
|
124
|
-
accountId: "Test string",
|
|
125
|
-
adChoicesDestinationUrl: "Test string",
|
|
126
|
-
adTechnologyProviders: {
|
|
127
|
-
detectedProviderIds: [
|
|
128
|
-
"Test string"
|
|
129
|
-
],
|
|
130
|
-
hasUnidentifiedProvider: true,
|
|
131
|
-
},
|
|
132
|
-
advertiserName: "Test string",
|
|
133
|
-
agencyId: "Test string",
|
|
134
|
-
apiUpdateTime: "Test string",
|
|
135
|
-
attributes: [
|
|
136
|
-
"Test string"
|
|
137
|
-
],
|
|
138
|
-
clickThroughUrls: [
|
|
139
|
-
"Test string"
|
|
140
|
-
],
|
|
141
|
-
corrections: [
|
|
142
|
-
{
|
|
143
|
-
contexts: [
|
|
144
|
-
{
|
|
145
|
-
all: "Test string",
|
|
146
|
-
appType: {
|
|
147
|
-
appTypes: [
|
|
148
|
-
"Test string"
|
|
149
|
-
],
|
|
150
|
-
},
|
|
151
|
-
auctionType: {
|
|
152
|
-
auctionTypes: [
|
|
153
|
-
"Test string"
|
|
154
|
-
],
|
|
155
|
-
},
|
|
156
|
-
location: {
|
|
157
|
-
geoCriteriaIds: [
|
|
158
|
-
42
|
|
159
|
-
],
|
|
160
|
-
},
|
|
161
|
-
platform: {
|
|
162
|
-
platforms: [
|
|
163
|
-
"Test string"
|
|
164
|
-
],
|
|
165
|
-
},
|
|
166
|
-
securityType: {
|
|
167
|
-
securities: [
|
|
168
|
-
"Test string"
|
|
169
|
-
],
|
|
170
|
-
},
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
details: [
|
|
174
|
-
"Test string"
|
|
175
|
-
],
|
|
176
|
-
type: "Test string",
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
creativeId: "Test string",
|
|
180
|
-
dealsStatus: "Test string",
|
|
181
|
-
declaredClickThroughUrls: [
|
|
182
|
-
"Test string"
|
|
183
|
-
],
|
|
184
|
-
detectedAdvertiserIds: [
|
|
185
|
-
"Test string"
|
|
186
|
-
],
|
|
187
|
-
detectedDomains: [
|
|
188
|
-
"Test string"
|
|
189
|
-
],
|
|
190
|
-
detectedLanguages: [
|
|
191
|
-
"Test string"
|
|
192
|
-
],
|
|
193
|
-
detectedProductCategories: [
|
|
194
|
-
42
|
|
195
|
-
],
|
|
196
|
-
detectedSensitiveCategories: [
|
|
197
|
-
42
|
|
198
|
-
],
|
|
199
|
-
html: {
|
|
200
|
-
height: 42,
|
|
201
|
-
snippet: "Test string",
|
|
202
|
-
width: 42,
|
|
203
|
-
},
|
|
204
|
-
impressionTrackingUrls: [
|
|
205
|
-
"Test string"
|
|
206
|
-
],
|
|
207
|
-
native: {
|
|
208
|
-
advertiserName: "Test string",
|
|
209
|
-
appIcon: {
|
|
210
|
-
height: 42,
|
|
211
|
-
url: "Test string",
|
|
212
|
-
width: 42,
|
|
213
|
-
},
|
|
214
|
-
body: "Test string",
|
|
215
|
-
callToAction: "Test string",
|
|
216
|
-
clickLinkUrl: "Test string",
|
|
217
|
-
clickTrackingUrl: "Test string",
|
|
218
|
-
headline: "Test string",
|
|
219
|
-
image: {
|
|
220
|
-
height: 42,
|
|
221
|
-
url: "Test string",
|
|
222
|
-
width: 42,
|
|
223
|
-
},
|
|
224
|
-
logo: {
|
|
225
|
-
height: 42,
|
|
226
|
-
url: "Test string",
|
|
227
|
-
width: 42,
|
|
228
|
-
},
|
|
229
|
-
priceDisplayText: "Test string",
|
|
230
|
-
starRating: 42,
|
|
231
|
-
storeUrl: "Test string",
|
|
232
|
-
videoUrl: "Test string",
|
|
233
|
-
},
|
|
234
|
-
openAuctionStatus: "Test string",
|
|
235
|
-
restrictedCategories: [
|
|
236
|
-
"Test string"
|
|
237
|
-
],
|
|
238
|
-
servingRestrictions: [
|
|
239
|
-
{
|
|
240
|
-
contexts: [
|
|
241
|
-
{
|
|
242
|
-
all: "Test string",
|
|
243
|
-
appType: {
|
|
244
|
-
appTypes: [
|
|
245
|
-
"Test string"
|
|
246
|
-
],
|
|
247
|
-
},
|
|
248
|
-
auctionType: {
|
|
249
|
-
auctionTypes: [
|
|
250
|
-
"Test string"
|
|
251
|
-
],
|
|
252
|
-
},
|
|
253
|
-
location: {
|
|
254
|
-
geoCriteriaIds: [
|
|
255
|
-
42
|
|
256
|
-
],
|
|
257
|
-
},
|
|
258
|
-
platform: {
|
|
259
|
-
platforms: [
|
|
260
|
-
"Test string"
|
|
261
|
-
],
|
|
262
|
-
},
|
|
263
|
-
securityType: {
|
|
264
|
-
securities: [
|
|
265
|
-
"Test string"
|
|
266
|
-
],
|
|
267
|
-
},
|
|
268
|
-
}
|
|
269
|
-
],
|
|
270
|
-
disapproval: {
|
|
271
|
-
details: [
|
|
272
|
-
"Test string"
|
|
273
|
-
],
|
|
274
|
-
reason: "Test string",
|
|
275
|
-
},
|
|
276
|
-
disapprovalReasons: [
|
|
277
|
-
{
|
|
278
|
-
details: [
|
|
279
|
-
"Test string"
|
|
280
|
-
],
|
|
281
|
-
reason: "Test string",
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
status: "Test string",
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
|
-
vendorIds: [
|
|
288
|
-
42
|
|
289
|
-
],
|
|
290
|
-
version: 42,
|
|
291
|
-
video: {
|
|
292
|
-
videoUrl: "Test string",
|
|
293
|
-
videoVastXml: "Test string",
|
|
294
|
-
},
|
|
295
|
-
});
|
|
296
|
-
/** Gets a creative. */
|
|
297
|
-
await gapi.client.adexchangebuyer2.accounts.creatives.get({
|
|
298
|
-
accountId: "Test string",
|
|
299
|
-
creativeId: "Test string",
|
|
300
|
-
});
|
|
301
|
-
/** Lists creatives. */
|
|
302
|
-
await gapi.client.adexchangebuyer2.accounts.creatives.list({
|
|
303
|
-
accountId: "Test string",
|
|
304
|
-
pageSize: 42,
|
|
305
|
-
pageToken: "Test string",
|
|
306
|
-
query: "Test string",
|
|
307
|
-
});
|
|
308
|
-
/** Stops watching a creative. Will stop push notifications being sent to the topics when the creative changes status. */
|
|
309
|
-
await gapi.client.adexchangebuyer2.accounts.creatives.stopWatching({
|
|
310
|
-
accountId: "Test string",
|
|
311
|
-
creativeId: "Test string",
|
|
312
|
-
}, {
|
|
313
|
-
});
|
|
314
|
-
/** Updates a creative. */
|
|
315
|
-
await gapi.client.adexchangebuyer2.accounts.creatives.update({
|
|
316
|
-
accountId: "Test string",
|
|
317
|
-
creativeId: "Test string",
|
|
318
|
-
}, {
|
|
319
|
-
accountId: "Test string",
|
|
320
|
-
adChoicesDestinationUrl: "Test string",
|
|
321
|
-
adTechnologyProviders: {
|
|
322
|
-
detectedProviderIds: [
|
|
323
|
-
"Test string"
|
|
324
|
-
],
|
|
325
|
-
hasUnidentifiedProvider: true,
|
|
326
|
-
},
|
|
327
|
-
advertiserName: "Test string",
|
|
328
|
-
agencyId: "Test string",
|
|
329
|
-
apiUpdateTime: "Test string",
|
|
330
|
-
attributes: [
|
|
331
|
-
"Test string"
|
|
332
|
-
],
|
|
333
|
-
clickThroughUrls: [
|
|
334
|
-
"Test string"
|
|
335
|
-
],
|
|
336
|
-
corrections: [
|
|
337
|
-
{
|
|
338
|
-
contexts: [
|
|
339
|
-
{
|
|
340
|
-
all: "Test string",
|
|
341
|
-
appType: {
|
|
342
|
-
appTypes: [
|
|
343
|
-
"Test string"
|
|
344
|
-
],
|
|
345
|
-
},
|
|
346
|
-
auctionType: {
|
|
347
|
-
auctionTypes: [
|
|
348
|
-
"Test string"
|
|
349
|
-
],
|
|
350
|
-
},
|
|
351
|
-
location: {
|
|
352
|
-
geoCriteriaIds: [
|
|
353
|
-
42
|
|
354
|
-
],
|
|
355
|
-
},
|
|
356
|
-
platform: {
|
|
357
|
-
platforms: [
|
|
358
|
-
"Test string"
|
|
359
|
-
],
|
|
360
|
-
},
|
|
361
|
-
securityType: {
|
|
362
|
-
securities: [
|
|
363
|
-
"Test string"
|
|
364
|
-
],
|
|
365
|
-
},
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
details: [
|
|
369
|
-
"Test string"
|
|
370
|
-
],
|
|
371
|
-
type: "Test string",
|
|
372
|
-
}
|
|
373
|
-
],
|
|
374
|
-
creativeId: "Test string",
|
|
375
|
-
dealsStatus: "Test string",
|
|
376
|
-
declaredClickThroughUrls: [
|
|
377
|
-
"Test string"
|
|
378
|
-
],
|
|
379
|
-
detectedAdvertiserIds: [
|
|
380
|
-
"Test string"
|
|
381
|
-
],
|
|
382
|
-
detectedDomains: [
|
|
383
|
-
"Test string"
|
|
384
|
-
],
|
|
385
|
-
detectedLanguages: [
|
|
386
|
-
"Test string"
|
|
387
|
-
],
|
|
388
|
-
detectedProductCategories: [
|
|
389
|
-
42
|
|
390
|
-
],
|
|
391
|
-
detectedSensitiveCategories: [
|
|
392
|
-
42
|
|
393
|
-
],
|
|
394
|
-
html: {
|
|
395
|
-
height: 42,
|
|
396
|
-
snippet: "Test string",
|
|
397
|
-
width: 42,
|
|
398
|
-
},
|
|
399
|
-
impressionTrackingUrls: [
|
|
400
|
-
"Test string"
|
|
401
|
-
],
|
|
402
|
-
native: {
|
|
403
|
-
advertiserName: "Test string",
|
|
404
|
-
appIcon: {
|
|
405
|
-
height: 42,
|
|
406
|
-
url: "Test string",
|
|
407
|
-
width: 42,
|
|
408
|
-
},
|
|
409
|
-
body: "Test string",
|
|
410
|
-
callToAction: "Test string",
|
|
411
|
-
clickLinkUrl: "Test string",
|
|
412
|
-
clickTrackingUrl: "Test string",
|
|
413
|
-
headline: "Test string",
|
|
414
|
-
image: {
|
|
415
|
-
height: 42,
|
|
416
|
-
url: "Test string",
|
|
417
|
-
width: 42,
|
|
418
|
-
},
|
|
419
|
-
logo: {
|
|
420
|
-
height: 42,
|
|
421
|
-
url: "Test string",
|
|
422
|
-
width: 42,
|
|
423
|
-
},
|
|
424
|
-
priceDisplayText: "Test string",
|
|
425
|
-
starRating: 42,
|
|
426
|
-
storeUrl: "Test string",
|
|
427
|
-
videoUrl: "Test string",
|
|
428
|
-
},
|
|
429
|
-
openAuctionStatus: "Test string",
|
|
430
|
-
restrictedCategories: [
|
|
431
|
-
"Test string"
|
|
432
|
-
],
|
|
433
|
-
servingRestrictions: [
|
|
434
|
-
{
|
|
435
|
-
contexts: [
|
|
436
|
-
{
|
|
437
|
-
all: "Test string",
|
|
438
|
-
appType: {
|
|
439
|
-
appTypes: [
|
|
440
|
-
"Test string"
|
|
441
|
-
],
|
|
442
|
-
},
|
|
443
|
-
auctionType: {
|
|
444
|
-
auctionTypes: [
|
|
445
|
-
"Test string"
|
|
446
|
-
],
|
|
447
|
-
},
|
|
448
|
-
location: {
|
|
449
|
-
geoCriteriaIds: [
|
|
450
|
-
42
|
|
451
|
-
],
|
|
452
|
-
},
|
|
453
|
-
platform: {
|
|
454
|
-
platforms: [
|
|
455
|
-
"Test string"
|
|
456
|
-
],
|
|
457
|
-
},
|
|
458
|
-
securityType: {
|
|
459
|
-
securities: [
|
|
460
|
-
"Test string"
|
|
461
|
-
],
|
|
462
|
-
},
|
|
463
|
-
}
|
|
464
|
-
],
|
|
465
|
-
disapproval: {
|
|
466
|
-
details: [
|
|
467
|
-
"Test string"
|
|
468
|
-
],
|
|
469
|
-
reason: "Test string",
|
|
470
|
-
},
|
|
471
|
-
disapprovalReasons: [
|
|
472
|
-
{
|
|
473
|
-
details: [
|
|
474
|
-
"Test string"
|
|
475
|
-
],
|
|
476
|
-
reason: "Test string",
|
|
477
|
-
}
|
|
478
|
-
],
|
|
479
|
-
status: "Test string",
|
|
480
|
-
}
|
|
481
|
-
],
|
|
482
|
-
vendorIds: [
|
|
483
|
-
42
|
|
484
|
-
],
|
|
485
|
-
version: 42,
|
|
486
|
-
video: {
|
|
487
|
-
videoUrl: "Test string",
|
|
488
|
-
videoVastXml: "Test string",
|
|
489
|
-
},
|
|
490
|
-
});
|
|
491
|
-
/** Watches a creative. Will result in push notifications being sent to the topic when the creative changes status. */
|
|
492
|
-
await gapi.client.adexchangebuyer2.accounts.creatives.watch({
|
|
493
|
-
accountId: "Test string",
|
|
494
|
-
creativeId: "Test string",
|
|
495
|
-
}, {
|
|
496
|
-
topic: "Test string",
|
|
497
|
-
});
|
|
498
|
-
/** Associate an existing deal with a creative. */
|
|
499
|
-
await gapi.client.adexchangebuyer2.accounts.creatives.dealAssociations.add({
|
|
500
|
-
accountId: "Test string",
|
|
501
|
-
creativeId: "Test string",
|
|
502
|
-
}, {
|
|
503
|
-
association: {
|
|
504
|
-
accountId: "Test string",
|
|
505
|
-
creativeId: "Test string",
|
|
506
|
-
dealsId: "Test string",
|
|
507
|
-
},
|
|
508
|
-
});
|
|
509
|
-
/** List all creative-deal associations. */
|
|
510
|
-
await gapi.client.adexchangebuyer2.accounts.creatives.dealAssociations.list({
|
|
511
|
-
accountId: "Test string",
|
|
512
|
-
creativeId: "Test string",
|
|
513
|
-
pageSize: 42,
|
|
514
|
-
pageToken: "Test string",
|
|
515
|
-
query: "Test string",
|
|
516
|
-
});
|
|
517
|
-
/** Remove the association between a deal and a creative. */
|
|
518
|
-
await gapi.client.adexchangebuyer2.accounts.creatives.dealAssociations.remove({
|
|
519
|
-
accountId: "Test string",
|
|
520
|
-
creativeId: "Test string",
|
|
521
|
-
}, {
|
|
522
|
-
association: {
|
|
523
|
-
accountId: "Test string",
|
|
524
|
-
creativeId: "Test string",
|
|
525
|
-
dealsId: "Test string",
|
|
526
|
-
},
|
|
527
|
-
});
|
|
528
|
-
/** List finalized proposals, regardless if a proposal is being renegotiated. A filter expression (PQL query) may be specified to filter the results. The notes will not be returned. */
|
|
529
|
-
await gapi.client.adexchangebuyer2.accounts.finalizedProposals.list({
|
|
530
|
-
accountId: "Test string",
|
|
531
|
-
filter: "Test string",
|
|
532
|
-
filterSyntax: "Test string",
|
|
533
|
-
pageSize: 42,
|
|
534
|
-
pageToken: "Test string",
|
|
535
|
-
});
|
|
536
|
-
/**
|
|
537
|
-
* Update given deals to pause serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all listed deals in the request. Currently, this
|
|
538
|
-
* method only applies to PG and PD deals. For PA deals, call accounts.proposals.pause endpoint. It is a no-op to pause already-paused deals. It is an error to call PauseProposalDeals for
|
|
539
|
-
* deals which are not part of the proposal of proposal_id or which are not finalized or renegotiating.
|
|
540
|
-
*/
|
|
541
|
-
await gapi.client.adexchangebuyer2.accounts.finalizedProposals.pause({
|
|
542
|
-
accountId: "Test string",
|
|
543
|
-
proposalId: "Test string",
|
|
544
|
-
}, {
|
|
545
|
-
externalDealIds: [
|
|
546
|
-
"Test string"
|
|
547
|
-
],
|
|
548
|
-
reason: "Test string",
|
|
549
|
-
});
|
|
550
|
-
/**
|
|
551
|
-
* Update given deals to resume serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all listed deals in the request. Currently, this
|
|
552
|
-
* method only applies to PG and PD deals. For PA deals, call accounts.proposals.resume endpoint. It is a no-op to resume running deals or deals paused by the other party. It is an error
|
|
553
|
-
* to call ResumeProposalDeals for deals which are not part of the proposal of proposal_id or which are not finalized or renegotiating.
|
|
554
|
-
*/
|
|
555
|
-
await gapi.client.adexchangebuyer2.accounts.finalizedProposals.resume({
|
|
556
|
-
accountId: "Test string",
|
|
557
|
-
proposalId: "Test string",
|
|
558
|
-
}, {
|
|
559
|
-
externalDealIds: [
|
|
560
|
-
"Test string"
|
|
561
|
-
],
|
|
562
|
-
});
|
|
563
|
-
/** Gets the requested product by ID. */
|
|
564
|
-
await gapi.client.adexchangebuyer2.accounts.products.get({
|
|
565
|
-
accountId: "Test string",
|
|
566
|
-
productId: "Test string",
|
|
567
|
-
});
|
|
568
|
-
/** List all products visible to the buyer (optionally filtered by the specified PQL query). */
|
|
569
|
-
await gapi.client.adexchangebuyer2.accounts.products.list({
|
|
570
|
-
accountId: "Test string",
|
|
571
|
-
filter: "Test string",
|
|
572
|
-
pageSize: 42,
|
|
573
|
-
pageToken: "Test string",
|
|
574
|
-
});
|
|
575
|
-
/**
|
|
576
|
-
* Mark the proposal as accepted at the given revision number. If the number does not match the server's revision number an `ABORTED` error message will be returned. This call updates the
|
|
577
|
-
* proposal_state from `PROPOSED` to `BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`. Upon calling this endpoint, the buyer implicitly agrees to the terms and conditions
|
|
578
|
-
* optionally set within the proposal by the publisher.
|
|
579
|
-
*/
|
|
580
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.accept({
|
|
581
|
-
accountId: "Test string",
|
|
582
|
-
proposalId: "Test string",
|
|
583
|
-
}, {
|
|
584
|
-
proposalRevision: "Test string",
|
|
585
|
-
});
|
|
586
|
-
/** Create a new note and attach it to the proposal. The note is assigned a unique ID by the server. The proposal revision number will not increase when associated with a new note. */
|
|
587
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.addNote({
|
|
588
|
-
accountId: "Test string",
|
|
589
|
-
proposalId: "Test string",
|
|
590
|
-
}, {
|
|
591
|
-
note: {
|
|
592
|
-
createTime: "Test string",
|
|
593
|
-
creatorRole: "Test string",
|
|
594
|
-
note: "Test string",
|
|
595
|
-
noteId: "Test string",
|
|
596
|
-
proposalRevision: "Test string",
|
|
597
|
-
},
|
|
598
|
-
});
|
|
599
|
-
/** Cancel an ongoing negotiation on a proposal. This does not cancel or end serving for the deals if the proposal has been finalized, but only cancels a negotiation unilaterally. */
|
|
600
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.cancelNegotiation({
|
|
601
|
-
accountId: "Test string",
|
|
602
|
-
proposalId: "Test string",
|
|
603
|
-
}, {
|
|
604
|
-
});
|
|
605
|
-
/**
|
|
606
|
-
* You can opt-in to manually update proposals to indicate that setup is complete. By default, proposal setup is automatically completed after their deals are finalized. Contact your
|
|
607
|
-
* Technical Account Manager to opt in. Buyers can call this method when the proposal has been finalized, and all the required creatives have been uploaded using the Creatives API. This
|
|
608
|
-
* call updates the `is_setup_completed` field on the deals in the proposal, and notifies the seller. The server then advances the revision number of the most recent proposal. To mark an
|
|
609
|
-
* individual deal as ready to serve, call `buyers.finalizedDeals.setReadyToServe` in the Marketplace API.
|
|
610
|
-
*/
|
|
611
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.completeSetup({
|
|
612
|
-
accountId: "Test string",
|
|
613
|
-
proposalId: "Test string",
|
|
614
|
-
}, {
|
|
615
|
-
});
|
|
616
|
-
/** Create the given proposal. Each created proposal and any deals it contains are assigned a unique ID by the server. */
|
|
617
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.create({
|
|
618
|
-
accountId: "Test string",
|
|
619
|
-
}, {
|
|
620
|
-
billedBuyer: {
|
|
621
|
-
accountId: "Test string",
|
|
622
|
-
},
|
|
623
|
-
buyer: {
|
|
624
|
-
accountId: "Test string",
|
|
625
|
-
},
|
|
626
|
-
buyerContacts: [
|
|
627
|
-
{
|
|
628
|
-
email: "Test string",
|
|
629
|
-
name: "Test string",
|
|
630
|
-
}
|
|
631
|
-
],
|
|
632
|
-
buyerPrivateData: {
|
|
633
|
-
referenceId: "Test string",
|
|
634
|
-
},
|
|
635
|
-
deals: [
|
|
636
|
-
{
|
|
637
|
-
availableEndTime: "Test string",
|
|
638
|
-
availableStartTime: "Test string",
|
|
639
|
-
buyerPrivateData: {
|
|
640
|
-
referenceId: "Test string",
|
|
641
|
-
},
|
|
642
|
-
createProductId: "Test string",
|
|
643
|
-
createProductRevision: "Test string",
|
|
644
|
-
createTime: "Test string",
|
|
645
|
-
creativePreApprovalPolicy: "Test string",
|
|
646
|
-
creativeRestrictions: {
|
|
647
|
-
creativeFormat: "Test string",
|
|
648
|
-
creativeSpecifications: [
|
|
649
|
-
{
|
|
650
|
-
creativeCompanionSizes: [
|
|
651
|
-
{
|
|
652
|
-
height: "Test string",
|
|
653
|
-
sizeType: "Test string",
|
|
654
|
-
width: "Test string",
|
|
655
|
-
}
|
|
656
|
-
],
|
|
657
|
-
creativeSize: {
|
|
658
|
-
height: "Test string",
|
|
659
|
-
sizeType: "Test string",
|
|
660
|
-
width: "Test string",
|
|
661
|
-
},
|
|
662
|
-
}
|
|
663
|
-
],
|
|
664
|
-
skippableAdType: "Test string",
|
|
665
|
-
},
|
|
666
|
-
creativeSafeFrameCompatibility: "Test string",
|
|
667
|
-
dealId: "Test string",
|
|
668
|
-
dealServingMetadata: {
|
|
669
|
-
dealPauseStatus: {
|
|
670
|
-
buyerPauseReason: "Test string",
|
|
671
|
-
firstPausedBy: "Test string",
|
|
672
|
-
hasBuyerPaused: true,
|
|
673
|
-
hasSellerPaused: true,
|
|
674
|
-
sellerPauseReason: "Test string",
|
|
675
|
-
},
|
|
676
|
-
},
|
|
677
|
-
dealTerms: {
|
|
678
|
-
brandingType: "Test string",
|
|
679
|
-
description: "Test string",
|
|
680
|
-
estimatedGrossSpend: {
|
|
681
|
-
amount: {
|
|
682
|
-
currencyCode: "Test string",
|
|
683
|
-
nanos: 42,
|
|
684
|
-
units: "Test string",
|
|
685
|
-
},
|
|
686
|
-
pricingType: "Test string",
|
|
687
|
-
},
|
|
688
|
-
estimatedImpressionsPerDay: "Test string",
|
|
689
|
-
guaranteedFixedPriceTerms: {
|
|
690
|
-
fixedPrices: [
|
|
691
|
-
{
|
|
692
|
-
advertiserIds: [
|
|
693
|
-
"Test string"
|
|
694
|
-
],
|
|
695
|
-
buyer: {
|
|
696
|
-
accountId: "Test string",
|
|
697
|
-
},
|
|
698
|
-
price: {
|
|
699
|
-
amount: {
|
|
700
|
-
currencyCode: "Test string",
|
|
701
|
-
nanos: 42,
|
|
702
|
-
units: "Test string",
|
|
703
|
-
},
|
|
704
|
-
pricingType: "Test string",
|
|
705
|
-
},
|
|
706
|
-
}
|
|
707
|
-
],
|
|
708
|
-
guaranteedImpressions: "Test string",
|
|
709
|
-
guaranteedLooks: "Test string",
|
|
710
|
-
impressionCap: "Test string",
|
|
711
|
-
minimumDailyLooks: "Test string",
|
|
712
|
-
percentShareOfVoice: "Test string",
|
|
713
|
-
reservationType: "Test string",
|
|
714
|
-
},
|
|
715
|
-
nonGuaranteedAuctionTerms: {
|
|
716
|
-
autoOptimizePrivateAuction: true,
|
|
717
|
-
reservePricesPerBuyer: [
|
|
718
|
-
{
|
|
719
|
-
advertiserIds: [
|
|
720
|
-
"Test string"
|
|
721
|
-
],
|
|
722
|
-
buyer: {
|
|
723
|
-
accountId: "Test string",
|
|
724
|
-
},
|
|
725
|
-
price: {
|
|
726
|
-
amount: {
|
|
727
|
-
currencyCode: "Test string",
|
|
728
|
-
nanos: 42,
|
|
729
|
-
units: "Test string",
|
|
730
|
-
},
|
|
731
|
-
pricingType: "Test string",
|
|
732
|
-
},
|
|
733
|
-
}
|
|
734
|
-
],
|
|
735
|
-
},
|
|
736
|
-
nonGuaranteedFixedPriceTerms: {
|
|
737
|
-
fixedPrices: [
|
|
738
|
-
{
|
|
739
|
-
advertiserIds: [
|
|
740
|
-
"Test string"
|
|
741
|
-
],
|
|
742
|
-
buyer: {
|
|
743
|
-
accountId: "Test string",
|
|
744
|
-
},
|
|
745
|
-
price: {
|
|
746
|
-
amount: {
|
|
747
|
-
currencyCode: "Test string",
|
|
748
|
-
nanos: 42,
|
|
749
|
-
units: "Test string",
|
|
750
|
-
},
|
|
751
|
-
pricingType: "Test string",
|
|
752
|
-
},
|
|
753
|
-
}
|
|
754
|
-
],
|
|
755
|
-
},
|
|
756
|
-
sellerTimeZone: "Test string",
|
|
757
|
-
},
|
|
758
|
-
deliveryControl: {
|
|
759
|
-
creativeBlockingLevel: "Test string",
|
|
760
|
-
deliveryRateType: "Test string",
|
|
761
|
-
frequencyCaps: [
|
|
762
|
-
{
|
|
763
|
-
maxImpressions: 42,
|
|
764
|
-
numTimeUnits: 42,
|
|
765
|
-
timeUnitType: "Test string",
|
|
766
|
-
}
|
|
767
|
-
],
|
|
768
|
-
},
|
|
769
|
-
description: "Test string",
|
|
770
|
-
displayName: "Test string",
|
|
771
|
-
externalDealId: "Test string",
|
|
772
|
-
isSetupComplete: true,
|
|
773
|
-
programmaticCreativeSource: "Test string",
|
|
774
|
-
proposalId: "Test string",
|
|
775
|
-
sellerContacts: [
|
|
776
|
-
{
|
|
777
|
-
email: "Test string",
|
|
778
|
-
name: "Test string",
|
|
779
|
-
}
|
|
780
|
-
],
|
|
781
|
-
syndicationProduct: "Test string",
|
|
782
|
-
targeting: {
|
|
783
|
-
geoTargeting: {
|
|
784
|
-
excludedCriteriaIds: [
|
|
785
|
-
"Test string"
|
|
786
|
-
],
|
|
787
|
-
targetedCriteriaIds: [
|
|
788
|
-
"Test string"
|
|
789
|
-
],
|
|
790
|
-
},
|
|
791
|
-
inventorySizeTargeting: {
|
|
792
|
-
excludedInventorySizes: [
|
|
793
|
-
{
|
|
794
|
-
height: "Test string",
|
|
795
|
-
sizeType: "Test string",
|
|
796
|
-
width: "Test string",
|
|
797
|
-
}
|
|
798
|
-
],
|
|
799
|
-
targetedInventorySizes: [
|
|
800
|
-
{
|
|
801
|
-
height: "Test string",
|
|
802
|
-
sizeType: "Test string",
|
|
803
|
-
width: "Test string",
|
|
804
|
-
}
|
|
805
|
-
],
|
|
806
|
-
},
|
|
807
|
-
placementTargeting: {
|
|
808
|
-
mobileApplicationTargeting: {
|
|
809
|
-
firstPartyTargeting: {
|
|
810
|
-
excludedAppIds: [
|
|
811
|
-
"Test string"
|
|
812
|
-
],
|
|
813
|
-
targetedAppIds: [
|
|
814
|
-
"Test string"
|
|
815
|
-
],
|
|
816
|
-
},
|
|
817
|
-
},
|
|
818
|
-
urlTargeting: {
|
|
819
|
-
excludedUrls: [
|
|
820
|
-
"Test string"
|
|
821
|
-
],
|
|
822
|
-
targetedUrls: [
|
|
823
|
-
"Test string"
|
|
824
|
-
],
|
|
825
|
-
},
|
|
826
|
-
},
|
|
827
|
-
technologyTargeting: {
|
|
828
|
-
deviceCapabilityTargeting: {
|
|
829
|
-
excludedCriteriaIds: [
|
|
830
|
-
"Test string"
|
|
831
|
-
],
|
|
832
|
-
targetedCriteriaIds: [
|
|
833
|
-
"Test string"
|
|
834
|
-
],
|
|
835
|
-
},
|
|
836
|
-
deviceCategoryTargeting: {
|
|
837
|
-
excludedCriteriaIds: [
|
|
838
|
-
"Test string"
|
|
839
|
-
],
|
|
840
|
-
targetedCriteriaIds: [
|
|
841
|
-
"Test string"
|
|
842
|
-
],
|
|
843
|
-
},
|
|
844
|
-
operatingSystemTargeting: {
|
|
845
|
-
operatingSystemCriteria: {
|
|
846
|
-
excludedCriteriaIds: [
|
|
847
|
-
"Test string"
|
|
848
|
-
],
|
|
849
|
-
targetedCriteriaIds: [
|
|
850
|
-
"Test string"
|
|
851
|
-
],
|
|
852
|
-
},
|
|
853
|
-
operatingSystemVersionCriteria: {
|
|
854
|
-
excludedCriteriaIds: [
|
|
855
|
-
"Test string"
|
|
856
|
-
],
|
|
857
|
-
targetedCriteriaIds: [
|
|
858
|
-
"Test string"
|
|
859
|
-
],
|
|
860
|
-
},
|
|
861
|
-
},
|
|
862
|
-
},
|
|
863
|
-
videoTargeting: {
|
|
864
|
-
excludedPositionTypes: [
|
|
865
|
-
"Test string"
|
|
866
|
-
],
|
|
867
|
-
targetedPositionTypes: [
|
|
868
|
-
"Test string"
|
|
869
|
-
],
|
|
870
|
-
},
|
|
871
|
-
},
|
|
872
|
-
targetingCriterion: [
|
|
873
|
-
{
|
|
874
|
-
exclusions: [
|
|
875
|
-
{
|
|
876
|
-
creativeSizeValue: {
|
|
877
|
-
allowedFormats: [
|
|
878
|
-
"Test string"
|
|
879
|
-
],
|
|
880
|
-
companionSizes: [
|
|
881
|
-
{
|
|
882
|
-
height: 42,
|
|
883
|
-
width: 42,
|
|
884
|
-
}
|
|
885
|
-
],
|
|
886
|
-
creativeSizeType: "Test string",
|
|
887
|
-
nativeTemplate: "Test string",
|
|
888
|
-
size: {
|
|
889
|
-
height: 42,
|
|
890
|
-
width: 42,
|
|
891
|
-
},
|
|
892
|
-
skippableAdType: "Test string",
|
|
893
|
-
},
|
|
894
|
-
dayPartTargetingValue: {
|
|
895
|
-
dayParts: [
|
|
896
|
-
{
|
|
897
|
-
dayOfWeek: "Test string",
|
|
898
|
-
endTime: {
|
|
899
|
-
hours: 42,
|
|
900
|
-
minutes: 42,
|
|
901
|
-
nanos: 42,
|
|
902
|
-
seconds: 42,
|
|
903
|
-
},
|
|
904
|
-
startTime: {
|
|
905
|
-
hours: 42,
|
|
906
|
-
minutes: 42,
|
|
907
|
-
nanos: 42,
|
|
908
|
-
seconds: 42,
|
|
909
|
-
},
|
|
910
|
-
}
|
|
911
|
-
],
|
|
912
|
-
timeZoneType: "Test string",
|
|
913
|
-
},
|
|
914
|
-
longValue: "Test string",
|
|
915
|
-
stringValue: "Test string",
|
|
916
|
-
}
|
|
917
|
-
],
|
|
918
|
-
inclusions: [
|
|
919
|
-
{
|
|
920
|
-
creativeSizeValue: {
|
|
921
|
-
allowedFormats: [
|
|
922
|
-
"Test string"
|
|
923
|
-
],
|
|
924
|
-
companionSizes: [
|
|
925
|
-
{
|
|
926
|
-
height: 42,
|
|
927
|
-
width: 42,
|
|
928
|
-
}
|
|
929
|
-
],
|
|
930
|
-
creativeSizeType: "Test string",
|
|
931
|
-
nativeTemplate: "Test string",
|
|
932
|
-
size: {
|
|
933
|
-
height: 42,
|
|
934
|
-
width: 42,
|
|
935
|
-
},
|
|
936
|
-
skippableAdType: "Test string",
|
|
937
|
-
},
|
|
938
|
-
dayPartTargetingValue: {
|
|
939
|
-
dayParts: [
|
|
940
|
-
{
|
|
941
|
-
dayOfWeek: "Test string",
|
|
942
|
-
endTime: {
|
|
943
|
-
hours: 42,
|
|
944
|
-
minutes: 42,
|
|
945
|
-
nanos: 42,
|
|
946
|
-
seconds: 42,
|
|
947
|
-
},
|
|
948
|
-
startTime: {
|
|
949
|
-
hours: 42,
|
|
950
|
-
minutes: 42,
|
|
951
|
-
nanos: 42,
|
|
952
|
-
seconds: 42,
|
|
953
|
-
},
|
|
954
|
-
}
|
|
955
|
-
],
|
|
956
|
-
timeZoneType: "Test string",
|
|
957
|
-
},
|
|
958
|
-
longValue: "Test string",
|
|
959
|
-
stringValue: "Test string",
|
|
960
|
-
}
|
|
961
|
-
],
|
|
962
|
-
key: "Test string",
|
|
963
|
-
}
|
|
964
|
-
],
|
|
965
|
-
updateTime: "Test string",
|
|
966
|
-
webPropertyCode: "Test string",
|
|
967
|
-
}
|
|
968
|
-
],
|
|
969
|
-
displayName: "Test string",
|
|
970
|
-
isRenegotiating: true,
|
|
971
|
-
isSetupComplete: true,
|
|
972
|
-
lastUpdaterOrCommentorRole: "Test string",
|
|
973
|
-
notes: [
|
|
974
|
-
{
|
|
975
|
-
createTime: "Test string",
|
|
976
|
-
creatorRole: "Test string",
|
|
977
|
-
note: "Test string",
|
|
978
|
-
noteId: "Test string",
|
|
979
|
-
proposalRevision: "Test string",
|
|
980
|
-
}
|
|
981
|
-
],
|
|
982
|
-
originatorRole: "Test string",
|
|
983
|
-
privateAuctionId: "Test string",
|
|
984
|
-
proposalId: "Test string",
|
|
985
|
-
proposalRevision: "Test string",
|
|
986
|
-
proposalState: "Test string",
|
|
987
|
-
seller: {
|
|
988
|
-
accountId: "Test string",
|
|
989
|
-
subAccountId: "Test string",
|
|
990
|
-
},
|
|
991
|
-
sellerContacts: [
|
|
992
|
-
{
|
|
993
|
-
email: "Test string",
|
|
994
|
-
name: "Test string",
|
|
995
|
-
}
|
|
996
|
-
],
|
|
997
|
-
termsAndConditions: "Test string",
|
|
998
|
-
updateTime: "Test string",
|
|
999
|
-
});
|
|
1000
|
-
/** Gets a proposal given its ID. The proposal is returned at its head revision. */
|
|
1001
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.get({
|
|
1002
|
-
accountId: "Test string",
|
|
1003
|
-
proposalId: "Test string",
|
|
1004
|
-
});
|
|
1005
|
-
/**
|
|
1006
|
-
* List proposals. A filter expression (PQL query) may be specified to filter the results. To retrieve all finalized proposals, regardless if a proposal is being renegotiated, see the
|
|
1007
|
-
* FinalizedProposals resource. Note that Bidder/ChildSeat relationships differ from the usual behavior. A Bidder account can only see its child seats' proposals by specifying the
|
|
1008
|
-
* ChildSeat's accountId in the request path.
|
|
1009
|
-
*/
|
|
1010
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.list({
|
|
1011
|
-
accountId: "Test string",
|
|
1012
|
-
filter: "Test string",
|
|
1013
|
-
filterSyntax: "Test string",
|
|
1014
|
-
pageSize: 42,
|
|
1015
|
-
pageToken: "Test string",
|
|
1016
|
-
});
|
|
1017
|
-
/**
|
|
1018
|
-
* Update the given proposal to pause serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all deals in the proposal. It is a no-op to
|
|
1019
|
-
* pause an already-paused proposal. It is an error to call PauseProposal for a proposal that is not finalized or renegotiating.
|
|
1020
|
-
*/
|
|
1021
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.pause({
|
|
1022
|
-
accountId: "Test string",
|
|
1023
|
-
proposalId: "Test string",
|
|
1024
|
-
}, {
|
|
1025
|
-
reason: "Test string",
|
|
1026
|
-
});
|
|
1027
|
-
/**
|
|
1028
|
-
* Update the given proposal to resume serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all deals in the proposal. Note that if the
|
|
1029
|
-
* `has_seller_paused` bit is also set, serving will not resume until the seller also resumes. It is a no-op to resume an already-running proposal. It is an error to call ResumeProposal
|
|
1030
|
-
* for a proposal that is not finalized or renegotiating.
|
|
1031
|
-
*/
|
|
1032
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.resume({
|
|
1033
|
-
accountId: "Test string",
|
|
1034
|
-
proposalId: "Test string",
|
|
1035
|
-
}, {
|
|
1036
|
-
});
|
|
1037
|
-
/**
|
|
1038
|
-
* Update the given proposal at the client known revision number. If the server revision has advanced since the passed-in `proposal.proposal_revision`, an `ABORTED` error message will be
|
|
1039
|
-
* returned. Only the buyer-modifiable fields of the proposal will be updated. Note that the deals in the proposal will be updated to match the passed-in copy. If a passed-in deal does not
|
|
1040
|
-
* have a `deal_id`, the server will assign a new unique ID and create the deal. If passed-in deal has a `deal_id`, it will be updated to match the passed-in copy. Any existing deals not
|
|
1041
|
-
* present in the passed-in proposal will be deleted. It is an error to pass in a deal with a `deal_id` not present at head.
|
|
1042
|
-
*/
|
|
1043
|
-
await gapi.client.adexchangebuyer2.accounts.proposals.update({
|
|
1044
|
-
accountId: "Test string",
|
|
1045
|
-
proposalId: "Test string",
|
|
1046
|
-
}, {
|
|
1047
|
-
billedBuyer: {
|
|
1048
|
-
accountId: "Test string",
|
|
1049
|
-
},
|
|
1050
|
-
buyer: {
|
|
1051
|
-
accountId: "Test string",
|
|
1052
|
-
},
|
|
1053
|
-
buyerContacts: [
|
|
1054
|
-
{
|
|
1055
|
-
email: "Test string",
|
|
1056
|
-
name: "Test string",
|
|
1057
|
-
}
|
|
1058
|
-
],
|
|
1059
|
-
buyerPrivateData: {
|
|
1060
|
-
referenceId: "Test string",
|
|
1061
|
-
},
|
|
1062
|
-
deals: [
|
|
1063
|
-
{
|
|
1064
|
-
availableEndTime: "Test string",
|
|
1065
|
-
availableStartTime: "Test string",
|
|
1066
|
-
buyerPrivateData: {
|
|
1067
|
-
referenceId: "Test string",
|
|
1068
|
-
},
|
|
1069
|
-
createProductId: "Test string",
|
|
1070
|
-
createProductRevision: "Test string",
|
|
1071
|
-
createTime: "Test string",
|
|
1072
|
-
creativePreApprovalPolicy: "Test string",
|
|
1073
|
-
creativeRestrictions: {
|
|
1074
|
-
creativeFormat: "Test string",
|
|
1075
|
-
creativeSpecifications: [
|
|
1076
|
-
{
|
|
1077
|
-
creativeCompanionSizes: [
|
|
1078
|
-
{
|
|
1079
|
-
height: "Test string",
|
|
1080
|
-
sizeType: "Test string",
|
|
1081
|
-
width: "Test string",
|
|
1082
|
-
}
|
|
1083
|
-
],
|
|
1084
|
-
creativeSize: {
|
|
1085
|
-
height: "Test string",
|
|
1086
|
-
sizeType: "Test string",
|
|
1087
|
-
width: "Test string",
|
|
1088
|
-
},
|
|
1089
|
-
}
|
|
1090
|
-
],
|
|
1091
|
-
skippableAdType: "Test string",
|
|
1092
|
-
},
|
|
1093
|
-
creativeSafeFrameCompatibility: "Test string",
|
|
1094
|
-
dealId: "Test string",
|
|
1095
|
-
dealServingMetadata: {
|
|
1096
|
-
dealPauseStatus: {
|
|
1097
|
-
buyerPauseReason: "Test string",
|
|
1098
|
-
firstPausedBy: "Test string",
|
|
1099
|
-
hasBuyerPaused: true,
|
|
1100
|
-
hasSellerPaused: true,
|
|
1101
|
-
sellerPauseReason: "Test string",
|
|
1102
|
-
},
|
|
1103
|
-
},
|
|
1104
|
-
dealTerms: {
|
|
1105
|
-
brandingType: "Test string",
|
|
1106
|
-
description: "Test string",
|
|
1107
|
-
estimatedGrossSpend: {
|
|
1108
|
-
amount: {
|
|
1109
|
-
currencyCode: "Test string",
|
|
1110
|
-
nanos: 42,
|
|
1111
|
-
units: "Test string",
|
|
1112
|
-
},
|
|
1113
|
-
pricingType: "Test string",
|
|
1114
|
-
},
|
|
1115
|
-
estimatedImpressionsPerDay: "Test string",
|
|
1116
|
-
guaranteedFixedPriceTerms: {
|
|
1117
|
-
fixedPrices: [
|
|
1118
|
-
{
|
|
1119
|
-
advertiserIds: [
|
|
1120
|
-
"Test string"
|
|
1121
|
-
],
|
|
1122
|
-
buyer: {
|
|
1123
|
-
accountId: "Test string",
|
|
1124
|
-
},
|
|
1125
|
-
price: {
|
|
1126
|
-
amount: {
|
|
1127
|
-
currencyCode: "Test string",
|
|
1128
|
-
nanos: 42,
|
|
1129
|
-
units: "Test string",
|
|
1130
|
-
},
|
|
1131
|
-
pricingType: "Test string",
|
|
1132
|
-
},
|
|
1133
|
-
}
|
|
1134
|
-
],
|
|
1135
|
-
guaranteedImpressions: "Test string",
|
|
1136
|
-
guaranteedLooks: "Test string",
|
|
1137
|
-
impressionCap: "Test string",
|
|
1138
|
-
minimumDailyLooks: "Test string",
|
|
1139
|
-
percentShareOfVoice: "Test string",
|
|
1140
|
-
reservationType: "Test string",
|
|
1141
|
-
},
|
|
1142
|
-
nonGuaranteedAuctionTerms: {
|
|
1143
|
-
autoOptimizePrivateAuction: true,
|
|
1144
|
-
reservePricesPerBuyer: [
|
|
1145
|
-
{
|
|
1146
|
-
advertiserIds: [
|
|
1147
|
-
"Test string"
|
|
1148
|
-
],
|
|
1149
|
-
buyer: {
|
|
1150
|
-
accountId: "Test string",
|
|
1151
|
-
},
|
|
1152
|
-
price: {
|
|
1153
|
-
amount: {
|
|
1154
|
-
currencyCode: "Test string",
|
|
1155
|
-
nanos: 42,
|
|
1156
|
-
units: "Test string",
|
|
1157
|
-
},
|
|
1158
|
-
pricingType: "Test string",
|
|
1159
|
-
},
|
|
1160
|
-
}
|
|
1161
|
-
],
|
|
1162
|
-
},
|
|
1163
|
-
nonGuaranteedFixedPriceTerms: {
|
|
1164
|
-
fixedPrices: [
|
|
1165
|
-
{
|
|
1166
|
-
advertiserIds: [
|
|
1167
|
-
"Test string"
|
|
1168
|
-
],
|
|
1169
|
-
buyer: {
|
|
1170
|
-
accountId: "Test string",
|
|
1171
|
-
},
|
|
1172
|
-
price: {
|
|
1173
|
-
amount: {
|
|
1174
|
-
currencyCode: "Test string",
|
|
1175
|
-
nanos: 42,
|
|
1176
|
-
units: "Test string",
|
|
1177
|
-
},
|
|
1178
|
-
pricingType: "Test string",
|
|
1179
|
-
},
|
|
1180
|
-
}
|
|
1181
|
-
],
|
|
1182
|
-
},
|
|
1183
|
-
sellerTimeZone: "Test string",
|
|
1184
|
-
},
|
|
1185
|
-
deliveryControl: {
|
|
1186
|
-
creativeBlockingLevel: "Test string",
|
|
1187
|
-
deliveryRateType: "Test string",
|
|
1188
|
-
frequencyCaps: [
|
|
1189
|
-
{
|
|
1190
|
-
maxImpressions: 42,
|
|
1191
|
-
numTimeUnits: 42,
|
|
1192
|
-
timeUnitType: "Test string",
|
|
1193
|
-
}
|
|
1194
|
-
],
|
|
1195
|
-
},
|
|
1196
|
-
description: "Test string",
|
|
1197
|
-
displayName: "Test string",
|
|
1198
|
-
externalDealId: "Test string",
|
|
1199
|
-
isSetupComplete: true,
|
|
1200
|
-
programmaticCreativeSource: "Test string",
|
|
1201
|
-
proposalId: "Test string",
|
|
1202
|
-
sellerContacts: [
|
|
1203
|
-
{
|
|
1204
|
-
email: "Test string",
|
|
1205
|
-
name: "Test string",
|
|
1206
|
-
}
|
|
1207
|
-
],
|
|
1208
|
-
syndicationProduct: "Test string",
|
|
1209
|
-
targeting: {
|
|
1210
|
-
geoTargeting: {
|
|
1211
|
-
excludedCriteriaIds: [
|
|
1212
|
-
"Test string"
|
|
1213
|
-
],
|
|
1214
|
-
targetedCriteriaIds: [
|
|
1215
|
-
"Test string"
|
|
1216
|
-
],
|
|
1217
|
-
},
|
|
1218
|
-
inventorySizeTargeting: {
|
|
1219
|
-
excludedInventorySizes: [
|
|
1220
|
-
{
|
|
1221
|
-
height: "Test string",
|
|
1222
|
-
sizeType: "Test string",
|
|
1223
|
-
width: "Test string",
|
|
1224
|
-
}
|
|
1225
|
-
],
|
|
1226
|
-
targetedInventorySizes: [
|
|
1227
|
-
{
|
|
1228
|
-
height: "Test string",
|
|
1229
|
-
sizeType: "Test string",
|
|
1230
|
-
width: "Test string",
|
|
1231
|
-
}
|
|
1232
|
-
],
|
|
1233
|
-
},
|
|
1234
|
-
placementTargeting: {
|
|
1235
|
-
mobileApplicationTargeting: {
|
|
1236
|
-
firstPartyTargeting: {
|
|
1237
|
-
excludedAppIds: [
|
|
1238
|
-
"Test string"
|
|
1239
|
-
],
|
|
1240
|
-
targetedAppIds: [
|
|
1241
|
-
"Test string"
|
|
1242
|
-
],
|
|
1243
|
-
},
|
|
1244
|
-
},
|
|
1245
|
-
urlTargeting: {
|
|
1246
|
-
excludedUrls: [
|
|
1247
|
-
"Test string"
|
|
1248
|
-
],
|
|
1249
|
-
targetedUrls: [
|
|
1250
|
-
"Test string"
|
|
1251
|
-
],
|
|
1252
|
-
},
|
|
1253
|
-
},
|
|
1254
|
-
technologyTargeting: {
|
|
1255
|
-
deviceCapabilityTargeting: {
|
|
1256
|
-
excludedCriteriaIds: [
|
|
1257
|
-
"Test string"
|
|
1258
|
-
],
|
|
1259
|
-
targetedCriteriaIds: [
|
|
1260
|
-
"Test string"
|
|
1261
|
-
],
|
|
1262
|
-
},
|
|
1263
|
-
deviceCategoryTargeting: {
|
|
1264
|
-
excludedCriteriaIds: [
|
|
1265
|
-
"Test string"
|
|
1266
|
-
],
|
|
1267
|
-
targetedCriteriaIds: [
|
|
1268
|
-
"Test string"
|
|
1269
|
-
],
|
|
1270
|
-
},
|
|
1271
|
-
operatingSystemTargeting: {
|
|
1272
|
-
operatingSystemCriteria: {
|
|
1273
|
-
excludedCriteriaIds: [
|
|
1274
|
-
"Test string"
|
|
1275
|
-
],
|
|
1276
|
-
targetedCriteriaIds: [
|
|
1277
|
-
"Test string"
|
|
1278
|
-
],
|
|
1279
|
-
},
|
|
1280
|
-
operatingSystemVersionCriteria: {
|
|
1281
|
-
excludedCriteriaIds: [
|
|
1282
|
-
"Test string"
|
|
1283
|
-
],
|
|
1284
|
-
targetedCriteriaIds: [
|
|
1285
|
-
"Test string"
|
|
1286
|
-
],
|
|
1287
|
-
},
|
|
1288
|
-
},
|
|
1289
|
-
},
|
|
1290
|
-
videoTargeting: {
|
|
1291
|
-
excludedPositionTypes: [
|
|
1292
|
-
"Test string"
|
|
1293
|
-
],
|
|
1294
|
-
targetedPositionTypes: [
|
|
1295
|
-
"Test string"
|
|
1296
|
-
],
|
|
1297
|
-
},
|
|
1298
|
-
},
|
|
1299
|
-
targetingCriterion: [
|
|
1300
|
-
{
|
|
1301
|
-
exclusions: [
|
|
1302
|
-
{
|
|
1303
|
-
creativeSizeValue: {
|
|
1304
|
-
allowedFormats: [
|
|
1305
|
-
"Test string"
|
|
1306
|
-
],
|
|
1307
|
-
companionSizes: [
|
|
1308
|
-
{
|
|
1309
|
-
height: 42,
|
|
1310
|
-
width: 42,
|
|
1311
|
-
}
|
|
1312
|
-
],
|
|
1313
|
-
creativeSizeType: "Test string",
|
|
1314
|
-
nativeTemplate: "Test string",
|
|
1315
|
-
size: {
|
|
1316
|
-
height: 42,
|
|
1317
|
-
width: 42,
|
|
1318
|
-
},
|
|
1319
|
-
skippableAdType: "Test string",
|
|
1320
|
-
},
|
|
1321
|
-
dayPartTargetingValue: {
|
|
1322
|
-
dayParts: [
|
|
1323
|
-
{
|
|
1324
|
-
dayOfWeek: "Test string",
|
|
1325
|
-
endTime: {
|
|
1326
|
-
hours: 42,
|
|
1327
|
-
minutes: 42,
|
|
1328
|
-
nanos: 42,
|
|
1329
|
-
seconds: 42,
|
|
1330
|
-
},
|
|
1331
|
-
startTime: {
|
|
1332
|
-
hours: 42,
|
|
1333
|
-
minutes: 42,
|
|
1334
|
-
nanos: 42,
|
|
1335
|
-
seconds: 42,
|
|
1336
|
-
},
|
|
1337
|
-
}
|
|
1338
|
-
],
|
|
1339
|
-
timeZoneType: "Test string",
|
|
1340
|
-
},
|
|
1341
|
-
longValue: "Test string",
|
|
1342
|
-
stringValue: "Test string",
|
|
1343
|
-
}
|
|
1344
|
-
],
|
|
1345
|
-
inclusions: [
|
|
1346
|
-
{
|
|
1347
|
-
creativeSizeValue: {
|
|
1348
|
-
allowedFormats: [
|
|
1349
|
-
"Test string"
|
|
1350
|
-
],
|
|
1351
|
-
companionSizes: [
|
|
1352
|
-
{
|
|
1353
|
-
height: 42,
|
|
1354
|
-
width: 42,
|
|
1355
|
-
}
|
|
1356
|
-
],
|
|
1357
|
-
creativeSizeType: "Test string",
|
|
1358
|
-
nativeTemplate: "Test string",
|
|
1359
|
-
size: {
|
|
1360
|
-
height: 42,
|
|
1361
|
-
width: 42,
|
|
1362
|
-
},
|
|
1363
|
-
skippableAdType: "Test string",
|
|
1364
|
-
},
|
|
1365
|
-
dayPartTargetingValue: {
|
|
1366
|
-
dayParts: [
|
|
1367
|
-
{
|
|
1368
|
-
dayOfWeek: "Test string",
|
|
1369
|
-
endTime: {
|
|
1370
|
-
hours: 42,
|
|
1371
|
-
minutes: 42,
|
|
1372
|
-
nanos: 42,
|
|
1373
|
-
seconds: 42,
|
|
1374
|
-
},
|
|
1375
|
-
startTime: {
|
|
1376
|
-
hours: 42,
|
|
1377
|
-
minutes: 42,
|
|
1378
|
-
nanos: 42,
|
|
1379
|
-
seconds: 42,
|
|
1380
|
-
},
|
|
1381
|
-
}
|
|
1382
|
-
],
|
|
1383
|
-
timeZoneType: "Test string",
|
|
1384
|
-
},
|
|
1385
|
-
longValue: "Test string",
|
|
1386
|
-
stringValue: "Test string",
|
|
1387
|
-
}
|
|
1388
|
-
],
|
|
1389
|
-
key: "Test string",
|
|
1390
|
-
}
|
|
1391
|
-
],
|
|
1392
|
-
updateTime: "Test string",
|
|
1393
|
-
webPropertyCode: "Test string",
|
|
1394
|
-
}
|
|
1395
|
-
],
|
|
1396
|
-
displayName: "Test string",
|
|
1397
|
-
isRenegotiating: true,
|
|
1398
|
-
isSetupComplete: true,
|
|
1399
|
-
lastUpdaterOrCommentorRole: "Test string",
|
|
1400
|
-
notes: [
|
|
1401
|
-
{
|
|
1402
|
-
createTime: "Test string",
|
|
1403
|
-
creatorRole: "Test string",
|
|
1404
|
-
note: "Test string",
|
|
1405
|
-
noteId: "Test string",
|
|
1406
|
-
proposalRevision: "Test string",
|
|
1407
|
-
}
|
|
1408
|
-
],
|
|
1409
|
-
originatorRole: "Test string",
|
|
1410
|
-
privateAuctionId: "Test string",
|
|
1411
|
-
proposalId: "Test string",
|
|
1412
|
-
proposalRevision: "Test string",
|
|
1413
|
-
proposalState: "Test string",
|
|
1414
|
-
seller: {
|
|
1415
|
-
accountId: "Test string",
|
|
1416
|
-
subAccountId: "Test string",
|
|
1417
|
-
},
|
|
1418
|
-
sellerContacts: [
|
|
1419
|
-
{
|
|
1420
|
-
email: "Test string",
|
|
1421
|
-
name: "Test string",
|
|
1422
|
-
}
|
|
1423
|
-
],
|
|
1424
|
-
termsAndConditions: "Test string",
|
|
1425
|
-
updateTime: "Test string",
|
|
1426
|
-
});
|
|
1427
|
-
/** Gets the requested publisher profile by id. */
|
|
1428
|
-
await gapi.client.adexchangebuyer2.accounts.publisherProfiles.get({
|
|
1429
|
-
accountId: "Test string",
|
|
1430
|
-
publisherProfileId: "Test string",
|
|
1431
|
-
});
|
|
1432
|
-
/** List all publisher profiles visible to the buyer */
|
|
1433
|
-
await gapi.client.adexchangebuyer2.accounts.publisherProfiles.list({
|
|
1434
|
-
accountId: "Test string",
|
|
1435
|
-
pageSize: 42,
|
|
1436
|
-
pageToken: "Test string",
|
|
1437
|
-
});
|
|
1438
|
-
/** Creates the specified filter set for the account with the given account ID. */
|
|
1439
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.create({
|
|
1440
|
-
isTransient: true,
|
|
1441
|
-
ownerName: "Test string",
|
|
1442
|
-
}, {
|
|
1443
|
-
absoluteDateRange: {
|
|
1444
|
-
endDate: {
|
|
1445
|
-
day: 42,
|
|
1446
|
-
month: 42,
|
|
1447
|
-
year: 42,
|
|
1448
|
-
},
|
|
1449
|
-
startDate: {
|
|
1450
|
-
day: 42,
|
|
1451
|
-
month: 42,
|
|
1452
|
-
year: 42,
|
|
1453
|
-
},
|
|
1454
|
-
},
|
|
1455
|
-
breakdownDimensions: [
|
|
1456
|
-
"Test string"
|
|
1457
|
-
],
|
|
1458
|
-
creativeId: "Test string",
|
|
1459
|
-
dealId: "Test string",
|
|
1460
|
-
environment: "Test string",
|
|
1461
|
-
format: "Test string",
|
|
1462
|
-
formats: [
|
|
1463
|
-
"Test string"
|
|
1464
|
-
],
|
|
1465
|
-
name: "Test string",
|
|
1466
|
-
platforms: [
|
|
1467
|
-
"Test string"
|
|
1468
|
-
],
|
|
1469
|
-
publisherIdentifiers: [
|
|
1470
|
-
"Test string"
|
|
1471
|
-
],
|
|
1472
|
-
realtimeTimeRange: {
|
|
1473
|
-
startTimestamp: "Test string",
|
|
1474
|
-
},
|
|
1475
|
-
relativeDateRange: {
|
|
1476
|
-
durationDays: 42,
|
|
1477
|
-
offsetDays: 42,
|
|
1478
|
-
},
|
|
1479
|
-
sellerNetworkIds: [
|
|
1480
|
-
42
|
|
1481
|
-
],
|
|
1482
|
-
timeSeriesGranularity: "Test string",
|
|
1483
|
-
});
|
|
1484
|
-
/** Deletes the requested filter set from the account with the given account ID. */
|
|
1485
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.delete({
|
|
1486
|
-
name: "Test string",
|
|
1487
|
-
});
|
|
1488
|
-
/** Retrieves the requested filter set for the account with the given account ID. */
|
|
1489
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.get({
|
|
1490
|
-
name: "Test string",
|
|
1491
|
-
});
|
|
1492
|
-
/** Lists all filter sets for the account with the given account ID. */
|
|
1493
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.list({
|
|
1494
|
-
ownerName: "Test string",
|
|
1495
|
-
pageSize: 42,
|
|
1496
|
-
pageToken: "Test string",
|
|
1497
|
-
});
|
|
1498
|
-
/** Lists all metrics that are measured in terms of number of bids. */
|
|
1499
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.bidMetrics.list({
|
|
1500
|
-
filterSetName: "Test string",
|
|
1501
|
-
pageSize: 42,
|
|
1502
|
-
pageToken: "Test string",
|
|
1503
|
-
});
|
|
1504
|
-
/** List all errors that occurred in bid responses, with the number of bid responses affected for each reason. */
|
|
1505
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.bidResponseErrors.list({
|
|
1506
|
-
filterSetName: "Test string",
|
|
1507
|
-
pageSize: 42,
|
|
1508
|
-
pageToken: "Test string",
|
|
1509
|
-
});
|
|
1510
|
-
/** List all reasons for which bid responses were considered to have no applicable bids, with the number of bid responses affected for each reason. */
|
|
1511
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.bidResponsesWithoutBids.list({
|
|
1512
|
-
filterSetName: "Test string",
|
|
1513
|
-
pageSize: 42,
|
|
1514
|
-
pageToken: "Test string",
|
|
1515
|
-
});
|
|
1516
|
-
/** List all reasons that caused a bid request not to be sent for an impression, with the number of bid requests not sent for each reason. */
|
|
1517
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.filteredBidRequests.list({
|
|
1518
|
-
filterSetName: "Test string",
|
|
1519
|
-
pageSize: 42,
|
|
1520
|
-
pageToken: "Test string",
|
|
1521
|
-
});
|
|
1522
|
-
/** List all reasons for which bids were filtered, with the number of bids filtered for each reason. */
|
|
1523
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.filteredBids.list({
|
|
1524
|
-
filterSetName: "Test string",
|
|
1525
|
-
pageSize: 42,
|
|
1526
|
-
pageToken: "Test string",
|
|
1527
|
-
});
|
|
1528
|
-
/** List all creatives associated with a specific reason for which bids were filtered, with the number of bids filtered for each creative. */
|
|
1529
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.filteredBids.creatives.list({
|
|
1530
|
-
creativeStatusId: 42,
|
|
1531
|
-
filterSetName: "Test string",
|
|
1532
|
-
pageSize: 42,
|
|
1533
|
-
pageToken: "Test string",
|
|
1534
|
-
});
|
|
1535
|
-
/** List all details associated with a specific reason for which bids were filtered, with the number of bids filtered for each detail. */
|
|
1536
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.filteredBids.details.list({
|
|
1537
|
-
creativeStatusId: 42,
|
|
1538
|
-
filterSetName: "Test string",
|
|
1539
|
-
pageSize: 42,
|
|
1540
|
-
pageToken: "Test string",
|
|
1541
|
-
});
|
|
1542
|
-
/** Lists all metrics that are measured in terms of number of impressions. */
|
|
1543
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.impressionMetrics.list({
|
|
1544
|
-
filterSetName: "Test string",
|
|
1545
|
-
pageSize: 42,
|
|
1546
|
-
pageToken: "Test string",
|
|
1547
|
-
});
|
|
1548
|
-
/** List all reasons for which bids lost in the auction, with the number of bids that lost for each reason. */
|
|
1549
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.losingBids.list({
|
|
1550
|
-
filterSetName: "Test string",
|
|
1551
|
-
pageSize: 42,
|
|
1552
|
-
pageToken: "Test string",
|
|
1553
|
-
});
|
|
1554
|
-
/** List all reasons for which winning bids were not billable, with the number of bids not billed for each reason. */
|
|
1555
|
-
await gapi.client.adexchangebuyer2.bidders.accounts.filterSets.nonBillableWinningBids.list({
|
|
1556
|
-
filterSetName: "Test string",
|
|
1557
|
-
pageSize: 42,
|
|
1558
|
-
pageToken: "Test string",
|
|
1559
|
-
});
|
|
1560
|
-
/** Creates the specified filter set for the account with the given account ID. */
|
|
1561
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.create({
|
|
1562
|
-
isTransient: true,
|
|
1563
|
-
ownerName: "Test string",
|
|
1564
|
-
}, {
|
|
1565
|
-
absoluteDateRange: {
|
|
1566
|
-
endDate: {
|
|
1567
|
-
day: 42,
|
|
1568
|
-
month: 42,
|
|
1569
|
-
year: 42,
|
|
1570
|
-
},
|
|
1571
|
-
startDate: {
|
|
1572
|
-
day: 42,
|
|
1573
|
-
month: 42,
|
|
1574
|
-
year: 42,
|
|
1575
|
-
},
|
|
1576
|
-
},
|
|
1577
|
-
breakdownDimensions: [
|
|
1578
|
-
"Test string"
|
|
1579
|
-
],
|
|
1580
|
-
creativeId: "Test string",
|
|
1581
|
-
dealId: "Test string",
|
|
1582
|
-
environment: "Test string",
|
|
1583
|
-
format: "Test string",
|
|
1584
|
-
formats: [
|
|
1585
|
-
"Test string"
|
|
1586
|
-
],
|
|
1587
|
-
name: "Test string",
|
|
1588
|
-
platforms: [
|
|
1589
|
-
"Test string"
|
|
1590
|
-
],
|
|
1591
|
-
publisherIdentifiers: [
|
|
1592
|
-
"Test string"
|
|
1593
|
-
],
|
|
1594
|
-
realtimeTimeRange: {
|
|
1595
|
-
startTimestamp: "Test string",
|
|
1596
|
-
},
|
|
1597
|
-
relativeDateRange: {
|
|
1598
|
-
durationDays: 42,
|
|
1599
|
-
offsetDays: 42,
|
|
1600
|
-
},
|
|
1601
|
-
sellerNetworkIds: [
|
|
1602
|
-
42
|
|
1603
|
-
],
|
|
1604
|
-
timeSeriesGranularity: "Test string",
|
|
1605
|
-
});
|
|
1606
|
-
/** Deletes the requested filter set from the account with the given account ID. */
|
|
1607
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.delete({
|
|
1608
|
-
name: "Test string",
|
|
1609
|
-
});
|
|
1610
|
-
/** Retrieves the requested filter set for the account with the given account ID. */
|
|
1611
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.get({
|
|
1612
|
-
name: "Test string",
|
|
1613
|
-
});
|
|
1614
|
-
/** Lists all filter sets for the account with the given account ID. */
|
|
1615
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.list({
|
|
1616
|
-
ownerName: "Test string",
|
|
1617
|
-
pageSize: 42,
|
|
1618
|
-
pageToken: "Test string",
|
|
1619
|
-
});
|
|
1620
|
-
/** Lists all metrics that are measured in terms of number of bids. */
|
|
1621
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.bidMetrics.list({
|
|
1622
|
-
filterSetName: "Test string",
|
|
1623
|
-
pageSize: 42,
|
|
1624
|
-
pageToken: "Test string",
|
|
1625
|
-
});
|
|
1626
|
-
/** List all errors that occurred in bid responses, with the number of bid responses affected for each reason. */
|
|
1627
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.bidResponseErrors.list({
|
|
1628
|
-
filterSetName: "Test string",
|
|
1629
|
-
pageSize: 42,
|
|
1630
|
-
pageToken: "Test string",
|
|
1631
|
-
});
|
|
1632
|
-
/** List all reasons for which bid responses were considered to have no applicable bids, with the number of bid responses affected for each reason. */
|
|
1633
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.bidResponsesWithoutBids.list({
|
|
1634
|
-
filterSetName: "Test string",
|
|
1635
|
-
pageSize: 42,
|
|
1636
|
-
pageToken: "Test string",
|
|
1637
|
-
});
|
|
1638
|
-
/** List all reasons that caused a bid request not to be sent for an impression, with the number of bid requests not sent for each reason. */
|
|
1639
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.filteredBidRequests.list({
|
|
1640
|
-
filterSetName: "Test string",
|
|
1641
|
-
pageSize: 42,
|
|
1642
|
-
pageToken: "Test string",
|
|
1643
|
-
});
|
|
1644
|
-
/** List all reasons for which bids were filtered, with the number of bids filtered for each reason. */
|
|
1645
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.filteredBids.list({
|
|
1646
|
-
filterSetName: "Test string",
|
|
1647
|
-
pageSize: 42,
|
|
1648
|
-
pageToken: "Test string",
|
|
1649
|
-
});
|
|
1650
|
-
/** List all creatives associated with a specific reason for which bids were filtered, with the number of bids filtered for each creative. */
|
|
1651
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.filteredBids.creatives.list({
|
|
1652
|
-
creativeStatusId: 42,
|
|
1653
|
-
filterSetName: "Test string",
|
|
1654
|
-
pageSize: 42,
|
|
1655
|
-
pageToken: "Test string",
|
|
1656
|
-
});
|
|
1657
|
-
/** List all details associated with a specific reason for which bids were filtered, with the number of bids filtered for each detail. */
|
|
1658
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.filteredBids.details.list({
|
|
1659
|
-
creativeStatusId: 42,
|
|
1660
|
-
filterSetName: "Test string",
|
|
1661
|
-
pageSize: 42,
|
|
1662
|
-
pageToken: "Test string",
|
|
1663
|
-
});
|
|
1664
|
-
/** Lists all metrics that are measured in terms of number of impressions. */
|
|
1665
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.impressionMetrics.list({
|
|
1666
|
-
filterSetName: "Test string",
|
|
1667
|
-
pageSize: 42,
|
|
1668
|
-
pageToken: "Test string",
|
|
1669
|
-
});
|
|
1670
|
-
/** List all reasons for which bids lost in the auction, with the number of bids that lost for each reason. */
|
|
1671
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.losingBids.list({
|
|
1672
|
-
filterSetName: "Test string",
|
|
1673
|
-
pageSize: 42,
|
|
1674
|
-
pageToken: "Test string",
|
|
1675
|
-
});
|
|
1676
|
-
/** List all reasons for which winning bids were not billable, with the number of bids not billed for each reason. */
|
|
1677
|
-
await gapi.client.adexchangebuyer2.bidders.filterSets.nonBillableWinningBids.list({
|
|
1678
|
-
filterSetName: "Test string",
|
|
1679
|
-
pageSize: 42,
|
|
1680
|
-
pageToken: "Test string",
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
});
|