@maxim_mazurok/gapi.client.displayvideo-v2 0.0.20220926

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/tests.ts ADDED
@@ -0,0 +1,4648 @@
1
+ /* This is stub file for gapi.client.displayvideo-v2 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: 20220926
7
+
8
+ gapi.load('client', async () => {
9
+ /** now we can use gapi.client */
10
+
11
+ await gapi.client.load('https://displayvideo.googleapis.com/$discovery/rest?version=v2');
12
+ /** now we can use gapi.client.displayvideo */
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
+ /** Create, see, edit, and permanently delete your Display & Video 360 entities and reports */
19
+ 'https://www.googleapis.com/auth/display-video',
20
+ /** Create, see, and edit Display & Video 360 Campaign entities and see billing invoices */
21
+ 'https://www.googleapis.com/auth/display-video-mediaplanning',
22
+ /** Private Service: https://www.googleapis.com/auth/display-video-user-management */
23
+ 'https://www.googleapis.com/auth/display-video-user-management',
24
+ /** View and manage your reports in DoubleClick Bid Manager */
25
+ 'https://www.googleapis.com/auth/doubleclickbidmanager',
26
+ ];
27
+ const immediate = false;
28
+ gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
29
+ if (authResult && !authResult.error) {
30
+ /** handle successful authorization */
31
+ run();
32
+ } else {
33
+ /** handle authorization error */
34
+ }
35
+ });
36
+
37
+ async function run() {
38
+ /**
39
+ * Audits an advertiser. Returns the counts of used entities per resource type under the advertiser provided. Used entities count towards their respective resource limit. See
40
+ * https://support.google.com/displayvideo/answer/6071450.
41
+ */
42
+ await gapi.client.displayvideo.advertisers.audit({
43
+ advertiserId: "Test string",
44
+ readMask: "Test string",
45
+ });
46
+ /** Creates a new advertiser. Returns the newly created advertiser if successful. This method can take up to 180 seconds to complete. */
47
+ await gapi.client.displayvideo.advertisers.create({
48
+ }, {
49
+ adServerConfig: {
50
+ cmHybridConfig: {
51
+ cmAccountId: "Test string",
52
+ cmFloodlightConfigId: "Test string",
53
+ cmFloodlightLinkingAuthorized: true,
54
+ cmSyncableSiteIds: [
55
+ "Test string"
56
+ ],
57
+ dv360ToCmCostReportingEnabled: true,
58
+ dv360ToCmDataSharingEnabled: true,
59
+ },
60
+ thirdPartyOnlyConfig: {
61
+ pixelOrderIdReportingEnabled: true,
62
+ },
63
+ },
64
+ advertiserId: "Test string",
65
+ creativeConfig: {
66
+ dynamicCreativeEnabled: true,
67
+ iasClientId: "Test string",
68
+ obaComplianceDisabled: true,
69
+ videoCreativeDataSharingAuthorized: true,
70
+ },
71
+ dataAccessConfig: {
72
+ sdfConfig: {
73
+ overridePartnerSdfConfig: true,
74
+ sdfConfig: {
75
+ adminEmail: "Test string",
76
+ version: "Test string",
77
+ },
78
+ },
79
+ },
80
+ displayName: "Test string",
81
+ entityStatus: "Test string",
82
+ generalConfig: {
83
+ currencyCode: "Test string",
84
+ domainUrl: "Test string",
85
+ timeZone: "Test string",
86
+ },
87
+ integrationDetails: {
88
+ details: "Test string",
89
+ integrationCode: "Test string",
90
+ },
91
+ name: "Test string",
92
+ partnerId: "Test string",
93
+ prismaEnabled: true,
94
+ servingConfig: {
95
+ exemptTvFromViewabilityTargeting: true,
96
+ },
97
+ updateTime: "Test string",
98
+ });
99
+ /** Deletes an advertiser. Deleting an advertiser will delete all of its child resources, for example, campaigns, insertion orders and line items. A deleted advertiser cannot be recovered. */
100
+ await gapi.client.displayvideo.advertisers.delete({
101
+ advertiserId: "Test string",
102
+ });
103
+ /**
104
+ * Edits targeting options under a single advertiser. The operation will delete the assigned targeting options provided in BulkEditAdvertiserAssignedTargetingOptionsRequest.delete_requests
105
+ * and then create the assigned targeting options provided in BulkEditAdvertiserAssignedTargetingOptionsRequest.create_requests .
106
+ */
107
+ await gapi.client.displayvideo.advertisers.editAssignedTargetingOptions({
108
+ advertiserId: "Test string",
109
+ }, {
110
+ createRequests: [
111
+ {
112
+ assignedTargetingOptions: [
113
+ {
114
+ ageRangeDetails: {
115
+ ageRange: "Test string",
116
+ },
117
+ appCategoryDetails: {
118
+ displayName: "Test string",
119
+ negative: true,
120
+ targetingOptionId: "Test string",
121
+ },
122
+ appDetails: {
123
+ appId: "Test string",
124
+ appPlatform: "Test string",
125
+ displayName: "Test string",
126
+ negative: true,
127
+ },
128
+ assignedTargetingOptionId: "Test string",
129
+ audienceGroupDetails: {
130
+ excludedFirstAndThirdPartyAudienceGroup: {
131
+ settings: [
132
+ {
133
+ firstAndThirdPartyAudienceId: "Test string",
134
+ recency: "Test string",
135
+ }
136
+ ],
137
+ },
138
+ excludedGoogleAudienceGroup: {
139
+ settings: [
140
+ {
141
+ googleAudienceId: "Test string",
142
+ }
143
+ ],
144
+ },
145
+ includedCombinedAudienceGroup: {
146
+ settings: [
147
+ {
148
+ combinedAudienceId: "Test string",
149
+ }
150
+ ],
151
+ },
152
+ includedCustomListGroup: {
153
+ settings: [
154
+ {
155
+ customListId: "Test string",
156
+ }
157
+ ],
158
+ },
159
+ includedFirstAndThirdPartyAudienceGroups: [
160
+ {
161
+ settings: [
162
+ {
163
+ firstAndThirdPartyAudienceId: "Test string",
164
+ recency: "Test string",
165
+ }
166
+ ],
167
+ }
168
+ ],
169
+ includedGoogleAudienceGroup: {
170
+ settings: [
171
+ {
172
+ googleAudienceId: "Test string",
173
+ }
174
+ ],
175
+ },
176
+ },
177
+ audioContentTypeDetails: {
178
+ audioContentType: "Test string",
179
+ },
180
+ authorizedSellerStatusDetails: {
181
+ authorizedSellerStatus: "Test string",
182
+ targetingOptionId: "Test string",
183
+ },
184
+ browserDetails: {
185
+ displayName: "Test string",
186
+ negative: true,
187
+ targetingOptionId: "Test string",
188
+ },
189
+ businessChainDetails: {
190
+ displayName: "Test string",
191
+ proximityRadiusAmount: 42,
192
+ proximityRadiusUnit: "Test string",
193
+ targetingOptionId: "Test string",
194
+ },
195
+ carrierAndIspDetails: {
196
+ displayName: "Test string",
197
+ negative: true,
198
+ targetingOptionId: "Test string",
199
+ },
200
+ categoryDetails: {
201
+ displayName: "Test string",
202
+ negative: true,
203
+ targetingOptionId: "Test string",
204
+ },
205
+ channelDetails: {
206
+ channelId: "Test string",
207
+ negative: true,
208
+ },
209
+ contentDurationDetails: {
210
+ contentDuration: "Test string",
211
+ targetingOptionId: "Test string",
212
+ },
213
+ contentGenreDetails: {
214
+ displayName: "Test string",
215
+ negative: true,
216
+ targetingOptionId: "Test string",
217
+ },
218
+ contentInstreamPositionDetails: {
219
+ adType: "Test string",
220
+ contentInstreamPosition: "Test string",
221
+ },
222
+ contentOutstreamPositionDetails: {
223
+ adType: "Test string",
224
+ contentOutstreamPosition: "Test string",
225
+ },
226
+ contentStreamTypeDetails: {
227
+ contentStreamType: "Test string",
228
+ targetingOptionId: "Test string",
229
+ },
230
+ dayAndTimeDetails: {
231
+ dayOfWeek: "Test string",
232
+ endHour: 42,
233
+ startHour: 42,
234
+ timeZoneResolution: "Test string",
235
+ },
236
+ deviceMakeModelDetails: {
237
+ displayName: "Test string",
238
+ negative: true,
239
+ targetingOptionId: "Test string",
240
+ },
241
+ deviceTypeDetails: {
242
+ deviceType: "Test string",
243
+ youtubeAndPartnersBidMultiplier: 42,
244
+ },
245
+ digitalContentLabelExclusionDetails: {
246
+ excludedContentRatingTier: "Test string",
247
+ },
248
+ environmentDetails: {
249
+ environment: "Test string",
250
+ },
251
+ exchangeDetails: {
252
+ exchange: "Test string",
253
+ },
254
+ genderDetails: {
255
+ gender: "Test string",
256
+ },
257
+ geoRegionDetails: {
258
+ displayName: "Test string",
259
+ geoRegionType: "Test string",
260
+ negative: true,
261
+ targetingOptionId: "Test string",
262
+ },
263
+ householdIncomeDetails: {
264
+ householdIncome: "Test string",
265
+ },
266
+ inheritance: "Test string",
267
+ inventorySourceDetails: {
268
+ inventorySourceId: "Test string",
269
+ },
270
+ inventorySourceGroupDetails: {
271
+ inventorySourceGroupId: "Test string",
272
+ },
273
+ keywordDetails: {
274
+ keyword: "Test string",
275
+ negative: true,
276
+ },
277
+ languageDetails: {
278
+ displayName: "Test string",
279
+ negative: true,
280
+ targetingOptionId: "Test string",
281
+ },
282
+ name: "Test string",
283
+ nativeContentPositionDetails: {
284
+ contentPosition: "Test string",
285
+ },
286
+ negativeKeywordListDetails: {
287
+ negativeKeywordListId: "Test string",
288
+ },
289
+ omidDetails: {
290
+ omid: "Test string",
291
+ },
292
+ onScreenPositionDetails: {
293
+ adType: "Test string",
294
+ onScreenPosition: "Test string",
295
+ targetingOptionId: "Test string",
296
+ },
297
+ operatingSystemDetails: {
298
+ displayName: "Test string",
299
+ negative: true,
300
+ targetingOptionId: "Test string",
301
+ },
302
+ parentalStatusDetails: {
303
+ parentalStatus: "Test string",
304
+ },
305
+ poiDetails: {
306
+ displayName: "Test string",
307
+ latitude: 42,
308
+ longitude: 42,
309
+ proximityRadiusAmount: 42,
310
+ proximityRadiusUnit: "Test string",
311
+ targetingOptionId: "Test string",
312
+ },
313
+ proximityLocationListDetails: {
314
+ proximityLocationListId: "Test string",
315
+ proximityRadius: 42,
316
+ proximityRadiusUnit: "Test string",
317
+ },
318
+ regionalLocationListDetails: {
319
+ negative: true,
320
+ regionalLocationListId: "Test string",
321
+ },
322
+ sensitiveCategoryExclusionDetails: {
323
+ excludedSensitiveCategory: "Test string",
324
+ },
325
+ subExchangeDetails: {
326
+ targetingOptionId: "Test string",
327
+ },
328
+ targetingType: "Test string",
329
+ thirdPartyVerifierDetails: {
330
+ adloox: {
331
+ excludedAdlooxCategories: [
332
+ "Test string"
333
+ ],
334
+ },
335
+ doubleVerify: {
336
+ appStarRating: {
337
+ avoidedStarRating: "Test string",
338
+ avoidInsufficientStarRating: true,
339
+ },
340
+ avoidedAgeRatings: [
341
+ "Test string"
342
+ ],
343
+ brandSafetyCategories: {
344
+ avoidedHighSeverityCategories: [
345
+ "Test string"
346
+ ],
347
+ avoidedMediumSeverityCategories: [
348
+ "Test string"
349
+ ],
350
+ avoidUnknownBrandSafetyCategory: true,
351
+ },
352
+ customSegmentId: "Test string",
353
+ displayViewability: {
354
+ iab: "Test string",
355
+ viewableDuring: "Test string",
356
+ },
357
+ fraudInvalidTraffic: {
358
+ avoidedFraudOption: "Test string",
359
+ avoidInsufficientOption: true,
360
+ },
361
+ videoViewability: {
362
+ playerImpressionRate: "Test string",
363
+ videoIab: "Test string",
364
+ videoViewableRate: "Test string",
365
+ },
366
+ },
367
+ integralAdScience: {
368
+ customSegmentId: [
369
+ "Test string"
370
+ ],
371
+ displayViewability: "Test string",
372
+ excludedAdFraudRisk: "Test string",
373
+ excludedAdultRisk: "Test string",
374
+ excludedAlcoholRisk: "Test string",
375
+ excludedDrugsRisk: "Test string",
376
+ excludedGamblingRisk: "Test string",
377
+ excludedHateSpeechRisk: "Test string",
378
+ excludedIllegalDownloadsRisk: "Test string",
379
+ excludedOffensiveLanguageRisk: "Test string",
380
+ excludedViolenceRisk: "Test string",
381
+ excludeUnrateable: true,
382
+ traqScoreOption: "Test string",
383
+ videoViewability: "Test string",
384
+ },
385
+ },
386
+ urlDetails: {
387
+ negative: true,
388
+ url: "Test string",
389
+ },
390
+ userRewardedContentDetails: {
391
+ targetingOptionId: "Test string",
392
+ userRewardedContent: "Test string",
393
+ },
394
+ videoPlayerSizeDetails: {
395
+ videoPlayerSize: "Test string",
396
+ },
397
+ viewabilityDetails: {
398
+ viewability: "Test string",
399
+ },
400
+ }
401
+ ],
402
+ targetingType: "Test string",
403
+ }
404
+ ],
405
+ deleteRequests: [
406
+ {
407
+ assignedTargetingOptionIds: [
408
+ "Test string"
409
+ ],
410
+ targetingType: "Test string",
411
+ }
412
+ ],
413
+ });
414
+ /** Gets an advertiser. */
415
+ await gapi.client.displayvideo.advertisers.get({
416
+ advertiserId: "Test string",
417
+ });
418
+ /** Lists advertisers that are accessible to the current user. The order is defined by the order_by parameter. A single partner_id is required. Cross-partner listing is not supported. */
419
+ await gapi.client.displayvideo.advertisers.list({
420
+ filter: "Test string",
421
+ orderBy: "Test string",
422
+ pageSize: 42,
423
+ pageToken: "Test string",
424
+ partnerId: "Test string",
425
+ });
426
+ /** Lists assigned targeting options of an advertiser across targeting types. */
427
+ await gapi.client.displayvideo.advertisers.listAssignedTargetingOptions({
428
+ advertiserId: "Test string",
429
+ filter: "Test string",
430
+ orderBy: "Test string",
431
+ pageSize: 42,
432
+ pageToken: "Test string",
433
+ });
434
+ /** Updates an existing advertiser. Returns the updated advertiser if successful. */
435
+ await gapi.client.displayvideo.advertisers.patch({
436
+ advertiserId: "Test string",
437
+ updateMask: "Test string",
438
+ }, {
439
+ adServerConfig: {
440
+ cmHybridConfig: {
441
+ cmAccountId: "Test string",
442
+ cmFloodlightConfigId: "Test string",
443
+ cmFloodlightLinkingAuthorized: true,
444
+ cmSyncableSiteIds: [
445
+ "Test string"
446
+ ],
447
+ dv360ToCmCostReportingEnabled: true,
448
+ dv360ToCmDataSharingEnabled: true,
449
+ },
450
+ thirdPartyOnlyConfig: {
451
+ pixelOrderIdReportingEnabled: true,
452
+ },
453
+ },
454
+ advertiserId: "Test string",
455
+ creativeConfig: {
456
+ dynamicCreativeEnabled: true,
457
+ iasClientId: "Test string",
458
+ obaComplianceDisabled: true,
459
+ videoCreativeDataSharingAuthorized: true,
460
+ },
461
+ dataAccessConfig: {
462
+ sdfConfig: {
463
+ overridePartnerSdfConfig: true,
464
+ sdfConfig: {
465
+ adminEmail: "Test string",
466
+ version: "Test string",
467
+ },
468
+ },
469
+ },
470
+ displayName: "Test string",
471
+ entityStatus: "Test string",
472
+ generalConfig: {
473
+ currencyCode: "Test string",
474
+ domainUrl: "Test string",
475
+ timeZone: "Test string",
476
+ },
477
+ integrationDetails: {
478
+ details: "Test string",
479
+ integrationCode: "Test string",
480
+ },
481
+ name: "Test string",
482
+ partnerId: "Test string",
483
+ prismaEnabled: true,
484
+ servingConfig: {
485
+ exemptTvFromViewabilityTargeting: true,
486
+ },
487
+ updateTime: "Test string",
488
+ });
489
+ /**
490
+ * Uploads an asset. Returns the ID of the newly uploaded asset if successful. The asset file size should be no more than 10 MB for images, 200 MB for ZIP files, and 1 GB for videos. Must
491
+ * be used within the [multipart media upload process](/display-video/api/guides/how-tos/upload#multipart). Examples using provided client libraries can be found in our [Creating Creatives
492
+ * guide](/display-video/api/guides/creating-creatives/overview#upload_an_asset).
493
+ */
494
+ await gapi.client.displayvideo.advertisers.assets.upload({
495
+ advertiserId: "Test string",
496
+ }, {
497
+ filename: "Test string",
498
+ });
499
+ /** Creates a new campaign. Returns the newly created campaign if successful. */
500
+ await gapi.client.displayvideo.advertisers.campaigns.create({
501
+ advertiserId: "Test string",
502
+ }, {
503
+ advertiserId: "Test string",
504
+ campaignBudgets: [
505
+ {
506
+ budgetAmountMicros: "Test string",
507
+ budgetId: "Test string",
508
+ budgetUnit: "Test string",
509
+ dateRange: {
510
+ endDate: {
511
+ day: 42,
512
+ month: 42,
513
+ year: 42,
514
+ },
515
+ startDate: {
516
+ day: 42,
517
+ month: 42,
518
+ year: 42,
519
+ },
520
+ },
521
+ displayName: "Test string",
522
+ externalBudgetId: "Test string",
523
+ externalBudgetSource: "Test string",
524
+ invoiceGroupingId: "Test string",
525
+ prismaConfig: {
526
+ prismaCpeCode: {
527
+ prismaClientCode: "Test string",
528
+ prismaEstimateCode: "Test string",
529
+ prismaProductCode: "Test string",
530
+ },
531
+ prismaType: "Test string",
532
+ supplier: "Test string",
533
+ },
534
+ }
535
+ ],
536
+ campaignFlight: {
537
+ plannedDates: {
538
+ endDate: {
539
+ day: 42,
540
+ month: 42,
541
+ year: 42,
542
+ },
543
+ startDate: {
544
+ day: 42,
545
+ month: 42,
546
+ year: 42,
547
+ },
548
+ },
549
+ plannedSpendAmountMicros: "Test string",
550
+ },
551
+ campaignGoal: {
552
+ campaignGoalType: "Test string",
553
+ performanceGoal: {
554
+ performanceGoalAmountMicros: "Test string",
555
+ performanceGoalPercentageMicros: "Test string",
556
+ performanceGoalString: "Test string",
557
+ performanceGoalType: "Test string",
558
+ },
559
+ },
560
+ campaignId: "Test string",
561
+ displayName: "Test string",
562
+ entityStatus: "Test string",
563
+ frequencyCap: {
564
+ maxImpressions: 42,
565
+ maxViews: 42,
566
+ timeUnit: "Test string",
567
+ timeUnitCount: 42,
568
+ unlimited: true,
569
+ },
570
+ name: "Test string",
571
+ updateTime: "Test string",
572
+ });
573
+ /**
574
+ * Permanently deletes a campaign. A deleted campaign cannot be recovered. The campaign should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete
575
+ * it.
576
+ */
577
+ await gapi.client.displayvideo.advertisers.campaigns.delete({
578
+ advertiserId: "Test string",
579
+ campaignId: "Test string",
580
+ });
581
+ /** Gets a campaign. */
582
+ await gapi.client.displayvideo.advertisers.campaigns.get({
583
+ advertiserId: "Test string",
584
+ campaignId: "Test string",
585
+ });
586
+ /**
587
+ * Lists campaigns in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, campaigns with `ENTITY_STATUS_ARCHIVED` will not be
588
+ * included in the results.
589
+ */
590
+ await gapi.client.displayvideo.advertisers.campaigns.list({
591
+ advertiserId: "Test string",
592
+ filter: "Test string",
593
+ orderBy: "Test string",
594
+ pageSize: 42,
595
+ pageToken: "Test string",
596
+ });
597
+ /** Lists assigned targeting options of a campaign across targeting types. */
598
+ await gapi.client.displayvideo.advertisers.campaigns.listAssignedTargetingOptions({
599
+ advertiserId: "Test string",
600
+ campaignId: "Test string",
601
+ filter: "Test string",
602
+ orderBy: "Test string",
603
+ pageSize: 42,
604
+ pageToken: "Test string",
605
+ });
606
+ /** Updates an existing campaign. Returns the updated campaign if successful. */
607
+ await gapi.client.displayvideo.advertisers.campaigns.patch({
608
+ advertiserId: "Test string",
609
+ campaignId: "Test string",
610
+ updateMask: "Test string",
611
+ }, {
612
+ advertiserId: "Test string",
613
+ campaignBudgets: [
614
+ {
615
+ budgetAmountMicros: "Test string",
616
+ budgetId: "Test string",
617
+ budgetUnit: "Test string",
618
+ dateRange: {
619
+ endDate: {
620
+ day: 42,
621
+ month: 42,
622
+ year: 42,
623
+ },
624
+ startDate: {
625
+ day: 42,
626
+ month: 42,
627
+ year: 42,
628
+ },
629
+ },
630
+ displayName: "Test string",
631
+ externalBudgetId: "Test string",
632
+ externalBudgetSource: "Test string",
633
+ invoiceGroupingId: "Test string",
634
+ prismaConfig: {
635
+ prismaCpeCode: {
636
+ prismaClientCode: "Test string",
637
+ prismaEstimateCode: "Test string",
638
+ prismaProductCode: "Test string",
639
+ },
640
+ prismaType: "Test string",
641
+ supplier: "Test string",
642
+ },
643
+ }
644
+ ],
645
+ campaignFlight: {
646
+ plannedDates: {
647
+ endDate: {
648
+ day: 42,
649
+ month: 42,
650
+ year: 42,
651
+ },
652
+ startDate: {
653
+ day: 42,
654
+ month: 42,
655
+ year: 42,
656
+ },
657
+ },
658
+ plannedSpendAmountMicros: "Test string",
659
+ },
660
+ campaignGoal: {
661
+ campaignGoalType: "Test string",
662
+ performanceGoal: {
663
+ performanceGoalAmountMicros: "Test string",
664
+ performanceGoalPercentageMicros: "Test string",
665
+ performanceGoalString: "Test string",
666
+ performanceGoalType: "Test string",
667
+ },
668
+ },
669
+ campaignId: "Test string",
670
+ displayName: "Test string",
671
+ entityStatus: "Test string",
672
+ frequencyCap: {
673
+ maxImpressions: 42,
674
+ maxViews: 42,
675
+ timeUnit: "Test string",
676
+ timeUnitCount: 42,
677
+ unlimited: true,
678
+ },
679
+ name: "Test string",
680
+ updateTime: "Test string",
681
+ });
682
+ /** Gets a single targeting option assigned to a campaign. */
683
+ await gapi.client.displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.get({
684
+ advertiserId: "Test string",
685
+ assignedTargetingOptionId: "Test string",
686
+ campaignId: "Test string",
687
+ targetingType: "Test string",
688
+ });
689
+ /** Lists the targeting options assigned to a campaign for a specified targeting type. */
690
+ await gapi.client.displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.list({
691
+ advertiserId: "Test string",
692
+ campaignId: "Test string",
693
+ filter: "Test string",
694
+ orderBy: "Test string",
695
+ pageSize: 42,
696
+ pageToken: "Test string",
697
+ targetingType: "Test string",
698
+ });
699
+ /** Creates a new channel. Returns the newly created channel if successful. */
700
+ await gapi.client.displayvideo.advertisers.channels.create({
701
+ advertiserId: "Test string",
702
+ partnerId: "Test string",
703
+ }, {
704
+ advertiserId: "Test string",
705
+ channelId: "Test string",
706
+ displayName: "Test string",
707
+ name: "Test string",
708
+ negativelyTargetedLineItemCount: "Test string",
709
+ partnerId: "Test string",
710
+ positivelyTargetedLineItemCount: "Test string",
711
+ });
712
+ /** Gets a channel for a partner or advertiser. */
713
+ await gapi.client.displayvideo.advertisers.channels.get({
714
+ advertiserId: "Test string",
715
+ channelId: "Test string",
716
+ partnerId: "Test string",
717
+ });
718
+ /** Lists channels for a partner or advertiser. */
719
+ await gapi.client.displayvideo.advertisers.channels.list({
720
+ advertiserId: "Test string",
721
+ filter: "Test string",
722
+ orderBy: "Test string",
723
+ pageSize: 42,
724
+ pageToken: "Test string",
725
+ partnerId: "Test string",
726
+ });
727
+ /** Updates a channel. Returns the updated channel if successful. */
728
+ await gapi.client.displayvideo.advertisers.channels.patch({
729
+ advertiserId: "Test string",
730
+ channelId: "Test string",
731
+ partnerId: "Test string",
732
+ updateMask: "Test string",
733
+ }, {
734
+ advertiserId: "Test string",
735
+ channelId: "Test string",
736
+ displayName: "Test string",
737
+ name: "Test string",
738
+ negativelyTargetedLineItemCount: "Test string",
739
+ partnerId: "Test string",
740
+ positivelyTargetedLineItemCount: "Test string",
741
+ });
742
+ /**
743
+ * Bulk edits sites under a single channel. The operation will delete the sites provided in BulkEditSitesRequest.deleted_sites and then create the sites provided in
744
+ * BulkEditSitesRequest.created_sites.
745
+ */
746
+ await gapi.client.displayvideo.advertisers.channels.sites.bulkEdit({
747
+ advertiserId: "Test string",
748
+ channelId: "Test string",
749
+ }, {
750
+ advertiserId: "Test string",
751
+ createdSites: [
752
+ {
753
+ name: "Test string",
754
+ urlOrAppId: "Test string",
755
+ }
756
+ ],
757
+ deletedSites: [
758
+ "Test string"
759
+ ],
760
+ partnerId: "Test string",
761
+ });
762
+ /** Creates a site in a channel. */
763
+ await gapi.client.displayvideo.advertisers.channels.sites.create({
764
+ advertiserId: "Test string",
765
+ channelId: "Test string",
766
+ partnerId: "Test string",
767
+ }, {
768
+ name: "Test string",
769
+ urlOrAppId: "Test string",
770
+ });
771
+ /** Deletes a site from a channel. */
772
+ await gapi.client.displayvideo.advertisers.channels.sites.delete({
773
+ advertiserId: "Test string",
774
+ channelId: "Test string",
775
+ partnerId: "Test string",
776
+ urlOrAppId: "Test string",
777
+ });
778
+ /** Lists sites in a channel. */
779
+ await gapi.client.displayvideo.advertisers.channels.sites.list({
780
+ advertiserId: "Test string",
781
+ channelId: "Test string",
782
+ filter: "Test string",
783
+ orderBy: "Test string",
784
+ pageSize: 42,
785
+ pageToken: "Test string",
786
+ partnerId: "Test string",
787
+ });
788
+ /** Replaces all of the sites under a single channel. The operation will replace the sites under a channel with the sites provided in ReplaceSitesRequest.new_sites. */
789
+ await gapi.client.displayvideo.advertisers.channels.sites.replace({
790
+ advertiserId: "Test string",
791
+ channelId: "Test string",
792
+ }, {
793
+ advertiserId: "Test string",
794
+ newSites: [
795
+ {
796
+ name: "Test string",
797
+ urlOrAppId: "Test string",
798
+ }
799
+ ],
800
+ partnerId: "Test string",
801
+ });
802
+ /** Creates a new creative. Returns the newly created creative if successful. */
803
+ await gapi.client.displayvideo.advertisers.creatives.create({
804
+ advertiserId: "Test string",
805
+ }, {
806
+ additionalDimensions: [
807
+ {
808
+ heightPixels: 42,
809
+ widthPixels: 42,
810
+ }
811
+ ],
812
+ advertiserId: "Test string",
813
+ appendedTag: "Test string",
814
+ assets: [
815
+ {
816
+ asset: {
817
+ content: "Test string",
818
+ mediaId: "Test string",
819
+ },
820
+ role: "Test string",
821
+ }
822
+ ],
823
+ cmPlacementId: "Test string",
824
+ cmTrackingAd: {
825
+ cmAdId: "Test string",
826
+ cmCreativeId: "Test string",
827
+ cmPlacementId: "Test string",
828
+ },
829
+ companionCreativeIds: [
830
+ "Test string"
831
+ ],
832
+ counterEvents: [
833
+ {
834
+ name: "Test string",
835
+ reportingName: "Test string",
836
+ }
837
+ ],
838
+ createTime: "Test string",
839
+ creativeAttributes: [
840
+ "Test string"
841
+ ],
842
+ creativeId: "Test string",
843
+ creativeType: "Test string",
844
+ dimensions: {
845
+ heightPixels: 42,
846
+ widthPixels: 42,
847
+ },
848
+ displayName: "Test string",
849
+ dynamic: true,
850
+ entityStatus: "Test string",
851
+ exitEvents: [
852
+ {
853
+ name: "Test string",
854
+ reportingName: "Test string",
855
+ type: "Test string",
856
+ url: "Test string",
857
+ }
858
+ ],
859
+ expandingDirection: "Test string",
860
+ expandOnHover: true,
861
+ hostingSource: "Test string",
862
+ html5Video: true,
863
+ iasCampaignMonitoring: true,
864
+ integrationCode: "Test string",
865
+ jsTrackerUrl: "Test string",
866
+ lineItemIds: [
867
+ "Test string"
868
+ ],
869
+ mediaDuration: "Test string",
870
+ mp3Audio: true,
871
+ name: "Test string",
872
+ notes: "Test string",
873
+ obaIcon: {
874
+ clickTrackingUrl: "Test string",
875
+ dimensions: {
876
+ heightPixels: 42,
877
+ widthPixels: 42,
878
+ },
879
+ landingPageUrl: "Test string",
880
+ position: "Test string",
881
+ program: "Test string",
882
+ resourceMimeType: "Test string",
883
+ resourceUrl: "Test string",
884
+ viewTrackingUrl: "Test string",
885
+ },
886
+ oggAudio: true,
887
+ progressOffset: {
888
+ percentage: "Test string",
889
+ seconds: "Test string",
890
+ },
891
+ requireHtml5: true,
892
+ requireMraid: true,
893
+ requirePingForAttribution: true,
894
+ reviewStatus: {
895
+ approvalStatus: "Test string",
896
+ contentAndPolicyReviewStatus: "Test string",
897
+ creativeAndLandingPageReviewStatus: "Test string",
898
+ exchangeReviewStatuses: [
899
+ {
900
+ exchange: "Test string",
901
+ status: "Test string",
902
+ }
903
+ ],
904
+ publisherReviewStatuses: [
905
+ {
906
+ publisherName: "Test string",
907
+ status: "Test string",
908
+ }
909
+ ],
910
+ },
911
+ skipOffset: {
912
+ percentage: "Test string",
913
+ seconds: "Test string",
914
+ },
915
+ skippable: true,
916
+ thirdPartyTag: "Test string",
917
+ thirdPartyUrls: [
918
+ {
919
+ type: "Test string",
920
+ url: "Test string",
921
+ }
922
+ ],
923
+ timerEvents: [
924
+ {
925
+ name: "Test string",
926
+ reportingName: "Test string",
927
+ }
928
+ ],
929
+ trackerUrls: [
930
+ "Test string"
931
+ ],
932
+ transcodes: [
933
+ {
934
+ audioBitRateKbps: "Test string",
935
+ audioSampleRateHz: "Test string",
936
+ bitRateKbps: "Test string",
937
+ dimensions: {
938
+ heightPixels: 42,
939
+ widthPixels: 42,
940
+ },
941
+ fileSizeBytes: "Test string",
942
+ frameRate: 42,
943
+ mimeType: "Test string",
944
+ name: "Test string",
945
+ transcoded: true,
946
+ }
947
+ ],
948
+ universalAdId: {
949
+ id: "Test string",
950
+ registry: "Test string",
951
+ },
952
+ updateTime: "Test string",
953
+ vastTagUrl: "Test string",
954
+ vpaid: true,
955
+ });
956
+ /**
957
+ * Deletes a creative. Returns error code `NOT_FOUND` if the creative does not exist. The creative should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, before it
958
+ * can be deleted.
959
+ */
960
+ await gapi.client.displayvideo.advertisers.creatives.delete({
961
+ advertiserId: "Test string",
962
+ creativeId: "Test string",
963
+ });
964
+ /** Gets a creative. */
965
+ await gapi.client.displayvideo.advertisers.creatives.get({
966
+ advertiserId: "Test string",
967
+ creativeId: "Test string",
968
+ });
969
+ /**
970
+ * Lists creatives in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, creatives with `ENTITY_STATUS_ARCHIVED` will not be
971
+ * included in the results.
972
+ */
973
+ await gapi.client.displayvideo.advertisers.creatives.list({
974
+ advertiserId: "Test string",
975
+ filter: "Test string",
976
+ orderBy: "Test string",
977
+ pageSize: 42,
978
+ pageToken: "Test string",
979
+ });
980
+ /** Updates an existing creative. Returns the updated creative if successful. */
981
+ await gapi.client.displayvideo.advertisers.creatives.patch({
982
+ advertiserId: "Test string",
983
+ creativeId: "Test string",
984
+ updateMask: "Test string",
985
+ }, {
986
+ additionalDimensions: [
987
+ {
988
+ heightPixels: 42,
989
+ widthPixels: 42,
990
+ }
991
+ ],
992
+ advertiserId: "Test string",
993
+ appendedTag: "Test string",
994
+ assets: [
995
+ {
996
+ asset: {
997
+ content: "Test string",
998
+ mediaId: "Test string",
999
+ },
1000
+ role: "Test string",
1001
+ }
1002
+ ],
1003
+ cmPlacementId: "Test string",
1004
+ cmTrackingAd: {
1005
+ cmAdId: "Test string",
1006
+ cmCreativeId: "Test string",
1007
+ cmPlacementId: "Test string",
1008
+ },
1009
+ companionCreativeIds: [
1010
+ "Test string"
1011
+ ],
1012
+ counterEvents: [
1013
+ {
1014
+ name: "Test string",
1015
+ reportingName: "Test string",
1016
+ }
1017
+ ],
1018
+ createTime: "Test string",
1019
+ creativeAttributes: [
1020
+ "Test string"
1021
+ ],
1022
+ creativeId: "Test string",
1023
+ creativeType: "Test string",
1024
+ dimensions: {
1025
+ heightPixels: 42,
1026
+ widthPixels: 42,
1027
+ },
1028
+ displayName: "Test string",
1029
+ dynamic: true,
1030
+ entityStatus: "Test string",
1031
+ exitEvents: [
1032
+ {
1033
+ name: "Test string",
1034
+ reportingName: "Test string",
1035
+ type: "Test string",
1036
+ url: "Test string",
1037
+ }
1038
+ ],
1039
+ expandingDirection: "Test string",
1040
+ expandOnHover: true,
1041
+ hostingSource: "Test string",
1042
+ html5Video: true,
1043
+ iasCampaignMonitoring: true,
1044
+ integrationCode: "Test string",
1045
+ jsTrackerUrl: "Test string",
1046
+ lineItemIds: [
1047
+ "Test string"
1048
+ ],
1049
+ mediaDuration: "Test string",
1050
+ mp3Audio: true,
1051
+ name: "Test string",
1052
+ notes: "Test string",
1053
+ obaIcon: {
1054
+ clickTrackingUrl: "Test string",
1055
+ dimensions: {
1056
+ heightPixels: 42,
1057
+ widthPixels: 42,
1058
+ },
1059
+ landingPageUrl: "Test string",
1060
+ position: "Test string",
1061
+ program: "Test string",
1062
+ resourceMimeType: "Test string",
1063
+ resourceUrl: "Test string",
1064
+ viewTrackingUrl: "Test string",
1065
+ },
1066
+ oggAudio: true,
1067
+ progressOffset: {
1068
+ percentage: "Test string",
1069
+ seconds: "Test string",
1070
+ },
1071
+ requireHtml5: true,
1072
+ requireMraid: true,
1073
+ requirePingForAttribution: true,
1074
+ reviewStatus: {
1075
+ approvalStatus: "Test string",
1076
+ contentAndPolicyReviewStatus: "Test string",
1077
+ creativeAndLandingPageReviewStatus: "Test string",
1078
+ exchangeReviewStatuses: [
1079
+ {
1080
+ exchange: "Test string",
1081
+ status: "Test string",
1082
+ }
1083
+ ],
1084
+ publisherReviewStatuses: [
1085
+ {
1086
+ publisherName: "Test string",
1087
+ status: "Test string",
1088
+ }
1089
+ ],
1090
+ },
1091
+ skipOffset: {
1092
+ percentage: "Test string",
1093
+ seconds: "Test string",
1094
+ },
1095
+ skippable: true,
1096
+ thirdPartyTag: "Test string",
1097
+ thirdPartyUrls: [
1098
+ {
1099
+ type: "Test string",
1100
+ url: "Test string",
1101
+ }
1102
+ ],
1103
+ timerEvents: [
1104
+ {
1105
+ name: "Test string",
1106
+ reportingName: "Test string",
1107
+ }
1108
+ ],
1109
+ trackerUrls: [
1110
+ "Test string"
1111
+ ],
1112
+ transcodes: [
1113
+ {
1114
+ audioBitRateKbps: "Test string",
1115
+ audioSampleRateHz: "Test string",
1116
+ bitRateKbps: "Test string",
1117
+ dimensions: {
1118
+ heightPixels: 42,
1119
+ widthPixels: 42,
1120
+ },
1121
+ fileSizeBytes: "Test string",
1122
+ frameRate: 42,
1123
+ mimeType: "Test string",
1124
+ name: "Test string",
1125
+ transcoded: true,
1126
+ }
1127
+ ],
1128
+ universalAdId: {
1129
+ id: "Test string",
1130
+ registry: "Test string",
1131
+ },
1132
+ updateTime: "Test string",
1133
+ vastTagUrl: "Test string",
1134
+ vpaid: true,
1135
+ });
1136
+ /** Creates a new insertion order. Returns the newly created insertion order if successful. */
1137
+ await gapi.client.displayvideo.advertisers.insertionOrders.create({
1138
+ advertiserId: "Test string",
1139
+ }, {
1140
+ advertiserId: "Test string",
1141
+ bidStrategy: {
1142
+ fixedBid: {
1143
+ bidAmountMicros: "Test string",
1144
+ },
1145
+ maximizeSpendAutoBid: {
1146
+ customBiddingAlgorithmId: "Test string",
1147
+ maxAverageCpmBidAmountMicros: "Test string",
1148
+ performanceGoalType: "Test string",
1149
+ raiseBidForDeals: true,
1150
+ },
1151
+ performanceGoalAutoBid: {
1152
+ customBiddingAlgorithmId: "Test string",
1153
+ maxAverageCpmBidAmountMicros: "Test string",
1154
+ performanceGoalAmountMicros: "Test string",
1155
+ performanceGoalType: "Test string",
1156
+ },
1157
+ },
1158
+ billableOutcome: "Test string",
1159
+ budget: {
1160
+ automationType: "Test string",
1161
+ budgetSegments: [
1162
+ {
1163
+ budgetAmountMicros: "Test string",
1164
+ campaignBudgetId: "Test string",
1165
+ dateRange: {
1166
+ endDate: {
1167
+ day: 42,
1168
+ month: 42,
1169
+ year: 42,
1170
+ },
1171
+ startDate: {
1172
+ day: 42,
1173
+ month: 42,
1174
+ year: 42,
1175
+ },
1176
+ },
1177
+ description: "Test string",
1178
+ }
1179
+ ],
1180
+ budgetUnit: "Test string",
1181
+ },
1182
+ campaignId: "Test string",
1183
+ displayName: "Test string",
1184
+ entityStatus: "Test string",
1185
+ frequencyCap: {
1186
+ maxImpressions: 42,
1187
+ maxViews: 42,
1188
+ timeUnit: "Test string",
1189
+ timeUnitCount: 42,
1190
+ unlimited: true,
1191
+ },
1192
+ insertionOrderId: "Test string",
1193
+ insertionOrderType: "Test string",
1194
+ integrationDetails: {
1195
+ details: "Test string",
1196
+ integrationCode: "Test string",
1197
+ },
1198
+ name: "Test string",
1199
+ pacing: {
1200
+ dailyMaxImpressions: "Test string",
1201
+ dailyMaxMicros: "Test string",
1202
+ pacingPeriod: "Test string",
1203
+ pacingType: "Test string",
1204
+ },
1205
+ partnerCosts: [
1206
+ {
1207
+ costType: "Test string",
1208
+ feeAmount: "Test string",
1209
+ feePercentageMillis: "Test string",
1210
+ feeType: "Test string",
1211
+ invoiceType: "Test string",
1212
+ }
1213
+ ],
1214
+ performanceGoal: {
1215
+ performanceGoalAmountMicros: "Test string",
1216
+ performanceGoalPercentageMicros: "Test string",
1217
+ performanceGoalString: "Test string",
1218
+ performanceGoalType: "Test string",
1219
+ },
1220
+ reservationType: "Test string",
1221
+ updateTime: "Test string",
1222
+ });
1223
+ /**
1224
+ * Deletes an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist. The insertion order should be archived first, i.e. set entity_status to
1225
+ * `ENTITY_STATUS_ARCHIVED`, to be able to delete it.
1226
+ */
1227
+ await gapi.client.displayvideo.advertisers.insertionOrders.delete({
1228
+ advertiserId: "Test string",
1229
+ insertionOrderId: "Test string",
1230
+ });
1231
+ /** Gets an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist. */
1232
+ await gapi.client.displayvideo.advertisers.insertionOrders.get({
1233
+ advertiserId: "Test string",
1234
+ insertionOrderId: "Test string",
1235
+ });
1236
+ /**
1237
+ * Lists insertion orders in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, insertion orders with `ENTITY_STATUS_ARCHIVED`
1238
+ * will not be included in the results.
1239
+ */
1240
+ await gapi.client.displayvideo.advertisers.insertionOrders.list({
1241
+ advertiserId: "Test string",
1242
+ filter: "Test string",
1243
+ orderBy: "Test string",
1244
+ pageSize: 42,
1245
+ pageToken: "Test string",
1246
+ });
1247
+ /** Lists assigned targeting options of an insertion order across targeting types. */
1248
+ await gapi.client.displayvideo.advertisers.insertionOrders.listAssignedTargetingOptions({
1249
+ advertiserId: "Test string",
1250
+ filter: "Test string",
1251
+ insertionOrderId: "Test string",
1252
+ orderBy: "Test string",
1253
+ pageSize: 42,
1254
+ pageToken: "Test string",
1255
+ });
1256
+ /** Updates an existing insertion order. Returns the updated insertion order if successful. */
1257
+ await gapi.client.displayvideo.advertisers.insertionOrders.patch({
1258
+ advertiserId: "Test string",
1259
+ insertionOrderId: "Test string",
1260
+ updateMask: "Test string",
1261
+ }, {
1262
+ advertiserId: "Test string",
1263
+ bidStrategy: {
1264
+ fixedBid: {
1265
+ bidAmountMicros: "Test string",
1266
+ },
1267
+ maximizeSpendAutoBid: {
1268
+ customBiddingAlgorithmId: "Test string",
1269
+ maxAverageCpmBidAmountMicros: "Test string",
1270
+ performanceGoalType: "Test string",
1271
+ raiseBidForDeals: true,
1272
+ },
1273
+ performanceGoalAutoBid: {
1274
+ customBiddingAlgorithmId: "Test string",
1275
+ maxAverageCpmBidAmountMicros: "Test string",
1276
+ performanceGoalAmountMicros: "Test string",
1277
+ performanceGoalType: "Test string",
1278
+ },
1279
+ },
1280
+ billableOutcome: "Test string",
1281
+ budget: {
1282
+ automationType: "Test string",
1283
+ budgetSegments: [
1284
+ {
1285
+ budgetAmountMicros: "Test string",
1286
+ campaignBudgetId: "Test string",
1287
+ dateRange: {
1288
+ endDate: {
1289
+ day: 42,
1290
+ month: 42,
1291
+ year: 42,
1292
+ },
1293
+ startDate: {
1294
+ day: 42,
1295
+ month: 42,
1296
+ year: 42,
1297
+ },
1298
+ },
1299
+ description: "Test string",
1300
+ }
1301
+ ],
1302
+ budgetUnit: "Test string",
1303
+ },
1304
+ campaignId: "Test string",
1305
+ displayName: "Test string",
1306
+ entityStatus: "Test string",
1307
+ frequencyCap: {
1308
+ maxImpressions: 42,
1309
+ maxViews: 42,
1310
+ timeUnit: "Test string",
1311
+ timeUnitCount: 42,
1312
+ unlimited: true,
1313
+ },
1314
+ insertionOrderId: "Test string",
1315
+ insertionOrderType: "Test string",
1316
+ integrationDetails: {
1317
+ details: "Test string",
1318
+ integrationCode: "Test string",
1319
+ },
1320
+ name: "Test string",
1321
+ pacing: {
1322
+ dailyMaxImpressions: "Test string",
1323
+ dailyMaxMicros: "Test string",
1324
+ pacingPeriod: "Test string",
1325
+ pacingType: "Test string",
1326
+ },
1327
+ partnerCosts: [
1328
+ {
1329
+ costType: "Test string",
1330
+ feeAmount: "Test string",
1331
+ feePercentageMillis: "Test string",
1332
+ feeType: "Test string",
1333
+ invoiceType: "Test string",
1334
+ }
1335
+ ],
1336
+ performanceGoal: {
1337
+ performanceGoalAmountMicros: "Test string",
1338
+ performanceGoalPercentageMicros: "Test string",
1339
+ performanceGoalString: "Test string",
1340
+ performanceGoalType: "Test string",
1341
+ },
1342
+ reservationType: "Test string",
1343
+ updateTime: "Test string",
1344
+ });
1345
+ /** Gets a single targeting option assigned to an insertion order. */
1346
+ await gapi.client.displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.get({
1347
+ advertiserId: "Test string",
1348
+ assignedTargetingOptionId: "Test string",
1349
+ insertionOrderId: "Test string",
1350
+ targetingType: "Test string",
1351
+ });
1352
+ /** Lists the targeting options assigned to an insertion order. */
1353
+ await gapi.client.displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.list({
1354
+ advertiserId: "Test string",
1355
+ filter: "Test string",
1356
+ insertionOrderId: "Test string",
1357
+ orderBy: "Test string",
1358
+ pageSize: 42,
1359
+ pageToken: "Test string",
1360
+ targetingType: "Test string",
1361
+ });
1362
+ /** Lists invoices posted for an advertiser in a given month. Invoices generated by billing profiles with a "Partner" invoice level are not retrievable through this method. */
1363
+ await gapi.client.displayvideo.advertisers.invoices.list({
1364
+ advertiserId: "Test string",
1365
+ issueMonth: "Test string",
1366
+ loiSapinInvoiceType: "Test string",
1367
+ pageSize: 42,
1368
+ pageToken: "Test string",
1369
+ });
1370
+ /** Retrieves the invoice currency used by an advertiser in a given month. */
1371
+ await gapi.client.displayvideo.advertisers.invoices.lookupInvoiceCurrency({
1372
+ advertiserId: "Test string",
1373
+ invoiceMonth: "Test string",
1374
+ });
1375
+ /**
1376
+ * Bulk edits targeting options under multiple line items. The operation will delete the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.delete_requests and
1377
+ * then create the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.create_requests .
1378
+ */
1379
+ await gapi.client.displayvideo.advertisers.lineItems.bulkEditAssignedTargetingOptions({
1380
+ advertiserId: "Test string",
1381
+ }, {
1382
+ createRequests: [
1383
+ {
1384
+ assignedTargetingOptions: [
1385
+ {
1386
+ ageRangeDetails: {
1387
+ ageRange: "Test string",
1388
+ },
1389
+ appCategoryDetails: {
1390
+ displayName: "Test string",
1391
+ negative: true,
1392
+ targetingOptionId: "Test string",
1393
+ },
1394
+ appDetails: {
1395
+ appId: "Test string",
1396
+ appPlatform: "Test string",
1397
+ displayName: "Test string",
1398
+ negative: true,
1399
+ },
1400
+ assignedTargetingOptionId: "Test string",
1401
+ audienceGroupDetails: {
1402
+ excludedFirstAndThirdPartyAudienceGroup: {
1403
+ settings: [
1404
+ {
1405
+ firstAndThirdPartyAudienceId: "Test string",
1406
+ recency: "Test string",
1407
+ }
1408
+ ],
1409
+ },
1410
+ excludedGoogleAudienceGroup: {
1411
+ settings: [
1412
+ {
1413
+ googleAudienceId: "Test string",
1414
+ }
1415
+ ],
1416
+ },
1417
+ includedCombinedAudienceGroup: {
1418
+ settings: [
1419
+ {
1420
+ combinedAudienceId: "Test string",
1421
+ }
1422
+ ],
1423
+ },
1424
+ includedCustomListGroup: {
1425
+ settings: [
1426
+ {
1427
+ customListId: "Test string",
1428
+ }
1429
+ ],
1430
+ },
1431
+ includedFirstAndThirdPartyAudienceGroups: [
1432
+ {
1433
+ settings: [
1434
+ {
1435
+ firstAndThirdPartyAudienceId: "Test string",
1436
+ recency: "Test string",
1437
+ }
1438
+ ],
1439
+ }
1440
+ ],
1441
+ includedGoogleAudienceGroup: {
1442
+ settings: [
1443
+ {
1444
+ googleAudienceId: "Test string",
1445
+ }
1446
+ ],
1447
+ },
1448
+ },
1449
+ audioContentTypeDetails: {
1450
+ audioContentType: "Test string",
1451
+ },
1452
+ authorizedSellerStatusDetails: {
1453
+ authorizedSellerStatus: "Test string",
1454
+ targetingOptionId: "Test string",
1455
+ },
1456
+ browserDetails: {
1457
+ displayName: "Test string",
1458
+ negative: true,
1459
+ targetingOptionId: "Test string",
1460
+ },
1461
+ businessChainDetails: {
1462
+ displayName: "Test string",
1463
+ proximityRadiusAmount: 42,
1464
+ proximityRadiusUnit: "Test string",
1465
+ targetingOptionId: "Test string",
1466
+ },
1467
+ carrierAndIspDetails: {
1468
+ displayName: "Test string",
1469
+ negative: true,
1470
+ targetingOptionId: "Test string",
1471
+ },
1472
+ categoryDetails: {
1473
+ displayName: "Test string",
1474
+ negative: true,
1475
+ targetingOptionId: "Test string",
1476
+ },
1477
+ channelDetails: {
1478
+ channelId: "Test string",
1479
+ negative: true,
1480
+ },
1481
+ contentDurationDetails: {
1482
+ contentDuration: "Test string",
1483
+ targetingOptionId: "Test string",
1484
+ },
1485
+ contentGenreDetails: {
1486
+ displayName: "Test string",
1487
+ negative: true,
1488
+ targetingOptionId: "Test string",
1489
+ },
1490
+ contentInstreamPositionDetails: {
1491
+ adType: "Test string",
1492
+ contentInstreamPosition: "Test string",
1493
+ },
1494
+ contentOutstreamPositionDetails: {
1495
+ adType: "Test string",
1496
+ contentOutstreamPosition: "Test string",
1497
+ },
1498
+ contentStreamTypeDetails: {
1499
+ contentStreamType: "Test string",
1500
+ targetingOptionId: "Test string",
1501
+ },
1502
+ dayAndTimeDetails: {
1503
+ dayOfWeek: "Test string",
1504
+ endHour: 42,
1505
+ startHour: 42,
1506
+ timeZoneResolution: "Test string",
1507
+ },
1508
+ deviceMakeModelDetails: {
1509
+ displayName: "Test string",
1510
+ negative: true,
1511
+ targetingOptionId: "Test string",
1512
+ },
1513
+ deviceTypeDetails: {
1514
+ deviceType: "Test string",
1515
+ youtubeAndPartnersBidMultiplier: 42,
1516
+ },
1517
+ digitalContentLabelExclusionDetails: {
1518
+ excludedContentRatingTier: "Test string",
1519
+ },
1520
+ environmentDetails: {
1521
+ environment: "Test string",
1522
+ },
1523
+ exchangeDetails: {
1524
+ exchange: "Test string",
1525
+ },
1526
+ genderDetails: {
1527
+ gender: "Test string",
1528
+ },
1529
+ geoRegionDetails: {
1530
+ displayName: "Test string",
1531
+ geoRegionType: "Test string",
1532
+ negative: true,
1533
+ targetingOptionId: "Test string",
1534
+ },
1535
+ householdIncomeDetails: {
1536
+ householdIncome: "Test string",
1537
+ },
1538
+ inheritance: "Test string",
1539
+ inventorySourceDetails: {
1540
+ inventorySourceId: "Test string",
1541
+ },
1542
+ inventorySourceGroupDetails: {
1543
+ inventorySourceGroupId: "Test string",
1544
+ },
1545
+ keywordDetails: {
1546
+ keyword: "Test string",
1547
+ negative: true,
1548
+ },
1549
+ languageDetails: {
1550
+ displayName: "Test string",
1551
+ negative: true,
1552
+ targetingOptionId: "Test string",
1553
+ },
1554
+ name: "Test string",
1555
+ nativeContentPositionDetails: {
1556
+ contentPosition: "Test string",
1557
+ },
1558
+ negativeKeywordListDetails: {
1559
+ negativeKeywordListId: "Test string",
1560
+ },
1561
+ omidDetails: {
1562
+ omid: "Test string",
1563
+ },
1564
+ onScreenPositionDetails: {
1565
+ adType: "Test string",
1566
+ onScreenPosition: "Test string",
1567
+ targetingOptionId: "Test string",
1568
+ },
1569
+ operatingSystemDetails: {
1570
+ displayName: "Test string",
1571
+ negative: true,
1572
+ targetingOptionId: "Test string",
1573
+ },
1574
+ parentalStatusDetails: {
1575
+ parentalStatus: "Test string",
1576
+ },
1577
+ poiDetails: {
1578
+ displayName: "Test string",
1579
+ latitude: 42,
1580
+ longitude: 42,
1581
+ proximityRadiusAmount: 42,
1582
+ proximityRadiusUnit: "Test string",
1583
+ targetingOptionId: "Test string",
1584
+ },
1585
+ proximityLocationListDetails: {
1586
+ proximityLocationListId: "Test string",
1587
+ proximityRadius: 42,
1588
+ proximityRadiusUnit: "Test string",
1589
+ },
1590
+ regionalLocationListDetails: {
1591
+ negative: true,
1592
+ regionalLocationListId: "Test string",
1593
+ },
1594
+ sensitiveCategoryExclusionDetails: {
1595
+ excludedSensitiveCategory: "Test string",
1596
+ },
1597
+ subExchangeDetails: {
1598
+ targetingOptionId: "Test string",
1599
+ },
1600
+ targetingType: "Test string",
1601
+ thirdPartyVerifierDetails: {
1602
+ adloox: {
1603
+ excludedAdlooxCategories: [
1604
+ "Test string"
1605
+ ],
1606
+ },
1607
+ doubleVerify: {
1608
+ appStarRating: {
1609
+ avoidedStarRating: "Test string",
1610
+ avoidInsufficientStarRating: true,
1611
+ },
1612
+ avoidedAgeRatings: [
1613
+ "Test string"
1614
+ ],
1615
+ brandSafetyCategories: {
1616
+ avoidedHighSeverityCategories: [
1617
+ "Test string"
1618
+ ],
1619
+ avoidedMediumSeverityCategories: [
1620
+ "Test string"
1621
+ ],
1622
+ avoidUnknownBrandSafetyCategory: true,
1623
+ },
1624
+ customSegmentId: "Test string",
1625
+ displayViewability: {
1626
+ iab: "Test string",
1627
+ viewableDuring: "Test string",
1628
+ },
1629
+ fraudInvalidTraffic: {
1630
+ avoidedFraudOption: "Test string",
1631
+ avoidInsufficientOption: true,
1632
+ },
1633
+ videoViewability: {
1634
+ playerImpressionRate: "Test string",
1635
+ videoIab: "Test string",
1636
+ videoViewableRate: "Test string",
1637
+ },
1638
+ },
1639
+ integralAdScience: {
1640
+ customSegmentId: [
1641
+ "Test string"
1642
+ ],
1643
+ displayViewability: "Test string",
1644
+ excludedAdFraudRisk: "Test string",
1645
+ excludedAdultRisk: "Test string",
1646
+ excludedAlcoholRisk: "Test string",
1647
+ excludedDrugsRisk: "Test string",
1648
+ excludedGamblingRisk: "Test string",
1649
+ excludedHateSpeechRisk: "Test string",
1650
+ excludedIllegalDownloadsRisk: "Test string",
1651
+ excludedOffensiveLanguageRisk: "Test string",
1652
+ excludedViolenceRisk: "Test string",
1653
+ excludeUnrateable: true,
1654
+ traqScoreOption: "Test string",
1655
+ videoViewability: "Test string",
1656
+ },
1657
+ },
1658
+ urlDetails: {
1659
+ negative: true,
1660
+ url: "Test string",
1661
+ },
1662
+ userRewardedContentDetails: {
1663
+ targetingOptionId: "Test string",
1664
+ userRewardedContent: "Test string",
1665
+ },
1666
+ videoPlayerSizeDetails: {
1667
+ videoPlayerSize: "Test string",
1668
+ },
1669
+ viewabilityDetails: {
1670
+ viewability: "Test string",
1671
+ },
1672
+ }
1673
+ ],
1674
+ targetingType: "Test string",
1675
+ }
1676
+ ],
1677
+ deleteRequests: [
1678
+ {
1679
+ assignedTargetingOptionIds: [
1680
+ "Test string"
1681
+ ],
1682
+ targetingType: "Test string",
1683
+ }
1684
+ ],
1685
+ lineItemIds: [
1686
+ "Test string"
1687
+ ],
1688
+ });
1689
+ /** Lists assigned targeting options for multiple line items across targeting types. */
1690
+ await gapi.client.displayvideo.advertisers.lineItems.bulkListAssignedTargetingOptions({
1691
+ advertiserId: "Test string",
1692
+ filter: "Test string",
1693
+ lineItemIds: "Test string",
1694
+ orderBy: "Test string",
1695
+ pageSize: 42,
1696
+ pageToken: "Test string",
1697
+ });
1698
+ /** Updates multiple line items. */
1699
+ await gapi.client.displayvideo.advertisers.lineItems.bulkUpdate({
1700
+ advertisersId: "Test string",
1701
+ }, {
1702
+ lineItemIds: [
1703
+ "Test string"
1704
+ ],
1705
+ targetLineItem: {
1706
+ advertiserId: "Test string",
1707
+ bidStrategy: {
1708
+ fixedBid: {
1709
+ bidAmountMicros: "Test string",
1710
+ },
1711
+ maximizeSpendAutoBid: {
1712
+ customBiddingAlgorithmId: "Test string",
1713
+ maxAverageCpmBidAmountMicros: "Test string",
1714
+ performanceGoalType: "Test string",
1715
+ raiseBidForDeals: true,
1716
+ },
1717
+ performanceGoalAutoBid: {
1718
+ customBiddingAlgorithmId: "Test string",
1719
+ maxAverageCpmBidAmountMicros: "Test string",
1720
+ performanceGoalAmountMicros: "Test string",
1721
+ performanceGoalType: "Test string",
1722
+ },
1723
+ },
1724
+ budget: {
1725
+ budgetAllocationType: "Test string",
1726
+ budgetUnit: "Test string",
1727
+ maxAmount: "Test string",
1728
+ },
1729
+ campaignId: "Test string",
1730
+ conversionCounting: {
1731
+ floodlightActivityConfigs: [
1732
+ {
1733
+ floodlightActivityId: "Test string",
1734
+ postClickLookbackWindowDays: 42,
1735
+ postViewLookbackWindowDays: 42,
1736
+ }
1737
+ ],
1738
+ postViewCountPercentageMillis: "Test string",
1739
+ },
1740
+ creativeIds: [
1741
+ "Test string"
1742
+ ],
1743
+ displayName: "Test string",
1744
+ entityStatus: "Test string",
1745
+ excludeNewExchanges: true,
1746
+ flight: {
1747
+ dateRange: {
1748
+ endDate: {
1749
+ day: 42,
1750
+ month: 42,
1751
+ year: 42,
1752
+ },
1753
+ startDate: {
1754
+ day: 42,
1755
+ month: 42,
1756
+ year: 42,
1757
+ },
1758
+ },
1759
+ flightDateType: "Test string",
1760
+ },
1761
+ frequencyCap: {
1762
+ maxImpressions: 42,
1763
+ maxViews: 42,
1764
+ timeUnit: "Test string",
1765
+ timeUnitCount: 42,
1766
+ unlimited: true,
1767
+ },
1768
+ insertionOrderId: "Test string",
1769
+ integrationDetails: {
1770
+ details: "Test string",
1771
+ integrationCode: "Test string",
1772
+ },
1773
+ lineItemId: "Test string",
1774
+ lineItemType: "Test string",
1775
+ mobileApp: {
1776
+ appId: "Test string",
1777
+ displayName: "Test string",
1778
+ platform: "Test string",
1779
+ publisher: "Test string",
1780
+ },
1781
+ name: "Test string",
1782
+ pacing: {
1783
+ dailyMaxImpressions: "Test string",
1784
+ dailyMaxMicros: "Test string",
1785
+ pacingPeriod: "Test string",
1786
+ pacingType: "Test string",
1787
+ },
1788
+ partnerCosts: [
1789
+ {
1790
+ costType: "Test string",
1791
+ feeAmount: "Test string",
1792
+ feePercentageMillis: "Test string",
1793
+ feeType: "Test string",
1794
+ invoiceType: "Test string",
1795
+ }
1796
+ ],
1797
+ partnerRevenueModel: {
1798
+ markupAmount: "Test string",
1799
+ markupType: "Test string",
1800
+ },
1801
+ reservationType: "Test string",
1802
+ targetingExpansion: {
1803
+ excludeFirstPartyAudience: true,
1804
+ targetingExpansionLevel: "Test string",
1805
+ },
1806
+ updateTime: "Test string",
1807
+ warningMessages: [
1808
+ "Test string"
1809
+ ],
1810
+ youtubeAndPartnersSettings: {
1811
+ biddingStrategy: {
1812
+ type: "Test string",
1813
+ value: "Test string",
1814
+ },
1815
+ contentCategory: "Test string",
1816
+ inventorySourceSettings: {
1817
+ includeYoutubeSearch: true,
1818
+ includeYoutubeVideoPartners: true,
1819
+ includeYoutubeVideos: true,
1820
+ },
1821
+ thirdPartyMeasurementSettings: {
1822
+ brandLiftVendorConfigs: [
1823
+ {
1824
+ placementId: "Test string",
1825
+ vendor: "Test string",
1826
+ }
1827
+ ],
1828
+ brandSafetyVendorConfigs: [
1829
+ {
1830
+ placementId: "Test string",
1831
+ vendor: "Test string",
1832
+ }
1833
+ ],
1834
+ reachVendorConfigs: [
1835
+ {
1836
+ placementId: "Test string",
1837
+ vendor: "Test string",
1838
+ }
1839
+ ],
1840
+ viewabilityVendorConfigs: [
1841
+ {
1842
+ placementId: "Test string",
1843
+ vendor: "Test string",
1844
+ }
1845
+ ],
1846
+ },
1847
+ viewFrequencyCap: {
1848
+ maxImpressions: 42,
1849
+ maxViews: 42,
1850
+ timeUnit: "Test string",
1851
+ timeUnitCount: 42,
1852
+ unlimited: true,
1853
+ },
1854
+ },
1855
+ },
1856
+ updateMask: "Test string",
1857
+ });
1858
+ /** Creates a new line item. Returns the newly created line item if successful. */
1859
+ await gapi.client.displayvideo.advertisers.lineItems.create({
1860
+ advertiserId: "Test string",
1861
+ }, {
1862
+ advertiserId: "Test string",
1863
+ bidStrategy: {
1864
+ fixedBid: {
1865
+ bidAmountMicros: "Test string",
1866
+ },
1867
+ maximizeSpendAutoBid: {
1868
+ customBiddingAlgorithmId: "Test string",
1869
+ maxAverageCpmBidAmountMicros: "Test string",
1870
+ performanceGoalType: "Test string",
1871
+ raiseBidForDeals: true,
1872
+ },
1873
+ performanceGoalAutoBid: {
1874
+ customBiddingAlgorithmId: "Test string",
1875
+ maxAverageCpmBidAmountMicros: "Test string",
1876
+ performanceGoalAmountMicros: "Test string",
1877
+ performanceGoalType: "Test string",
1878
+ },
1879
+ },
1880
+ budget: {
1881
+ budgetAllocationType: "Test string",
1882
+ budgetUnit: "Test string",
1883
+ maxAmount: "Test string",
1884
+ },
1885
+ campaignId: "Test string",
1886
+ conversionCounting: {
1887
+ floodlightActivityConfigs: [
1888
+ {
1889
+ floodlightActivityId: "Test string",
1890
+ postClickLookbackWindowDays: 42,
1891
+ postViewLookbackWindowDays: 42,
1892
+ }
1893
+ ],
1894
+ postViewCountPercentageMillis: "Test string",
1895
+ },
1896
+ creativeIds: [
1897
+ "Test string"
1898
+ ],
1899
+ displayName: "Test string",
1900
+ entityStatus: "Test string",
1901
+ excludeNewExchanges: true,
1902
+ flight: {
1903
+ dateRange: {
1904
+ endDate: {
1905
+ day: 42,
1906
+ month: 42,
1907
+ year: 42,
1908
+ },
1909
+ startDate: {
1910
+ day: 42,
1911
+ month: 42,
1912
+ year: 42,
1913
+ },
1914
+ },
1915
+ flightDateType: "Test string",
1916
+ },
1917
+ frequencyCap: {
1918
+ maxImpressions: 42,
1919
+ maxViews: 42,
1920
+ timeUnit: "Test string",
1921
+ timeUnitCount: 42,
1922
+ unlimited: true,
1923
+ },
1924
+ insertionOrderId: "Test string",
1925
+ integrationDetails: {
1926
+ details: "Test string",
1927
+ integrationCode: "Test string",
1928
+ },
1929
+ lineItemId: "Test string",
1930
+ lineItemType: "Test string",
1931
+ mobileApp: {
1932
+ appId: "Test string",
1933
+ displayName: "Test string",
1934
+ platform: "Test string",
1935
+ publisher: "Test string",
1936
+ },
1937
+ name: "Test string",
1938
+ pacing: {
1939
+ dailyMaxImpressions: "Test string",
1940
+ dailyMaxMicros: "Test string",
1941
+ pacingPeriod: "Test string",
1942
+ pacingType: "Test string",
1943
+ },
1944
+ partnerCosts: [
1945
+ {
1946
+ costType: "Test string",
1947
+ feeAmount: "Test string",
1948
+ feePercentageMillis: "Test string",
1949
+ feeType: "Test string",
1950
+ invoiceType: "Test string",
1951
+ }
1952
+ ],
1953
+ partnerRevenueModel: {
1954
+ markupAmount: "Test string",
1955
+ markupType: "Test string",
1956
+ },
1957
+ reservationType: "Test string",
1958
+ targetingExpansion: {
1959
+ excludeFirstPartyAudience: true,
1960
+ targetingExpansionLevel: "Test string",
1961
+ },
1962
+ updateTime: "Test string",
1963
+ warningMessages: [
1964
+ "Test string"
1965
+ ],
1966
+ youtubeAndPartnersSettings: {
1967
+ biddingStrategy: {
1968
+ type: "Test string",
1969
+ value: "Test string",
1970
+ },
1971
+ contentCategory: "Test string",
1972
+ inventorySourceSettings: {
1973
+ includeYoutubeSearch: true,
1974
+ includeYoutubeVideoPartners: true,
1975
+ includeYoutubeVideos: true,
1976
+ },
1977
+ thirdPartyMeasurementSettings: {
1978
+ brandLiftVendorConfigs: [
1979
+ {
1980
+ placementId: "Test string",
1981
+ vendor: "Test string",
1982
+ }
1983
+ ],
1984
+ brandSafetyVendorConfigs: [
1985
+ {
1986
+ placementId: "Test string",
1987
+ vendor: "Test string",
1988
+ }
1989
+ ],
1990
+ reachVendorConfigs: [
1991
+ {
1992
+ placementId: "Test string",
1993
+ vendor: "Test string",
1994
+ }
1995
+ ],
1996
+ viewabilityVendorConfigs: [
1997
+ {
1998
+ placementId: "Test string",
1999
+ vendor: "Test string",
2000
+ }
2001
+ ],
2002
+ },
2003
+ viewFrequencyCap: {
2004
+ maxImpressions: 42,
2005
+ maxViews: 42,
2006
+ timeUnit: "Test string",
2007
+ timeUnitCount: 42,
2008
+ unlimited: true,
2009
+ },
2010
+ },
2011
+ });
2012
+ /**
2013
+ * Deletes a line item. Returns error code `NOT_FOUND` if the line item does not exist. The line item should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be
2014
+ * able to delete it.
2015
+ */
2016
+ await gapi.client.displayvideo.advertisers.lineItems.delete({
2017
+ advertiserId: "Test string",
2018
+ lineItemId: "Test string",
2019
+ });
2020
+ /**
2021
+ * Creates a new line item with settings (including targeting) inherited from the insertion order and an `ENTITY_STATUS_DRAFT` entity_status. Returns the newly created line item if
2022
+ * successful. There are default values based on the three fields: * The insertion order's insertion_order_type * The insertion order's automation_type * The given line_item_type
2023
+ */
2024
+ await gapi.client.displayvideo.advertisers.lineItems.generateDefault({
2025
+ advertiserId: "Test string",
2026
+ }, {
2027
+ displayName: "Test string",
2028
+ insertionOrderId: "Test string",
2029
+ lineItemType: "Test string",
2030
+ mobileApp: {
2031
+ appId: "Test string",
2032
+ displayName: "Test string",
2033
+ platform: "Test string",
2034
+ publisher: "Test string",
2035
+ },
2036
+ });
2037
+ /** Gets a line item. */
2038
+ await gapi.client.displayvideo.advertisers.lineItems.get({
2039
+ advertiserId: "Test string",
2040
+ lineItemId: "Test string",
2041
+ });
2042
+ /**
2043
+ * Lists line items in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, line items with `ENTITY_STATUS_ARCHIVED` will not be
2044
+ * included in the results.
2045
+ */
2046
+ await gapi.client.displayvideo.advertisers.lineItems.list({
2047
+ advertiserId: "Test string",
2048
+ filter: "Test string",
2049
+ orderBy: "Test string",
2050
+ pageSize: 42,
2051
+ pageToken: "Test string",
2052
+ });
2053
+ /**
2054
+ * Updates an existing line item. Returns the updated line item if successful. Requests to this endpoint cannot be made concurrently with the following requests updating the same line
2055
+ * item: * BulkEditLineItemAssignedTargetingOptions * UpdateLineItem * CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2056
+ */
2057
+ await gapi.client.displayvideo.advertisers.lineItems.patch({
2058
+ advertiserId: "Test string",
2059
+ lineItemId: "Test string",
2060
+ updateMask: "Test string",
2061
+ }, {
2062
+ advertiserId: "Test string",
2063
+ bidStrategy: {
2064
+ fixedBid: {
2065
+ bidAmountMicros: "Test string",
2066
+ },
2067
+ maximizeSpendAutoBid: {
2068
+ customBiddingAlgorithmId: "Test string",
2069
+ maxAverageCpmBidAmountMicros: "Test string",
2070
+ performanceGoalType: "Test string",
2071
+ raiseBidForDeals: true,
2072
+ },
2073
+ performanceGoalAutoBid: {
2074
+ customBiddingAlgorithmId: "Test string",
2075
+ maxAverageCpmBidAmountMicros: "Test string",
2076
+ performanceGoalAmountMicros: "Test string",
2077
+ performanceGoalType: "Test string",
2078
+ },
2079
+ },
2080
+ budget: {
2081
+ budgetAllocationType: "Test string",
2082
+ budgetUnit: "Test string",
2083
+ maxAmount: "Test string",
2084
+ },
2085
+ campaignId: "Test string",
2086
+ conversionCounting: {
2087
+ floodlightActivityConfigs: [
2088
+ {
2089
+ floodlightActivityId: "Test string",
2090
+ postClickLookbackWindowDays: 42,
2091
+ postViewLookbackWindowDays: 42,
2092
+ }
2093
+ ],
2094
+ postViewCountPercentageMillis: "Test string",
2095
+ },
2096
+ creativeIds: [
2097
+ "Test string"
2098
+ ],
2099
+ displayName: "Test string",
2100
+ entityStatus: "Test string",
2101
+ excludeNewExchanges: true,
2102
+ flight: {
2103
+ dateRange: {
2104
+ endDate: {
2105
+ day: 42,
2106
+ month: 42,
2107
+ year: 42,
2108
+ },
2109
+ startDate: {
2110
+ day: 42,
2111
+ month: 42,
2112
+ year: 42,
2113
+ },
2114
+ },
2115
+ flightDateType: "Test string",
2116
+ },
2117
+ frequencyCap: {
2118
+ maxImpressions: 42,
2119
+ maxViews: 42,
2120
+ timeUnit: "Test string",
2121
+ timeUnitCount: 42,
2122
+ unlimited: true,
2123
+ },
2124
+ insertionOrderId: "Test string",
2125
+ integrationDetails: {
2126
+ details: "Test string",
2127
+ integrationCode: "Test string",
2128
+ },
2129
+ lineItemId: "Test string",
2130
+ lineItemType: "Test string",
2131
+ mobileApp: {
2132
+ appId: "Test string",
2133
+ displayName: "Test string",
2134
+ platform: "Test string",
2135
+ publisher: "Test string",
2136
+ },
2137
+ name: "Test string",
2138
+ pacing: {
2139
+ dailyMaxImpressions: "Test string",
2140
+ dailyMaxMicros: "Test string",
2141
+ pacingPeriod: "Test string",
2142
+ pacingType: "Test string",
2143
+ },
2144
+ partnerCosts: [
2145
+ {
2146
+ costType: "Test string",
2147
+ feeAmount: "Test string",
2148
+ feePercentageMillis: "Test string",
2149
+ feeType: "Test string",
2150
+ invoiceType: "Test string",
2151
+ }
2152
+ ],
2153
+ partnerRevenueModel: {
2154
+ markupAmount: "Test string",
2155
+ markupType: "Test string",
2156
+ },
2157
+ reservationType: "Test string",
2158
+ targetingExpansion: {
2159
+ excludeFirstPartyAudience: true,
2160
+ targetingExpansionLevel: "Test string",
2161
+ },
2162
+ updateTime: "Test string",
2163
+ warningMessages: [
2164
+ "Test string"
2165
+ ],
2166
+ youtubeAndPartnersSettings: {
2167
+ biddingStrategy: {
2168
+ type: "Test string",
2169
+ value: "Test string",
2170
+ },
2171
+ contentCategory: "Test string",
2172
+ inventorySourceSettings: {
2173
+ includeYoutubeSearch: true,
2174
+ includeYoutubeVideoPartners: true,
2175
+ includeYoutubeVideos: true,
2176
+ },
2177
+ thirdPartyMeasurementSettings: {
2178
+ brandLiftVendorConfigs: [
2179
+ {
2180
+ placementId: "Test string",
2181
+ vendor: "Test string",
2182
+ }
2183
+ ],
2184
+ brandSafetyVendorConfigs: [
2185
+ {
2186
+ placementId: "Test string",
2187
+ vendor: "Test string",
2188
+ }
2189
+ ],
2190
+ reachVendorConfigs: [
2191
+ {
2192
+ placementId: "Test string",
2193
+ vendor: "Test string",
2194
+ }
2195
+ ],
2196
+ viewabilityVendorConfigs: [
2197
+ {
2198
+ placementId: "Test string",
2199
+ vendor: "Test string",
2200
+ }
2201
+ ],
2202
+ },
2203
+ viewFrequencyCap: {
2204
+ maxImpressions: 42,
2205
+ maxViews: 42,
2206
+ timeUnit: "Test string",
2207
+ timeUnitCount: 42,
2208
+ unlimited: true,
2209
+ },
2210
+ },
2211
+ });
2212
+ /**
2213
+ * Assigns a targeting option to a line item. Returns the assigned targeting option if successful. Requests to this endpoint cannot be made concurrently with the following requests
2214
+ * updating the same line item: * BulkEditLineItemAssignedTargetingOptions * UpdateLineItem * CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2215
+ */
2216
+ await gapi.client.displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.create({
2217
+ advertiserId: "Test string",
2218
+ lineItemId: "Test string",
2219
+ targetingType: "Test string",
2220
+ }, {
2221
+ ageRangeDetails: {
2222
+ ageRange: "Test string",
2223
+ },
2224
+ appCategoryDetails: {
2225
+ displayName: "Test string",
2226
+ negative: true,
2227
+ targetingOptionId: "Test string",
2228
+ },
2229
+ appDetails: {
2230
+ appId: "Test string",
2231
+ appPlatform: "Test string",
2232
+ displayName: "Test string",
2233
+ negative: true,
2234
+ },
2235
+ assignedTargetingOptionId: "Test string",
2236
+ audienceGroupDetails: {
2237
+ excludedFirstAndThirdPartyAudienceGroup: {
2238
+ settings: [
2239
+ {
2240
+ firstAndThirdPartyAudienceId: "Test string",
2241
+ recency: "Test string",
2242
+ }
2243
+ ],
2244
+ },
2245
+ excludedGoogleAudienceGroup: {
2246
+ settings: [
2247
+ {
2248
+ googleAudienceId: "Test string",
2249
+ }
2250
+ ],
2251
+ },
2252
+ includedCombinedAudienceGroup: {
2253
+ settings: [
2254
+ {
2255
+ combinedAudienceId: "Test string",
2256
+ }
2257
+ ],
2258
+ },
2259
+ includedCustomListGroup: {
2260
+ settings: [
2261
+ {
2262
+ customListId: "Test string",
2263
+ }
2264
+ ],
2265
+ },
2266
+ includedFirstAndThirdPartyAudienceGroups: [
2267
+ {
2268
+ settings: [
2269
+ {
2270
+ firstAndThirdPartyAudienceId: "Test string",
2271
+ recency: "Test string",
2272
+ }
2273
+ ],
2274
+ }
2275
+ ],
2276
+ includedGoogleAudienceGroup: {
2277
+ settings: [
2278
+ {
2279
+ googleAudienceId: "Test string",
2280
+ }
2281
+ ],
2282
+ },
2283
+ },
2284
+ audioContentTypeDetails: {
2285
+ audioContentType: "Test string",
2286
+ },
2287
+ authorizedSellerStatusDetails: {
2288
+ authorizedSellerStatus: "Test string",
2289
+ targetingOptionId: "Test string",
2290
+ },
2291
+ browserDetails: {
2292
+ displayName: "Test string",
2293
+ negative: true,
2294
+ targetingOptionId: "Test string",
2295
+ },
2296
+ businessChainDetails: {
2297
+ displayName: "Test string",
2298
+ proximityRadiusAmount: 42,
2299
+ proximityRadiusUnit: "Test string",
2300
+ targetingOptionId: "Test string",
2301
+ },
2302
+ carrierAndIspDetails: {
2303
+ displayName: "Test string",
2304
+ negative: true,
2305
+ targetingOptionId: "Test string",
2306
+ },
2307
+ categoryDetails: {
2308
+ displayName: "Test string",
2309
+ negative: true,
2310
+ targetingOptionId: "Test string",
2311
+ },
2312
+ channelDetails: {
2313
+ channelId: "Test string",
2314
+ negative: true,
2315
+ },
2316
+ contentDurationDetails: {
2317
+ contentDuration: "Test string",
2318
+ targetingOptionId: "Test string",
2319
+ },
2320
+ contentGenreDetails: {
2321
+ displayName: "Test string",
2322
+ negative: true,
2323
+ targetingOptionId: "Test string",
2324
+ },
2325
+ contentInstreamPositionDetails: {
2326
+ adType: "Test string",
2327
+ contentInstreamPosition: "Test string",
2328
+ },
2329
+ contentOutstreamPositionDetails: {
2330
+ adType: "Test string",
2331
+ contentOutstreamPosition: "Test string",
2332
+ },
2333
+ contentStreamTypeDetails: {
2334
+ contentStreamType: "Test string",
2335
+ targetingOptionId: "Test string",
2336
+ },
2337
+ dayAndTimeDetails: {
2338
+ dayOfWeek: "Test string",
2339
+ endHour: 42,
2340
+ startHour: 42,
2341
+ timeZoneResolution: "Test string",
2342
+ },
2343
+ deviceMakeModelDetails: {
2344
+ displayName: "Test string",
2345
+ negative: true,
2346
+ targetingOptionId: "Test string",
2347
+ },
2348
+ deviceTypeDetails: {
2349
+ deviceType: "Test string",
2350
+ youtubeAndPartnersBidMultiplier: 42,
2351
+ },
2352
+ digitalContentLabelExclusionDetails: {
2353
+ excludedContentRatingTier: "Test string",
2354
+ },
2355
+ environmentDetails: {
2356
+ environment: "Test string",
2357
+ },
2358
+ exchangeDetails: {
2359
+ exchange: "Test string",
2360
+ },
2361
+ genderDetails: {
2362
+ gender: "Test string",
2363
+ },
2364
+ geoRegionDetails: {
2365
+ displayName: "Test string",
2366
+ geoRegionType: "Test string",
2367
+ negative: true,
2368
+ targetingOptionId: "Test string",
2369
+ },
2370
+ householdIncomeDetails: {
2371
+ householdIncome: "Test string",
2372
+ },
2373
+ inheritance: "Test string",
2374
+ inventorySourceDetails: {
2375
+ inventorySourceId: "Test string",
2376
+ },
2377
+ inventorySourceGroupDetails: {
2378
+ inventorySourceGroupId: "Test string",
2379
+ },
2380
+ keywordDetails: {
2381
+ keyword: "Test string",
2382
+ negative: true,
2383
+ },
2384
+ languageDetails: {
2385
+ displayName: "Test string",
2386
+ negative: true,
2387
+ targetingOptionId: "Test string",
2388
+ },
2389
+ name: "Test string",
2390
+ nativeContentPositionDetails: {
2391
+ contentPosition: "Test string",
2392
+ },
2393
+ negativeKeywordListDetails: {
2394
+ negativeKeywordListId: "Test string",
2395
+ },
2396
+ omidDetails: {
2397
+ omid: "Test string",
2398
+ },
2399
+ onScreenPositionDetails: {
2400
+ adType: "Test string",
2401
+ onScreenPosition: "Test string",
2402
+ targetingOptionId: "Test string",
2403
+ },
2404
+ operatingSystemDetails: {
2405
+ displayName: "Test string",
2406
+ negative: true,
2407
+ targetingOptionId: "Test string",
2408
+ },
2409
+ parentalStatusDetails: {
2410
+ parentalStatus: "Test string",
2411
+ },
2412
+ poiDetails: {
2413
+ displayName: "Test string",
2414
+ latitude: 42,
2415
+ longitude: 42,
2416
+ proximityRadiusAmount: 42,
2417
+ proximityRadiusUnit: "Test string",
2418
+ targetingOptionId: "Test string",
2419
+ },
2420
+ proximityLocationListDetails: {
2421
+ proximityLocationListId: "Test string",
2422
+ proximityRadius: 42,
2423
+ proximityRadiusUnit: "Test string",
2424
+ },
2425
+ regionalLocationListDetails: {
2426
+ negative: true,
2427
+ regionalLocationListId: "Test string",
2428
+ },
2429
+ sensitiveCategoryExclusionDetails: {
2430
+ excludedSensitiveCategory: "Test string",
2431
+ },
2432
+ subExchangeDetails: {
2433
+ targetingOptionId: "Test string",
2434
+ },
2435
+ targetingType: "Test string",
2436
+ thirdPartyVerifierDetails: {
2437
+ adloox: {
2438
+ excludedAdlooxCategories: [
2439
+ "Test string"
2440
+ ],
2441
+ },
2442
+ doubleVerify: {
2443
+ appStarRating: {
2444
+ avoidedStarRating: "Test string",
2445
+ avoidInsufficientStarRating: true,
2446
+ },
2447
+ avoidedAgeRatings: [
2448
+ "Test string"
2449
+ ],
2450
+ brandSafetyCategories: {
2451
+ avoidedHighSeverityCategories: [
2452
+ "Test string"
2453
+ ],
2454
+ avoidedMediumSeverityCategories: [
2455
+ "Test string"
2456
+ ],
2457
+ avoidUnknownBrandSafetyCategory: true,
2458
+ },
2459
+ customSegmentId: "Test string",
2460
+ displayViewability: {
2461
+ iab: "Test string",
2462
+ viewableDuring: "Test string",
2463
+ },
2464
+ fraudInvalidTraffic: {
2465
+ avoidedFraudOption: "Test string",
2466
+ avoidInsufficientOption: true,
2467
+ },
2468
+ videoViewability: {
2469
+ playerImpressionRate: "Test string",
2470
+ videoIab: "Test string",
2471
+ videoViewableRate: "Test string",
2472
+ },
2473
+ },
2474
+ integralAdScience: {
2475
+ customSegmentId: [
2476
+ "Test string"
2477
+ ],
2478
+ displayViewability: "Test string",
2479
+ excludedAdFraudRisk: "Test string",
2480
+ excludedAdultRisk: "Test string",
2481
+ excludedAlcoholRisk: "Test string",
2482
+ excludedDrugsRisk: "Test string",
2483
+ excludedGamblingRisk: "Test string",
2484
+ excludedHateSpeechRisk: "Test string",
2485
+ excludedIllegalDownloadsRisk: "Test string",
2486
+ excludedOffensiveLanguageRisk: "Test string",
2487
+ excludedViolenceRisk: "Test string",
2488
+ excludeUnrateable: true,
2489
+ traqScoreOption: "Test string",
2490
+ videoViewability: "Test string",
2491
+ },
2492
+ },
2493
+ urlDetails: {
2494
+ negative: true,
2495
+ url: "Test string",
2496
+ },
2497
+ userRewardedContentDetails: {
2498
+ targetingOptionId: "Test string",
2499
+ userRewardedContent: "Test string",
2500
+ },
2501
+ videoPlayerSizeDetails: {
2502
+ videoPlayerSize: "Test string",
2503
+ },
2504
+ viewabilityDetails: {
2505
+ viewability: "Test string",
2506
+ },
2507
+ });
2508
+ /**
2509
+ * Deletes an assigned targeting option from a line item. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: *
2510
+ * BulkEditLineItemAssignedTargetingOptions * UpdateLineItem * CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2511
+ */
2512
+ await gapi.client.displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.delete({
2513
+ advertiserId: "Test string",
2514
+ assignedTargetingOptionId: "Test string",
2515
+ lineItemId: "Test string",
2516
+ targetingType: "Test string",
2517
+ });
2518
+ /** Gets a single targeting option assigned to a line item. */
2519
+ await gapi.client.displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.get({
2520
+ advertiserId: "Test string",
2521
+ assignedTargetingOptionId: "Test string",
2522
+ lineItemId: "Test string",
2523
+ targetingType: "Test string",
2524
+ });
2525
+ /** Lists the targeting options assigned to a line item. */
2526
+ await gapi.client.displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list({
2527
+ advertiserId: "Test string",
2528
+ filter: "Test string",
2529
+ lineItemId: "Test string",
2530
+ orderBy: "Test string",
2531
+ pageSize: 42,
2532
+ pageToken: "Test string",
2533
+ targetingType: "Test string",
2534
+ });
2535
+ /** Creates a new location list. Returns the newly created location list if successful. */
2536
+ await gapi.client.displayvideo.advertisers.locationLists.create({
2537
+ advertiserId: "Test string",
2538
+ }, {
2539
+ advertiserId: "Test string",
2540
+ displayName: "Test string",
2541
+ locationListId: "Test string",
2542
+ locationType: "Test string",
2543
+ name: "Test string",
2544
+ });
2545
+ /** Gets a location list. */
2546
+ await gapi.client.displayvideo.advertisers.locationLists.get({
2547
+ advertiserId: "Test string",
2548
+ locationListId: "Test string",
2549
+ });
2550
+ /** Lists location lists based on a given advertiser id. */
2551
+ await gapi.client.displayvideo.advertisers.locationLists.list({
2552
+ advertiserId: "Test string",
2553
+ filter: "Test string",
2554
+ orderBy: "Test string",
2555
+ pageSize: 42,
2556
+ pageToken: "Test string",
2557
+ });
2558
+ /** Updates a location list. Returns the updated location list if successful. */
2559
+ await gapi.client.displayvideo.advertisers.locationLists.patch({
2560
+ advertiserId: "Test string",
2561
+ locationListId: "Test string",
2562
+ updateMask: "Test string",
2563
+ }, {
2564
+ advertiserId: "Test string",
2565
+ displayName: "Test string",
2566
+ locationListId: "Test string",
2567
+ locationType: "Test string",
2568
+ name: "Test string",
2569
+ });
2570
+ /**
2571
+ * Bulk edits multiple assignments between locations and a single location list. The operation will delete the assigned locations provided in
2572
+ * BulkEditAssignedLocationsRequest.deleted_assigned_locations and then create the assigned locations provided in BulkEditAssignedLocationsRequest.created_assigned_locations.
2573
+ */
2574
+ await gapi.client.displayvideo.advertisers.locationLists.assignedLocations.bulkEdit({
2575
+ advertiserId: "Test string",
2576
+ locationListId: "Test string",
2577
+ }, {
2578
+ createdAssignedLocations: [
2579
+ {
2580
+ assignedLocationId: "Test string",
2581
+ name: "Test string",
2582
+ targetingOptionId: "Test string",
2583
+ }
2584
+ ],
2585
+ deletedAssignedLocations: [
2586
+ "Test string"
2587
+ ],
2588
+ });
2589
+ /** Creates an assignment between a location and a location list. */
2590
+ await gapi.client.displayvideo.advertisers.locationLists.assignedLocations.create({
2591
+ advertiserId: "Test string",
2592
+ locationListId: "Test string",
2593
+ }, {
2594
+ assignedLocationId: "Test string",
2595
+ name: "Test string",
2596
+ targetingOptionId: "Test string",
2597
+ });
2598
+ /** Deletes the assignment between a location and a location list. */
2599
+ await gapi.client.displayvideo.advertisers.locationLists.assignedLocations.delete({
2600
+ advertiserId: "Test string",
2601
+ assignedLocationId: "Test string",
2602
+ locationListId: "Test string",
2603
+ });
2604
+ /** Lists locations assigned to a location list. */
2605
+ await gapi.client.displayvideo.advertisers.locationLists.assignedLocations.list({
2606
+ advertiserId: "Test string",
2607
+ filter: "Test string",
2608
+ locationListId: "Test string",
2609
+ orderBy: "Test string",
2610
+ pageSize: 42,
2611
+ pageToken: "Test string",
2612
+ });
2613
+ /** Activates a manual trigger. Each activation of the manual trigger must be at least 5 minutes apart, otherwise an error will be returned. */
2614
+ await gapi.client.displayvideo.advertisers.manualTriggers.activate({
2615
+ advertiserId: "Test string",
2616
+ triggerId: "Test string",
2617
+ }, {
2618
+ });
2619
+ /** Creates a new manual trigger. Returns the newly created manual trigger if successful. */
2620
+ await gapi.client.displayvideo.advertisers.manualTriggers.create({
2621
+ advertiserId: "Test string",
2622
+ }, {
2623
+ activationDurationMinutes: "Test string",
2624
+ advertiserId: "Test string",
2625
+ displayName: "Test string",
2626
+ latestActivationTime: "Test string",
2627
+ name: "Test string",
2628
+ state: "Test string",
2629
+ triggerId: "Test string",
2630
+ });
2631
+ /** Deactivates a manual trigger. */
2632
+ await gapi.client.displayvideo.advertisers.manualTriggers.deactivate({
2633
+ advertiserId: "Test string",
2634
+ triggerId: "Test string",
2635
+ }, {
2636
+ });
2637
+ /** Gets a manual trigger. */
2638
+ await gapi.client.displayvideo.advertisers.manualTriggers.get({
2639
+ advertiserId: "Test string",
2640
+ triggerId: "Test string",
2641
+ });
2642
+ /** Lists manual triggers that are accessible to the current user for a given advertiser ID. The order is defined by the order_by parameter. A single advertiser_id is required. */
2643
+ await gapi.client.displayvideo.advertisers.manualTriggers.list({
2644
+ advertiserId: "Test string",
2645
+ filter: "Test string",
2646
+ orderBy: "Test string",
2647
+ pageSize: 42,
2648
+ pageToken: "Test string",
2649
+ });
2650
+ /** Updates a manual trigger. Returns the updated manual trigger if successful. */
2651
+ await gapi.client.displayvideo.advertisers.manualTriggers.patch({
2652
+ advertiserId: "Test string",
2653
+ triggerId: "Test string",
2654
+ updateMask: "Test string",
2655
+ }, {
2656
+ activationDurationMinutes: "Test string",
2657
+ advertiserId: "Test string",
2658
+ displayName: "Test string",
2659
+ latestActivationTime: "Test string",
2660
+ name: "Test string",
2661
+ state: "Test string",
2662
+ triggerId: "Test string",
2663
+ });
2664
+ /** Creates a new negative keyword list. Returns the newly created negative keyword list if successful. */
2665
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.create({
2666
+ advertiserId: "Test string",
2667
+ }, {
2668
+ advertiserId: "Test string",
2669
+ displayName: "Test string",
2670
+ name: "Test string",
2671
+ negativeKeywordListId: "Test string",
2672
+ targetedLineItemCount: "Test string",
2673
+ });
2674
+ /** Deletes a negative keyword list given an advertiser ID and a negative keyword list ID. */
2675
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.delete({
2676
+ advertiserId: "Test string",
2677
+ negativeKeywordListId: "Test string",
2678
+ });
2679
+ /** Gets a negative keyword list given an advertiser ID and a negative keyword list ID. */
2680
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.get({
2681
+ advertiserId: "Test string",
2682
+ negativeKeywordListId: "Test string",
2683
+ });
2684
+ /** Lists negative keyword lists based on a given advertiser id. */
2685
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.list({
2686
+ advertiserId: "Test string",
2687
+ pageSize: 42,
2688
+ pageToken: "Test string",
2689
+ });
2690
+ /** Updates a negative keyword list. Returns the updated negative keyword list if successful. */
2691
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.patch({
2692
+ advertiserId: "Test string",
2693
+ negativeKeywordListId: "Test string",
2694
+ updateMask: "Test string",
2695
+ }, {
2696
+ advertiserId: "Test string",
2697
+ displayName: "Test string",
2698
+ name: "Test string",
2699
+ negativeKeywordListId: "Test string",
2700
+ targetedLineItemCount: "Test string",
2701
+ });
2702
+ /**
2703
+ * Bulk edits negative keywords in a single negative keyword list. The operation will delete the negative keywords provided in BulkEditNegativeKeywordsRequest.deleted_negative_keywords and
2704
+ * then create the negative keywords provided in BulkEditNegativeKeywordsRequest.created_negative_keywords. This operation is guaranteed to be atomic and will never result in a partial
2705
+ * success or partial failure.
2706
+ */
2707
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.negativeKeywords.bulkEdit({
2708
+ advertiserId: "Test string",
2709
+ negativeKeywordListId: "Test string",
2710
+ }, {
2711
+ createdNegativeKeywords: [
2712
+ {
2713
+ keywordValue: "Test string",
2714
+ name: "Test string",
2715
+ }
2716
+ ],
2717
+ deletedNegativeKeywords: [
2718
+ "Test string"
2719
+ ],
2720
+ });
2721
+ /** Creates a negative keyword in a negative keyword list. */
2722
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.negativeKeywords.create({
2723
+ advertiserId: "Test string",
2724
+ negativeKeywordListId: "Test string",
2725
+ }, {
2726
+ keywordValue: "Test string",
2727
+ name: "Test string",
2728
+ });
2729
+ /** Deletes a negative keyword from a negative keyword list. */
2730
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.negativeKeywords.delete({
2731
+ advertiserId: "Test string",
2732
+ keywordValue: "Test string",
2733
+ negativeKeywordListId: "Test string",
2734
+ });
2735
+ /** Lists negative keywords in a negative keyword list. */
2736
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.negativeKeywords.list({
2737
+ advertiserId: "Test string",
2738
+ filter: "Test string",
2739
+ negativeKeywordListId: "Test string",
2740
+ orderBy: "Test string",
2741
+ pageSize: 42,
2742
+ pageToken: "Test string",
2743
+ });
2744
+ /**
2745
+ * Replaces all negative keywords in a single negative keyword list. The operation will replace the keywords in a negative keyword list with keywords provided in
2746
+ * ReplaceNegativeKeywordsRequest.new_negative_keywords.
2747
+ */
2748
+ await gapi.client.displayvideo.advertisers.negativeKeywordLists.negativeKeywords.replace({
2749
+ advertiserId: "Test string",
2750
+ negativeKeywordListId: "Test string",
2751
+ }, {
2752
+ newNegativeKeywords: [
2753
+ {
2754
+ keywordValue: "Test string",
2755
+ name: "Test string",
2756
+ }
2757
+ ],
2758
+ });
2759
+ /** Assigns a targeting option to an advertiser. Returns the assigned targeting option if successful. */
2760
+ await gapi.client.displayvideo.advertisers.targetingTypes.assignedTargetingOptions.create({
2761
+ advertiserId: "Test string",
2762
+ targetingType: "Test string",
2763
+ }, {
2764
+ ageRangeDetails: {
2765
+ ageRange: "Test string",
2766
+ },
2767
+ appCategoryDetails: {
2768
+ displayName: "Test string",
2769
+ negative: true,
2770
+ targetingOptionId: "Test string",
2771
+ },
2772
+ appDetails: {
2773
+ appId: "Test string",
2774
+ appPlatform: "Test string",
2775
+ displayName: "Test string",
2776
+ negative: true,
2777
+ },
2778
+ assignedTargetingOptionId: "Test string",
2779
+ audienceGroupDetails: {
2780
+ excludedFirstAndThirdPartyAudienceGroup: {
2781
+ settings: [
2782
+ {
2783
+ firstAndThirdPartyAudienceId: "Test string",
2784
+ recency: "Test string",
2785
+ }
2786
+ ],
2787
+ },
2788
+ excludedGoogleAudienceGroup: {
2789
+ settings: [
2790
+ {
2791
+ googleAudienceId: "Test string",
2792
+ }
2793
+ ],
2794
+ },
2795
+ includedCombinedAudienceGroup: {
2796
+ settings: [
2797
+ {
2798
+ combinedAudienceId: "Test string",
2799
+ }
2800
+ ],
2801
+ },
2802
+ includedCustomListGroup: {
2803
+ settings: [
2804
+ {
2805
+ customListId: "Test string",
2806
+ }
2807
+ ],
2808
+ },
2809
+ includedFirstAndThirdPartyAudienceGroups: [
2810
+ {
2811
+ settings: [
2812
+ {
2813
+ firstAndThirdPartyAudienceId: "Test string",
2814
+ recency: "Test string",
2815
+ }
2816
+ ],
2817
+ }
2818
+ ],
2819
+ includedGoogleAudienceGroup: {
2820
+ settings: [
2821
+ {
2822
+ googleAudienceId: "Test string",
2823
+ }
2824
+ ],
2825
+ },
2826
+ },
2827
+ audioContentTypeDetails: {
2828
+ audioContentType: "Test string",
2829
+ },
2830
+ authorizedSellerStatusDetails: {
2831
+ authorizedSellerStatus: "Test string",
2832
+ targetingOptionId: "Test string",
2833
+ },
2834
+ browserDetails: {
2835
+ displayName: "Test string",
2836
+ negative: true,
2837
+ targetingOptionId: "Test string",
2838
+ },
2839
+ businessChainDetails: {
2840
+ displayName: "Test string",
2841
+ proximityRadiusAmount: 42,
2842
+ proximityRadiusUnit: "Test string",
2843
+ targetingOptionId: "Test string",
2844
+ },
2845
+ carrierAndIspDetails: {
2846
+ displayName: "Test string",
2847
+ negative: true,
2848
+ targetingOptionId: "Test string",
2849
+ },
2850
+ categoryDetails: {
2851
+ displayName: "Test string",
2852
+ negative: true,
2853
+ targetingOptionId: "Test string",
2854
+ },
2855
+ channelDetails: {
2856
+ channelId: "Test string",
2857
+ negative: true,
2858
+ },
2859
+ contentDurationDetails: {
2860
+ contentDuration: "Test string",
2861
+ targetingOptionId: "Test string",
2862
+ },
2863
+ contentGenreDetails: {
2864
+ displayName: "Test string",
2865
+ negative: true,
2866
+ targetingOptionId: "Test string",
2867
+ },
2868
+ contentInstreamPositionDetails: {
2869
+ adType: "Test string",
2870
+ contentInstreamPosition: "Test string",
2871
+ },
2872
+ contentOutstreamPositionDetails: {
2873
+ adType: "Test string",
2874
+ contentOutstreamPosition: "Test string",
2875
+ },
2876
+ contentStreamTypeDetails: {
2877
+ contentStreamType: "Test string",
2878
+ targetingOptionId: "Test string",
2879
+ },
2880
+ dayAndTimeDetails: {
2881
+ dayOfWeek: "Test string",
2882
+ endHour: 42,
2883
+ startHour: 42,
2884
+ timeZoneResolution: "Test string",
2885
+ },
2886
+ deviceMakeModelDetails: {
2887
+ displayName: "Test string",
2888
+ negative: true,
2889
+ targetingOptionId: "Test string",
2890
+ },
2891
+ deviceTypeDetails: {
2892
+ deviceType: "Test string",
2893
+ youtubeAndPartnersBidMultiplier: 42,
2894
+ },
2895
+ digitalContentLabelExclusionDetails: {
2896
+ excludedContentRatingTier: "Test string",
2897
+ },
2898
+ environmentDetails: {
2899
+ environment: "Test string",
2900
+ },
2901
+ exchangeDetails: {
2902
+ exchange: "Test string",
2903
+ },
2904
+ genderDetails: {
2905
+ gender: "Test string",
2906
+ },
2907
+ geoRegionDetails: {
2908
+ displayName: "Test string",
2909
+ geoRegionType: "Test string",
2910
+ negative: true,
2911
+ targetingOptionId: "Test string",
2912
+ },
2913
+ householdIncomeDetails: {
2914
+ householdIncome: "Test string",
2915
+ },
2916
+ inheritance: "Test string",
2917
+ inventorySourceDetails: {
2918
+ inventorySourceId: "Test string",
2919
+ },
2920
+ inventorySourceGroupDetails: {
2921
+ inventorySourceGroupId: "Test string",
2922
+ },
2923
+ keywordDetails: {
2924
+ keyword: "Test string",
2925
+ negative: true,
2926
+ },
2927
+ languageDetails: {
2928
+ displayName: "Test string",
2929
+ negative: true,
2930
+ targetingOptionId: "Test string",
2931
+ },
2932
+ name: "Test string",
2933
+ nativeContentPositionDetails: {
2934
+ contentPosition: "Test string",
2935
+ },
2936
+ negativeKeywordListDetails: {
2937
+ negativeKeywordListId: "Test string",
2938
+ },
2939
+ omidDetails: {
2940
+ omid: "Test string",
2941
+ },
2942
+ onScreenPositionDetails: {
2943
+ adType: "Test string",
2944
+ onScreenPosition: "Test string",
2945
+ targetingOptionId: "Test string",
2946
+ },
2947
+ operatingSystemDetails: {
2948
+ displayName: "Test string",
2949
+ negative: true,
2950
+ targetingOptionId: "Test string",
2951
+ },
2952
+ parentalStatusDetails: {
2953
+ parentalStatus: "Test string",
2954
+ },
2955
+ poiDetails: {
2956
+ displayName: "Test string",
2957
+ latitude: 42,
2958
+ longitude: 42,
2959
+ proximityRadiusAmount: 42,
2960
+ proximityRadiusUnit: "Test string",
2961
+ targetingOptionId: "Test string",
2962
+ },
2963
+ proximityLocationListDetails: {
2964
+ proximityLocationListId: "Test string",
2965
+ proximityRadius: 42,
2966
+ proximityRadiusUnit: "Test string",
2967
+ },
2968
+ regionalLocationListDetails: {
2969
+ negative: true,
2970
+ regionalLocationListId: "Test string",
2971
+ },
2972
+ sensitiveCategoryExclusionDetails: {
2973
+ excludedSensitiveCategory: "Test string",
2974
+ },
2975
+ subExchangeDetails: {
2976
+ targetingOptionId: "Test string",
2977
+ },
2978
+ targetingType: "Test string",
2979
+ thirdPartyVerifierDetails: {
2980
+ adloox: {
2981
+ excludedAdlooxCategories: [
2982
+ "Test string"
2983
+ ],
2984
+ },
2985
+ doubleVerify: {
2986
+ appStarRating: {
2987
+ avoidedStarRating: "Test string",
2988
+ avoidInsufficientStarRating: true,
2989
+ },
2990
+ avoidedAgeRatings: [
2991
+ "Test string"
2992
+ ],
2993
+ brandSafetyCategories: {
2994
+ avoidedHighSeverityCategories: [
2995
+ "Test string"
2996
+ ],
2997
+ avoidedMediumSeverityCategories: [
2998
+ "Test string"
2999
+ ],
3000
+ avoidUnknownBrandSafetyCategory: true,
3001
+ },
3002
+ customSegmentId: "Test string",
3003
+ displayViewability: {
3004
+ iab: "Test string",
3005
+ viewableDuring: "Test string",
3006
+ },
3007
+ fraudInvalidTraffic: {
3008
+ avoidedFraudOption: "Test string",
3009
+ avoidInsufficientOption: true,
3010
+ },
3011
+ videoViewability: {
3012
+ playerImpressionRate: "Test string",
3013
+ videoIab: "Test string",
3014
+ videoViewableRate: "Test string",
3015
+ },
3016
+ },
3017
+ integralAdScience: {
3018
+ customSegmentId: [
3019
+ "Test string"
3020
+ ],
3021
+ displayViewability: "Test string",
3022
+ excludedAdFraudRisk: "Test string",
3023
+ excludedAdultRisk: "Test string",
3024
+ excludedAlcoholRisk: "Test string",
3025
+ excludedDrugsRisk: "Test string",
3026
+ excludedGamblingRisk: "Test string",
3027
+ excludedHateSpeechRisk: "Test string",
3028
+ excludedIllegalDownloadsRisk: "Test string",
3029
+ excludedOffensiveLanguageRisk: "Test string",
3030
+ excludedViolenceRisk: "Test string",
3031
+ excludeUnrateable: true,
3032
+ traqScoreOption: "Test string",
3033
+ videoViewability: "Test string",
3034
+ },
3035
+ },
3036
+ urlDetails: {
3037
+ negative: true,
3038
+ url: "Test string",
3039
+ },
3040
+ userRewardedContentDetails: {
3041
+ targetingOptionId: "Test string",
3042
+ userRewardedContent: "Test string",
3043
+ },
3044
+ videoPlayerSizeDetails: {
3045
+ videoPlayerSize: "Test string",
3046
+ },
3047
+ viewabilityDetails: {
3048
+ viewability: "Test string",
3049
+ },
3050
+ });
3051
+ /** Deletes an assigned targeting option from an advertiser. */
3052
+ await gapi.client.displayvideo.advertisers.targetingTypes.assignedTargetingOptions.delete({
3053
+ advertiserId: "Test string",
3054
+ assignedTargetingOptionId: "Test string",
3055
+ targetingType: "Test string",
3056
+ });
3057
+ /** Gets a single targeting option assigned to an advertiser. */
3058
+ await gapi.client.displayvideo.advertisers.targetingTypes.assignedTargetingOptions.get({
3059
+ advertiserId: "Test string",
3060
+ assignedTargetingOptionId: "Test string",
3061
+ targetingType: "Test string",
3062
+ });
3063
+ /** Lists the targeting options assigned to an advertiser. */
3064
+ await gapi.client.displayvideo.advertisers.targetingTypes.assignedTargetingOptions.list({
3065
+ advertiserId: "Test string",
3066
+ filter: "Test string",
3067
+ orderBy: "Test string",
3068
+ pageSize: 42,
3069
+ pageToken: "Test string",
3070
+ targetingType: "Test string",
3071
+ });
3072
+ /** Gets a combined audience. */
3073
+ await gapi.client.displayvideo.combinedAudiences.get({
3074
+ advertiserId: "Test string",
3075
+ combinedAudienceId: "Test string",
3076
+ partnerId: "Test string",
3077
+ });
3078
+ /** Lists combined audiences. The order is defined by the order_by parameter. */
3079
+ await gapi.client.displayvideo.combinedAudiences.list({
3080
+ advertiserId: "Test string",
3081
+ filter: "Test string",
3082
+ orderBy: "Test string",
3083
+ pageSize: 42,
3084
+ pageToken: "Test string",
3085
+ partnerId: "Test string",
3086
+ });
3087
+ /** Creates a new custom bidding algorithm. Returns the newly created custom bidding algorithm if successful. */
3088
+ await gapi.client.displayvideo.customBiddingAlgorithms.create({
3089
+ }, {
3090
+ advertiserId: "Test string",
3091
+ customBiddingAlgorithmId: "Test string",
3092
+ customBiddingAlgorithmType: "Test string",
3093
+ displayName: "Test string",
3094
+ entityStatus: "Test string",
3095
+ modelDetails: [
3096
+ {
3097
+ advertiserId: "Test string",
3098
+ readinessState: "Test string",
3099
+ suspensionState: "Test string",
3100
+ }
3101
+ ],
3102
+ name: "Test string",
3103
+ partnerId: "Test string",
3104
+ sharedAdvertiserIds: [
3105
+ "Test string"
3106
+ ],
3107
+ });
3108
+ /** Gets a custom bidding algorithm. */
3109
+ await gapi.client.displayvideo.customBiddingAlgorithms.get({
3110
+ advertiserId: "Test string",
3111
+ customBiddingAlgorithmId: "Test string",
3112
+ partnerId: "Test string",
3113
+ });
3114
+ /** Lists custom bidding algorithms that are accessible to the current user and can be used in bidding stratgies. The order is defined by the order_by parameter. */
3115
+ await gapi.client.displayvideo.customBiddingAlgorithms.list({
3116
+ advertiserId: "Test string",
3117
+ filter: "Test string",
3118
+ orderBy: "Test string",
3119
+ pageSize: 42,
3120
+ pageToken: "Test string",
3121
+ partnerId: "Test string",
3122
+ });
3123
+ /** Updates an existing custom bidding algorithm. Returns the updated custom bidding algorithm if successful. */
3124
+ await gapi.client.displayvideo.customBiddingAlgorithms.patch({
3125
+ customBiddingAlgorithmId: "Test string",
3126
+ updateMask: "Test string",
3127
+ }, {
3128
+ advertiserId: "Test string",
3129
+ customBiddingAlgorithmId: "Test string",
3130
+ customBiddingAlgorithmType: "Test string",
3131
+ displayName: "Test string",
3132
+ entityStatus: "Test string",
3133
+ modelDetails: [
3134
+ {
3135
+ advertiserId: "Test string",
3136
+ readinessState: "Test string",
3137
+ suspensionState: "Test string",
3138
+ }
3139
+ ],
3140
+ name: "Test string",
3141
+ partnerId: "Test string",
3142
+ sharedAdvertiserIds: [
3143
+ "Test string"
3144
+ ],
3145
+ });
3146
+ /**
3147
+ * Creates a custom bidding script reference object for a script file. The resulting reference object provides a resource path to which the script file should be uploaded. This reference
3148
+ * object should be included in when creating a new custom bidding script object.
3149
+ */
3150
+ await gapi.client.displayvideo.customBiddingAlgorithms.uploadScript({
3151
+ advertiserId: "Test string",
3152
+ customBiddingAlgorithmId: "Test string",
3153
+ partnerId: "Test string",
3154
+ });
3155
+ /** Creates a new custom bidding script. Returns the newly created script if successful. */
3156
+ await gapi.client.displayvideo.customBiddingAlgorithms.scripts.create({
3157
+ advertiserId: "Test string",
3158
+ customBiddingAlgorithmId: "Test string",
3159
+ partnerId: "Test string",
3160
+ }, {
3161
+ active: true,
3162
+ createTime: "Test string",
3163
+ customBiddingAlgorithmId: "Test string",
3164
+ customBiddingScriptId: "Test string",
3165
+ errors: [
3166
+ {
3167
+ column: "Test string",
3168
+ errorCode: "Test string",
3169
+ errorMessage: "Test string",
3170
+ line: "Test string",
3171
+ }
3172
+ ],
3173
+ name: "Test string",
3174
+ script: {
3175
+ resourceName: "Test string",
3176
+ },
3177
+ state: "Test string",
3178
+ });
3179
+ /** Gets a custom bidding script. */
3180
+ await gapi.client.displayvideo.customBiddingAlgorithms.scripts.get({
3181
+ advertiserId: "Test string",
3182
+ customBiddingAlgorithmId: "Test string",
3183
+ customBiddingScriptId: "Test string",
3184
+ partnerId: "Test string",
3185
+ });
3186
+ /** Lists custom bidding scripts that belong to the given algorithm. The order is defined by the order_by parameter. */
3187
+ await gapi.client.displayvideo.customBiddingAlgorithms.scripts.list({
3188
+ advertiserId: "Test string",
3189
+ customBiddingAlgorithmId: "Test string",
3190
+ orderBy: "Test string",
3191
+ pageSize: 42,
3192
+ pageToken: "Test string",
3193
+ partnerId: "Test string",
3194
+ });
3195
+ /** Gets a custom list. */
3196
+ await gapi.client.displayvideo.customLists.get({
3197
+ advertiserId: "Test string",
3198
+ customListId: "Test string",
3199
+ });
3200
+ /** Lists custom lists. The order is defined by the order_by parameter. */
3201
+ await gapi.client.displayvideo.customLists.list({
3202
+ advertiserId: "Test string",
3203
+ filter: "Test string",
3204
+ orderBy: "Test string",
3205
+ pageSize: 42,
3206
+ pageToken: "Test string",
3207
+ });
3208
+ /** Creates a FirstAndThirdPartyAudience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` */
3209
+ await gapi.client.displayvideo.firstAndThirdPartyAudiences.create({
3210
+ advertiserId: "Test string",
3211
+ }, {
3212
+ activeDisplayAudienceSize: "Test string",
3213
+ appId: "Test string",
3214
+ audienceSource: "Test string",
3215
+ audienceType: "Test string",
3216
+ contactInfoList: {
3217
+ contactInfos: [
3218
+ {
3219
+ countryCode: "Test string",
3220
+ hashedEmails: [
3221
+ "Test string"
3222
+ ],
3223
+ hashedFirstName: "Test string",
3224
+ hashedLastName: "Test string",
3225
+ hashedPhoneNumbers: [
3226
+ "Test string"
3227
+ ],
3228
+ zipCodes: [
3229
+ "Test string"
3230
+ ],
3231
+ }
3232
+ ],
3233
+ },
3234
+ description: "Test string",
3235
+ displayAudienceSize: "Test string",
3236
+ displayDesktopAudienceSize: "Test string",
3237
+ displayMobileAppAudienceSize: "Test string",
3238
+ displayMobileWebAudienceSize: "Test string",
3239
+ displayName: "Test string",
3240
+ firstAndThirdPartyAudienceId: "Test string",
3241
+ firstAndThirdPartyAudienceType: "Test string",
3242
+ gmailAudienceSize: "Test string",
3243
+ membershipDurationDays: "Test string",
3244
+ mobileDeviceIdList: {
3245
+ mobileDeviceIds: [
3246
+ "Test string"
3247
+ ],
3248
+ },
3249
+ name: "Test string",
3250
+ youtubeAudienceSize: "Test string",
3251
+ });
3252
+ /** Updates the member list of a Customer Match audience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` */
3253
+ await gapi.client.displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers({
3254
+ firstAndThirdPartyAudienceId: "Test string",
3255
+ }, {
3256
+ addedContactInfoList: {
3257
+ contactInfos: [
3258
+ {
3259
+ countryCode: "Test string",
3260
+ hashedEmails: [
3261
+ "Test string"
3262
+ ],
3263
+ hashedFirstName: "Test string",
3264
+ hashedLastName: "Test string",
3265
+ hashedPhoneNumbers: [
3266
+ "Test string"
3267
+ ],
3268
+ zipCodes: [
3269
+ "Test string"
3270
+ ],
3271
+ }
3272
+ ],
3273
+ },
3274
+ addedMobileDeviceIdList: {
3275
+ mobileDeviceIds: [
3276
+ "Test string"
3277
+ ],
3278
+ },
3279
+ advertiserId: "Test string",
3280
+ });
3281
+ /** Gets a first and third party audience. */
3282
+ await gapi.client.displayvideo.firstAndThirdPartyAudiences.get({
3283
+ advertiserId: "Test string",
3284
+ firstAndThirdPartyAudienceId: "Test string",
3285
+ partnerId: "Test string",
3286
+ });
3287
+ /** Lists first and third party audiences. The order is defined by the order_by parameter. */
3288
+ await gapi.client.displayvideo.firstAndThirdPartyAudiences.list({
3289
+ advertiserId: "Test string",
3290
+ filter: "Test string",
3291
+ orderBy: "Test string",
3292
+ pageSize: 42,
3293
+ pageToken: "Test string",
3294
+ partnerId: "Test string",
3295
+ });
3296
+ /** Updates an existing FirstAndThirdPartyAudience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` */
3297
+ await gapi.client.displayvideo.firstAndThirdPartyAudiences.patch({
3298
+ advertiserId: "Test string",
3299
+ firstAndThirdPartyAudienceId: "Test string",
3300
+ updateMask: "Test string",
3301
+ }, {
3302
+ activeDisplayAudienceSize: "Test string",
3303
+ appId: "Test string",
3304
+ audienceSource: "Test string",
3305
+ audienceType: "Test string",
3306
+ contactInfoList: {
3307
+ contactInfos: [
3308
+ {
3309
+ countryCode: "Test string",
3310
+ hashedEmails: [
3311
+ "Test string"
3312
+ ],
3313
+ hashedFirstName: "Test string",
3314
+ hashedLastName: "Test string",
3315
+ hashedPhoneNumbers: [
3316
+ "Test string"
3317
+ ],
3318
+ zipCodes: [
3319
+ "Test string"
3320
+ ],
3321
+ }
3322
+ ],
3323
+ },
3324
+ description: "Test string",
3325
+ displayAudienceSize: "Test string",
3326
+ displayDesktopAudienceSize: "Test string",
3327
+ displayMobileAppAudienceSize: "Test string",
3328
+ displayMobileWebAudienceSize: "Test string",
3329
+ displayName: "Test string",
3330
+ firstAndThirdPartyAudienceId: "Test string",
3331
+ firstAndThirdPartyAudienceType: "Test string",
3332
+ gmailAudienceSize: "Test string",
3333
+ membershipDurationDays: "Test string",
3334
+ mobileDeviceIdList: {
3335
+ mobileDeviceIds: [
3336
+ "Test string"
3337
+ ],
3338
+ },
3339
+ name: "Test string",
3340
+ youtubeAudienceSize: "Test string",
3341
+ });
3342
+ /** Gets a Floodlight group. */
3343
+ await gapi.client.displayvideo.floodlightGroups.get({
3344
+ floodlightGroupId: "Test string",
3345
+ partnerId: "Test string",
3346
+ });
3347
+ /** Updates an existing Floodlight group. Returns the updated Floodlight group if successful. */
3348
+ await gapi.client.displayvideo.floodlightGroups.patch({
3349
+ floodlightGroupId: "Test string",
3350
+ partnerId: "Test string",
3351
+ updateMask: "Test string",
3352
+ }, {
3353
+ activeViewConfig: {
3354
+ displayName: "Test string",
3355
+ minimumDuration: "Test string",
3356
+ minimumQuartile: "Test string",
3357
+ minimumViewability: "Test string",
3358
+ minimumVolume: "Test string",
3359
+ },
3360
+ customVariables: {
3361
+ A: 42
3362
+ },
3363
+ displayName: "Test string",
3364
+ floodlightGroupId: "Test string",
3365
+ lookbackWindow: {
3366
+ clickDays: 42,
3367
+ impressionDays: 42,
3368
+ },
3369
+ name: "Test string",
3370
+ webTagType: "Test string",
3371
+ });
3372
+ /** Gets a Google audience. */
3373
+ await gapi.client.displayvideo.googleAudiences.get({
3374
+ advertiserId: "Test string",
3375
+ googleAudienceId: "Test string",
3376
+ partnerId: "Test string",
3377
+ });
3378
+ /** Lists Google audiences. The order is defined by the order_by parameter. */
3379
+ await gapi.client.displayvideo.googleAudiences.list({
3380
+ advertiserId: "Test string",
3381
+ filter: "Test string",
3382
+ orderBy: "Test string",
3383
+ pageSize: 42,
3384
+ pageToken: "Test string",
3385
+ partnerId: "Test string",
3386
+ });
3387
+ /** Creates a new guaranteed order. Returns the newly created guaranteed order if successful. */
3388
+ await gapi.client.displayvideo.guaranteedOrders.create({
3389
+ advertiserId: "Test string",
3390
+ partnerId: "Test string",
3391
+ }, {
3392
+ defaultAdvertiserId: "Test string",
3393
+ defaultCampaignId: "Test string",
3394
+ displayName: "Test string",
3395
+ exchange: "Test string",
3396
+ guaranteedOrderId: "Test string",
3397
+ legacyGuaranteedOrderId: "Test string",
3398
+ name: "Test string",
3399
+ publisherName: "Test string",
3400
+ readAccessInherited: true,
3401
+ readAdvertiserIds: [
3402
+ "Test string"
3403
+ ],
3404
+ readWriteAdvertiserId: "Test string",
3405
+ readWritePartnerId: "Test string",
3406
+ status: {
3407
+ configStatus: "Test string",
3408
+ entityPauseReason: "Test string",
3409
+ entityStatus: "Test string",
3410
+ },
3411
+ updateTime: "Test string",
3412
+ });
3413
+ /** Edits read advertisers of a guaranteed order. */
3414
+ await gapi.client.displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors({
3415
+ guaranteedOrderId: "Test string",
3416
+ }, {
3417
+ addedAdvertisers: [
3418
+ "Test string"
3419
+ ],
3420
+ partnerId: "Test string",
3421
+ readAccessInherited: true,
3422
+ removedAdvertisers: [
3423
+ "Test string"
3424
+ ],
3425
+ });
3426
+ /** Gets a guaranteed order. */
3427
+ await gapi.client.displayvideo.guaranteedOrders.get({
3428
+ advertiserId: "Test string",
3429
+ guaranteedOrderId: "Test string",
3430
+ partnerId: "Test string",
3431
+ });
3432
+ /**
3433
+ * Lists guaranteed orders that are accessible to the current user. The order is defined by the order_by parameter. If a filter by entity_status is not specified, guaranteed orders with
3434
+ * entity status `ENTITY_STATUS_ARCHIVED` will not be included in the results.
3435
+ */
3436
+ await gapi.client.displayvideo.guaranteedOrders.list({
3437
+ advertiserId: "Test string",
3438
+ filter: "Test string",
3439
+ orderBy: "Test string",
3440
+ pageSize: 42,
3441
+ pageToken: "Test string",
3442
+ partnerId: "Test string",
3443
+ });
3444
+ /** Updates an existing guaranteed order. Returns the updated guaranteed order if successful. */
3445
+ await gapi.client.displayvideo.guaranteedOrders.patch({
3446
+ advertiserId: "Test string",
3447
+ guaranteedOrderId: "Test string",
3448
+ partnerId: "Test string",
3449
+ updateMask: "Test string",
3450
+ }, {
3451
+ defaultAdvertiserId: "Test string",
3452
+ defaultCampaignId: "Test string",
3453
+ displayName: "Test string",
3454
+ exchange: "Test string",
3455
+ guaranteedOrderId: "Test string",
3456
+ legacyGuaranteedOrderId: "Test string",
3457
+ name: "Test string",
3458
+ publisherName: "Test string",
3459
+ readAccessInherited: true,
3460
+ readAdvertiserIds: [
3461
+ "Test string"
3462
+ ],
3463
+ readWriteAdvertiserId: "Test string",
3464
+ readWritePartnerId: "Test string",
3465
+ status: {
3466
+ configStatus: "Test string",
3467
+ entityPauseReason: "Test string",
3468
+ entityStatus: "Test string",
3469
+ },
3470
+ updateTime: "Test string",
3471
+ });
3472
+ /** Creates a new inventory source group. Returns the newly created inventory source group if successful. */
3473
+ await gapi.client.displayvideo.inventorySourceGroups.create({
3474
+ advertiserId: "Test string",
3475
+ partnerId: "Test string",
3476
+ }, {
3477
+ displayName: "Test string",
3478
+ inventorySourceGroupId: "Test string",
3479
+ name: "Test string",
3480
+ });
3481
+ /** Deletes an inventory source group. */
3482
+ await gapi.client.displayvideo.inventorySourceGroups.delete({
3483
+ advertiserId: "Test string",
3484
+ inventorySourceGroupId: "Test string",
3485
+ partnerId: "Test string",
3486
+ });
3487
+ /** Gets an inventory source group. */
3488
+ await gapi.client.displayvideo.inventorySourceGroups.get({
3489
+ advertiserId: "Test string",
3490
+ inventorySourceGroupId: "Test string",
3491
+ partnerId: "Test string",
3492
+ });
3493
+ /** Lists inventory source groups that are accessible to the current user. The order is defined by the order_by parameter. */
3494
+ await gapi.client.displayvideo.inventorySourceGroups.list({
3495
+ advertiserId: "Test string",
3496
+ filter: "Test string",
3497
+ orderBy: "Test string",
3498
+ pageSize: 42,
3499
+ pageToken: "Test string",
3500
+ partnerId: "Test string",
3501
+ });
3502
+ /** Updates an inventory source group. Returns the updated inventory source group if successful. */
3503
+ await gapi.client.displayvideo.inventorySourceGroups.patch({
3504
+ advertiserId: "Test string",
3505
+ inventorySourceGroupId: "Test string",
3506
+ partnerId: "Test string",
3507
+ updateMask: "Test string",
3508
+ }, {
3509
+ displayName: "Test string",
3510
+ inventorySourceGroupId: "Test string",
3511
+ name: "Test string",
3512
+ });
3513
+ /**
3514
+ * Bulk edits multiple assignments between inventory sources and a single inventory source group. The operation will delete the assigned inventory sources provided in
3515
+ * BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sources and then create the assigned inventory sources provided in
3516
+ * BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sources.
3517
+ */
3518
+ await gapi.client.displayvideo.inventorySourceGroups.assignedInventorySources.bulkEdit({
3519
+ inventorySourceGroupId: "Test string",
3520
+ }, {
3521
+ advertiserId: "Test string",
3522
+ createdAssignedInventorySources: [
3523
+ {
3524
+ assignedInventorySourceId: "Test string",
3525
+ inventorySourceId: "Test string",
3526
+ name: "Test string",
3527
+ }
3528
+ ],
3529
+ deletedAssignedInventorySources: [
3530
+ "Test string"
3531
+ ],
3532
+ partnerId: "Test string",
3533
+ });
3534
+ /** Creates an assignment between an inventory source and an inventory source group. */
3535
+ await gapi.client.displayvideo.inventorySourceGroups.assignedInventorySources.create({
3536
+ advertiserId: "Test string",
3537
+ inventorySourceGroupId: "Test string",
3538
+ partnerId: "Test string",
3539
+ }, {
3540
+ assignedInventorySourceId: "Test string",
3541
+ inventorySourceId: "Test string",
3542
+ name: "Test string",
3543
+ });
3544
+ /** Deletes the assignment between an inventory source and an inventory source group. */
3545
+ await gapi.client.displayvideo.inventorySourceGroups.assignedInventorySources.delete({
3546
+ advertiserId: "Test string",
3547
+ assignedInventorySourceId: "Test string",
3548
+ inventorySourceGroupId: "Test string",
3549
+ partnerId: "Test string",
3550
+ });
3551
+ /** Lists inventory sources assigned to an inventory source group. */
3552
+ await gapi.client.displayvideo.inventorySourceGroups.assignedInventorySources.list({
3553
+ advertiserId: "Test string",
3554
+ filter: "Test string",
3555
+ inventorySourceGroupId: "Test string",
3556
+ orderBy: "Test string",
3557
+ pageSize: 42,
3558
+ pageToken: "Test string",
3559
+ partnerId: "Test string",
3560
+ });
3561
+ /** Creates a new inventory source. Returns the newly created inventory source if successful. */
3562
+ await gapi.client.displayvideo.inventorySources.create({
3563
+ advertiserId: "Test string",
3564
+ partnerId: "Test string",
3565
+ }, {
3566
+ commitment: "Test string",
3567
+ creativeConfigs: [
3568
+ {
3569
+ creativeType: "Test string",
3570
+ displayCreativeConfig: {
3571
+ creativeSize: {
3572
+ heightPixels: 42,
3573
+ widthPixels: 42,
3574
+ },
3575
+ },
3576
+ videoCreativeConfig: {
3577
+ duration: "Test string",
3578
+ },
3579
+ }
3580
+ ],
3581
+ dealId: "Test string",
3582
+ deliveryMethod: "Test string",
3583
+ displayName: "Test string",
3584
+ exchange: "Test string",
3585
+ guaranteedOrderId: "Test string",
3586
+ inventorySourceId: "Test string",
3587
+ inventorySourceProductType: "Test string",
3588
+ inventorySourceType: "Test string",
3589
+ name: "Test string",
3590
+ publisherName: "Test string",
3591
+ rateDetails: {
3592
+ inventorySourceRateType: "Test string",
3593
+ minimumSpend: {
3594
+ currencyCode: "Test string",
3595
+ nanos: 42,
3596
+ units: "Test string",
3597
+ },
3598
+ rate: {
3599
+ currencyCode: "Test string",
3600
+ nanos: 42,
3601
+ units: "Test string",
3602
+ },
3603
+ unitsPurchased: "Test string",
3604
+ },
3605
+ readAdvertiserIds: [
3606
+ "Test string"
3607
+ ],
3608
+ readPartnerIds: [
3609
+ "Test string"
3610
+ ],
3611
+ readWriteAccessors: {
3612
+ advertisers: {
3613
+ advertiserIds: [
3614
+ "Test string"
3615
+ ],
3616
+ },
3617
+ partner: {
3618
+ partnerId: "Test string",
3619
+ },
3620
+ },
3621
+ status: {
3622
+ configStatus: "Test string",
3623
+ entityPauseReason: "Test string",
3624
+ entityStatus: "Test string",
3625
+ sellerPauseReason: "Test string",
3626
+ sellerStatus: "Test string",
3627
+ },
3628
+ subSitePropertyId: "Test string",
3629
+ timeRange: {
3630
+ endTime: "Test string",
3631
+ startTime: "Test string",
3632
+ },
3633
+ updateTime: "Test string",
3634
+ });
3635
+ /** Edits read/write accessors of an inventory source. Returns the updated read_write_accessors for the inventory source. */
3636
+ await gapi.client.displayvideo.inventorySources.editInventorySourceReadWriteAccessors({
3637
+ inventorySourceId: "Test string",
3638
+ }, {
3639
+ advertisersUpdate: {
3640
+ addedAdvertisers: [
3641
+ "Test string"
3642
+ ],
3643
+ removedAdvertisers: [
3644
+ "Test string"
3645
+ ],
3646
+ },
3647
+ assignPartner: true,
3648
+ partnerId: "Test string",
3649
+ });
3650
+ /** Gets an inventory source. */
3651
+ await gapi.client.displayvideo.inventorySources.get({
3652
+ inventorySourceId: "Test string",
3653
+ partnerId: "Test string",
3654
+ });
3655
+ /**
3656
+ * Lists inventory sources that are accessible to the current user. The order is defined by the order_by parameter. If a filter by entity_status is not specified, inventory sources with
3657
+ * entity status `ENTITY_STATUS_ARCHIVED` will not be included in the results.
3658
+ */
3659
+ await gapi.client.displayvideo.inventorySources.list({
3660
+ advertiserId: "Test string",
3661
+ filter: "Test string",
3662
+ orderBy: "Test string",
3663
+ pageSize: 42,
3664
+ pageToken: "Test string",
3665
+ partnerId: "Test string",
3666
+ });
3667
+ /** Updates an existing inventory source. Returns the updated inventory source if successful. */
3668
+ await gapi.client.displayvideo.inventorySources.patch({
3669
+ advertiserId: "Test string",
3670
+ inventorySourceId: "Test string",
3671
+ partnerId: "Test string",
3672
+ updateMask: "Test string",
3673
+ }, {
3674
+ commitment: "Test string",
3675
+ creativeConfigs: [
3676
+ {
3677
+ creativeType: "Test string",
3678
+ displayCreativeConfig: {
3679
+ creativeSize: {
3680
+ heightPixels: 42,
3681
+ widthPixels: 42,
3682
+ },
3683
+ },
3684
+ videoCreativeConfig: {
3685
+ duration: "Test string",
3686
+ },
3687
+ }
3688
+ ],
3689
+ dealId: "Test string",
3690
+ deliveryMethod: "Test string",
3691
+ displayName: "Test string",
3692
+ exchange: "Test string",
3693
+ guaranteedOrderId: "Test string",
3694
+ inventorySourceId: "Test string",
3695
+ inventorySourceProductType: "Test string",
3696
+ inventorySourceType: "Test string",
3697
+ name: "Test string",
3698
+ publisherName: "Test string",
3699
+ rateDetails: {
3700
+ inventorySourceRateType: "Test string",
3701
+ minimumSpend: {
3702
+ currencyCode: "Test string",
3703
+ nanos: 42,
3704
+ units: "Test string",
3705
+ },
3706
+ rate: {
3707
+ currencyCode: "Test string",
3708
+ nanos: 42,
3709
+ units: "Test string",
3710
+ },
3711
+ unitsPurchased: "Test string",
3712
+ },
3713
+ readAdvertiserIds: [
3714
+ "Test string"
3715
+ ],
3716
+ readPartnerIds: [
3717
+ "Test string"
3718
+ ],
3719
+ readWriteAccessors: {
3720
+ advertisers: {
3721
+ advertiserIds: [
3722
+ "Test string"
3723
+ ],
3724
+ },
3725
+ partner: {
3726
+ partnerId: "Test string",
3727
+ },
3728
+ },
3729
+ status: {
3730
+ configStatus: "Test string",
3731
+ entityPauseReason: "Test string",
3732
+ entityStatus: "Test string",
3733
+ sellerPauseReason: "Test string",
3734
+ sellerStatus: "Test string",
3735
+ },
3736
+ subSitePropertyId: "Test string",
3737
+ timeRange: {
3738
+ endTime: "Test string",
3739
+ startTime: "Test string",
3740
+ },
3741
+ updateTime: "Test string",
3742
+ });
3743
+ /**
3744
+ * Downloads media. Download is supported on the URI `/download/{resource_name=**}?alt=media.` **Note**: Download requests will not be successful without including `alt=media` query
3745
+ * string.
3746
+ */
3747
+ await gapi.client.displayvideo.media.download({
3748
+ resourceName: "Test string",
3749
+ });
3750
+ /**
3751
+ * Uploads media. Upload is supported on the URI `/upload/media/{resource_name=**}?upload_type=media.` **Note**: Upload requests will not be successful without including
3752
+ * `upload_type=media` query string.
3753
+ */
3754
+ await gapi.client.displayvideo.media.upload({
3755
+ resourceName: "Test string",
3756
+ }, {
3757
+ resourceName: "Test string",
3758
+ });
3759
+ /**
3760
+ * Edits targeting options under a single partner. The operation will delete the assigned targeting options provided in BulkEditPartnerAssignedTargetingOptionsRequest.deleteRequests and
3761
+ * then create the assigned targeting options provided in BulkEditPartnerAssignedTargetingOptionsRequest.createRequests .
3762
+ */
3763
+ await gapi.client.displayvideo.partners.editAssignedTargetingOptions({
3764
+ partnerId: "Test string",
3765
+ }, {
3766
+ createRequests: [
3767
+ {
3768
+ assignedTargetingOptions: [
3769
+ {
3770
+ ageRangeDetails: {
3771
+ ageRange: "Test string",
3772
+ },
3773
+ appCategoryDetails: {
3774
+ displayName: "Test string",
3775
+ negative: true,
3776
+ targetingOptionId: "Test string",
3777
+ },
3778
+ appDetails: {
3779
+ appId: "Test string",
3780
+ appPlatform: "Test string",
3781
+ displayName: "Test string",
3782
+ negative: true,
3783
+ },
3784
+ assignedTargetingOptionId: "Test string",
3785
+ audienceGroupDetails: {
3786
+ excludedFirstAndThirdPartyAudienceGroup: {
3787
+ settings: [
3788
+ {
3789
+ firstAndThirdPartyAudienceId: "Test string",
3790
+ recency: "Test string",
3791
+ }
3792
+ ],
3793
+ },
3794
+ excludedGoogleAudienceGroup: {
3795
+ settings: [
3796
+ {
3797
+ googleAudienceId: "Test string",
3798
+ }
3799
+ ],
3800
+ },
3801
+ includedCombinedAudienceGroup: {
3802
+ settings: [
3803
+ {
3804
+ combinedAudienceId: "Test string",
3805
+ }
3806
+ ],
3807
+ },
3808
+ includedCustomListGroup: {
3809
+ settings: [
3810
+ {
3811
+ customListId: "Test string",
3812
+ }
3813
+ ],
3814
+ },
3815
+ includedFirstAndThirdPartyAudienceGroups: [
3816
+ {
3817
+ settings: [
3818
+ {
3819
+ firstAndThirdPartyAudienceId: "Test string",
3820
+ recency: "Test string",
3821
+ }
3822
+ ],
3823
+ }
3824
+ ],
3825
+ includedGoogleAudienceGroup: {
3826
+ settings: [
3827
+ {
3828
+ googleAudienceId: "Test string",
3829
+ }
3830
+ ],
3831
+ },
3832
+ },
3833
+ audioContentTypeDetails: {
3834
+ audioContentType: "Test string",
3835
+ },
3836
+ authorizedSellerStatusDetails: {
3837
+ authorizedSellerStatus: "Test string",
3838
+ targetingOptionId: "Test string",
3839
+ },
3840
+ browserDetails: {
3841
+ displayName: "Test string",
3842
+ negative: true,
3843
+ targetingOptionId: "Test string",
3844
+ },
3845
+ businessChainDetails: {
3846
+ displayName: "Test string",
3847
+ proximityRadiusAmount: 42,
3848
+ proximityRadiusUnit: "Test string",
3849
+ targetingOptionId: "Test string",
3850
+ },
3851
+ carrierAndIspDetails: {
3852
+ displayName: "Test string",
3853
+ negative: true,
3854
+ targetingOptionId: "Test string",
3855
+ },
3856
+ categoryDetails: {
3857
+ displayName: "Test string",
3858
+ negative: true,
3859
+ targetingOptionId: "Test string",
3860
+ },
3861
+ channelDetails: {
3862
+ channelId: "Test string",
3863
+ negative: true,
3864
+ },
3865
+ contentDurationDetails: {
3866
+ contentDuration: "Test string",
3867
+ targetingOptionId: "Test string",
3868
+ },
3869
+ contentGenreDetails: {
3870
+ displayName: "Test string",
3871
+ negative: true,
3872
+ targetingOptionId: "Test string",
3873
+ },
3874
+ contentInstreamPositionDetails: {
3875
+ adType: "Test string",
3876
+ contentInstreamPosition: "Test string",
3877
+ },
3878
+ contentOutstreamPositionDetails: {
3879
+ adType: "Test string",
3880
+ contentOutstreamPosition: "Test string",
3881
+ },
3882
+ contentStreamTypeDetails: {
3883
+ contentStreamType: "Test string",
3884
+ targetingOptionId: "Test string",
3885
+ },
3886
+ dayAndTimeDetails: {
3887
+ dayOfWeek: "Test string",
3888
+ endHour: 42,
3889
+ startHour: 42,
3890
+ timeZoneResolution: "Test string",
3891
+ },
3892
+ deviceMakeModelDetails: {
3893
+ displayName: "Test string",
3894
+ negative: true,
3895
+ targetingOptionId: "Test string",
3896
+ },
3897
+ deviceTypeDetails: {
3898
+ deviceType: "Test string",
3899
+ youtubeAndPartnersBidMultiplier: 42,
3900
+ },
3901
+ digitalContentLabelExclusionDetails: {
3902
+ excludedContentRatingTier: "Test string",
3903
+ },
3904
+ environmentDetails: {
3905
+ environment: "Test string",
3906
+ },
3907
+ exchangeDetails: {
3908
+ exchange: "Test string",
3909
+ },
3910
+ genderDetails: {
3911
+ gender: "Test string",
3912
+ },
3913
+ geoRegionDetails: {
3914
+ displayName: "Test string",
3915
+ geoRegionType: "Test string",
3916
+ negative: true,
3917
+ targetingOptionId: "Test string",
3918
+ },
3919
+ householdIncomeDetails: {
3920
+ householdIncome: "Test string",
3921
+ },
3922
+ inheritance: "Test string",
3923
+ inventorySourceDetails: {
3924
+ inventorySourceId: "Test string",
3925
+ },
3926
+ inventorySourceGroupDetails: {
3927
+ inventorySourceGroupId: "Test string",
3928
+ },
3929
+ keywordDetails: {
3930
+ keyword: "Test string",
3931
+ negative: true,
3932
+ },
3933
+ languageDetails: {
3934
+ displayName: "Test string",
3935
+ negative: true,
3936
+ targetingOptionId: "Test string",
3937
+ },
3938
+ name: "Test string",
3939
+ nativeContentPositionDetails: {
3940
+ contentPosition: "Test string",
3941
+ },
3942
+ negativeKeywordListDetails: {
3943
+ negativeKeywordListId: "Test string",
3944
+ },
3945
+ omidDetails: {
3946
+ omid: "Test string",
3947
+ },
3948
+ onScreenPositionDetails: {
3949
+ adType: "Test string",
3950
+ onScreenPosition: "Test string",
3951
+ targetingOptionId: "Test string",
3952
+ },
3953
+ operatingSystemDetails: {
3954
+ displayName: "Test string",
3955
+ negative: true,
3956
+ targetingOptionId: "Test string",
3957
+ },
3958
+ parentalStatusDetails: {
3959
+ parentalStatus: "Test string",
3960
+ },
3961
+ poiDetails: {
3962
+ displayName: "Test string",
3963
+ latitude: 42,
3964
+ longitude: 42,
3965
+ proximityRadiusAmount: 42,
3966
+ proximityRadiusUnit: "Test string",
3967
+ targetingOptionId: "Test string",
3968
+ },
3969
+ proximityLocationListDetails: {
3970
+ proximityLocationListId: "Test string",
3971
+ proximityRadius: 42,
3972
+ proximityRadiusUnit: "Test string",
3973
+ },
3974
+ regionalLocationListDetails: {
3975
+ negative: true,
3976
+ regionalLocationListId: "Test string",
3977
+ },
3978
+ sensitiveCategoryExclusionDetails: {
3979
+ excludedSensitiveCategory: "Test string",
3980
+ },
3981
+ subExchangeDetails: {
3982
+ targetingOptionId: "Test string",
3983
+ },
3984
+ targetingType: "Test string",
3985
+ thirdPartyVerifierDetails: {
3986
+ adloox: {
3987
+ excludedAdlooxCategories: [
3988
+ "Test string"
3989
+ ],
3990
+ },
3991
+ doubleVerify: {
3992
+ appStarRating: {
3993
+ avoidedStarRating: "Test string",
3994
+ avoidInsufficientStarRating: true,
3995
+ },
3996
+ avoidedAgeRatings: [
3997
+ "Test string"
3998
+ ],
3999
+ brandSafetyCategories: {
4000
+ avoidedHighSeverityCategories: [
4001
+ "Test string"
4002
+ ],
4003
+ avoidedMediumSeverityCategories: [
4004
+ "Test string"
4005
+ ],
4006
+ avoidUnknownBrandSafetyCategory: true,
4007
+ },
4008
+ customSegmentId: "Test string",
4009
+ displayViewability: {
4010
+ iab: "Test string",
4011
+ viewableDuring: "Test string",
4012
+ },
4013
+ fraudInvalidTraffic: {
4014
+ avoidedFraudOption: "Test string",
4015
+ avoidInsufficientOption: true,
4016
+ },
4017
+ videoViewability: {
4018
+ playerImpressionRate: "Test string",
4019
+ videoIab: "Test string",
4020
+ videoViewableRate: "Test string",
4021
+ },
4022
+ },
4023
+ integralAdScience: {
4024
+ customSegmentId: [
4025
+ "Test string"
4026
+ ],
4027
+ displayViewability: "Test string",
4028
+ excludedAdFraudRisk: "Test string",
4029
+ excludedAdultRisk: "Test string",
4030
+ excludedAlcoholRisk: "Test string",
4031
+ excludedDrugsRisk: "Test string",
4032
+ excludedGamblingRisk: "Test string",
4033
+ excludedHateSpeechRisk: "Test string",
4034
+ excludedIllegalDownloadsRisk: "Test string",
4035
+ excludedOffensiveLanguageRisk: "Test string",
4036
+ excludedViolenceRisk: "Test string",
4037
+ excludeUnrateable: true,
4038
+ traqScoreOption: "Test string",
4039
+ videoViewability: "Test string",
4040
+ },
4041
+ },
4042
+ urlDetails: {
4043
+ negative: true,
4044
+ url: "Test string",
4045
+ },
4046
+ userRewardedContentDetails: {
4047
+ targetingOptionId: "Test string",
4048
+ userRewardedContent: "Test string",
4049
+ },
4050
+ videoPlayerSizeDetails: {
4051
+ videoPlayerSize: "Test string",
4052
+ },
4053
+ viewabilityDetails: {
4054
+ viewability: "Test string",
4055
+ },
4056
+ }
4057
+ ],
4058
+ targetingType: "Test string",
4059
+ }
4060
+ ],
4061
+ deleteRequests: [
4062
+ {
4063
+ assignedTargetingOptionIds: [
4064
+ "Test string"
4065
+ ],
4066
+ targetingType: "Test string",
4067
+ }
4068
+ ],
4069
+ });
4070
+ /** Gets a partner. */
4071
+ await gapi.client.displayvideo.partners.get({
4072
+ partnerId: "Test string",
4073
+ });
4074
+ /** Lists partners that are accessible to the current user. The order is defined by the order_by parameter. */
4075
+ await gapi.client.displayvideo.partners.list({
4076
+ filter: "Test string",
4077
+ orderBy: "Test string",
4078
+ pageSize: 42,
4079
+ pageToken: "Test string",
4080
+ });
4081
+ /** Creates a new channel. Returns the newly created channel if successful. */
4082
+ await gapi.client.displayvideo.partners.channels.create({
4083
+ advertiserId: "Test string",
4084
+ partnerId: "Test string",
4085
+ }, {
4086
+ advertiserId: "Test string",
4087
+ channelId: "Test string",
4088
+ displayName: "Test string",
4089
+ name: "Test string",
4090
+ negativelyTargetedLineItemCount: "Test string",
4091
+ partnerId: "Test string",
4092
+ positivelyTargetedLineItemCount: "Test string",
4093
+ });
4094
+ /** Gets a channel for a partner or advertiser. */
4095
+ await gapi.client.displayvideo.partners.channels.get({
4096
+ advertiserId: "Test string",
4097
+ channelId: "Test string",
4098
+ partnerId: "Test string",
4099
+ });
4100
+ /** Lists channels for a partner or advertiser. */
4101
+ await gapi.client.displayvideo.partners.channels.list({
4102
+ advertiserId: "Test string",
4103
+ filter: "Test string",
4104
+ orderBy: "Test string",
4105
+ pageSize: 42,
4106
+ pageToken: "Test string",
4107
+ partnerId: "Test string",
4108
+ });
4109
+ /** Updates a channel. Returns the updated channel if successful. */
4110
+ await gapi.client.displayvideo.partners.channels.patch({
4111
+ advertiserId: "Test string",
4112
+ channelId: "Test string",
4113
+ partnerId: "Test string",
4114
+ updateMask: "Test string",
4115
+ }, {
4116
+ advertiserId: "Test string",
4117
+ channelId: "Test string",
4118
+ displayName: "Test string",
4119
+ name: "Test string",
4120
+ negativelyTargetedLineItemCount: "Test string",
4121
+ partnerId: "Test string",
4122
+ positivelyTargetedLineItemCount: "Test string",
4123
+ });
4124
+ /**
4125
+ * Bulk edits sites under a single channel. The operation will delete the sites provided in BulkEditSitesRequest.deleted_sites and then create the sites provided in
4126
+ * BulkEditSitesRequest.created_sites.
4127
+ */
4128
+ await gapi.client.displayvideo.partners.channels.sites.bulkEdit({
4129
+ channelId: "Test string",
4130
+ partnerId: "Test string",
4131
+ }, {
4132
+ advertiserId: "Test string",
4133
+ createdSites: [
4134
+ {
4135
+ name: "Test string",
4136
+ urlOrAppId: "Test string",
4137
+ }
4138
+ ],
4139
+ deletedSites: [
4140
+ "Test string"
4141
+ ],
4142
+ partnerId: "Test string",
4143
+ });
4144
+ /** Creates a site in a channel. */
4145
+ await gapi.client.displayvideo.partners.channels.sites.create({
4146
+ advertiserId: "Test string",
4147
+ channelId: "Test string",
4148
+ partnerId: "Test string",
4149
+ }, {
4150
+ name: "Test string",
4151
+ urlOrAppId: "Test string",
4152
+ });
4153
+ /** Deletes a site from a channel. */
4154
+ await gapi.client.displayvideo.partners.channels.sites.delete({
4155
+ advertiserId: "Test string",
4156
+ channelId: "Test string",
4157
+ partnerId: "Test string",
4158
+ urlOrAppId: "Test string",
4159
+ });
4160
+ /** Lists sites in a channel. */
4161
+ await gapi.client.displayvideo.partners.channels.sites.list({
4162
+ advertiserId: "Test string",
4163
+ channelId: "Test string",
4164
+ filter: "Test string",
4165
+ orderBy: "Test string",
4166
+ pageSize: 42,
4167
+ pageToken: "Test string",
4168
+ partnerId: "Test string",
4169
+ });
4170
+ /** Replaces all of the sites under a single channel. The operation will replace the sites under a channel with the sites provided in ReplaceSitesRequest.new_sites. */
4171
+ await gapi.client.displayvideo.partners.channels.sites.replace({
4172
+ channelId: "Test string",
4173
+ partnerId: "Test string",
4174
+ }, {
4175
+ advertiserId: "Test string",
4176
+ newSites: [
4177
+ {
4178
+ name: "Test string",
4179
+ urlOrAppId: "Test string",
4180
+ }
4181
+ ],
4182
+ partnerId: "Test string",
4183
+ });
4184
+ /** Assigns a targeting option to a partner. Returns the assigned targeting option if successful. */
4185
+ await gapi.client.displayvideo.partners.targetingTypes.assignedTargetingOptions.create({
4186
+ partnerId: "Test string",
4187
+ targetingType: "Test string",
4188
+ }, {
4189
+ ageRangeDetails: {
4190
+ ageRange: "Test string",
4191
+ },
4192
+ appCategoryDetails: {
4193
+ displayName: "Test string",
4194
+ negative: true,
4195
+ targetingOptionId: "Test string",
4196
+ },
4197
+ appDetails: {
4198
+ appId: "Test string",
4199
+ appPlatform: "Test string",
4200
+ displayName: "Test string",
4201
+ negative: true,
4202
+ },
4203
+ assignedTargetingOptionId: "Test string",
4204
+ audienceGroupDetails: {
4205
+ excludedFirstAndThirdPartyAudienceGroup: {
4206
+ settings: [
4207
+ {
4208
+ firstAndThirdPartyAudienceId: "Test string",
4209
+ recency: "Test string",
4210
+ }
4211
+ ],
4212
+ },
4213
+ excludedGoogleAudienceGroup: {
4214
+ settings: [
4215
+ {
4216
+ googleAudienceId: "Test string",
4217
+ }
4218
+ ],
4219
+ },
4220
+ includedCombinedAudienceGroup: {
4221
+ settings: [
4222
+ {
4223
+ combinedAudienceId: "Test string",
4224
+ }
4225
+ ],
4226
+ },
4227
+ includedCustomListGroup: {
4228
+ settings: [
4229
+ {
4230
+ customListId: "Test string",
4231
+ }
4232
+ ],
4233
+ },
4234
+ includedFirstAndThirdPartyAudienceGroups: [
4235
+ {
4236
+ settings: [
4237
+ {
4238
+ firstAndThirdPartyAudienceId: "Test string",
4239
+ recency: "Test string",
4240
+ }
4241
+ ],
4242
+ }
4243
+ ],
4244
+ includedGoogleAudienceGroup: {
4245
+ settings: [
4246
+ {
4247
+ googleAudienceId: "Test string",
4248
+ }
4249
+ ],
4250
+ },
4251
+ },
4252
+ audioContentTypeDetails: {
4253
+ audioContentType: "Test string",
4254
+ },
4255
+ authorizedSellerStatusDetails: {
4256
+ authorizedSellerStatus: "Test string",
4257
+ targetingOptionId: "Test string",
4258
+ },
4259
+ browserDetails: {
4260
+ displayName: "Test string",
4261
+ negative: true,
4262
+ targetingOptionId: "Test string",
4263
+ },
4264
+ businessChainDetails: {
4265
+ displayName: "Test string",
4266
+ proximityRadiusAmount: 42,
4267
+ proximityRadiusUnit: "Test string",
4268
+ targetingOptionId: "Test string",
4269
+ },
4270
+ carrierAndIspDetails: {
4271
+ displayName: "Test string",
4272
+ negative: true,
4273
+ targetingOptionId: "Test string",
4274
+ },
4275
+ categoryDetails: {
4276
+ displayName: "Test string",
4277
+ negative: true,
4278
+ targetingOptionId: "Test string",
4279
+ },
4280
+ channelDetails: {
4281
+ channelId: "Test string",
4282
+ negative: true,
4283
+ },
4284
+ contentDurationDetails: {
4285
+ contentDuration: "Test string",
4286
+ targetingOptionId: "Test string",
4287
+ },
4288
+ contentGenreDetails: {
4289
+ displayName: "Test string",
4290
+ negative: true,
4291
+ targetingOptionId: "Test string",
4292
+ },
4293
+ contentInstreamPositionDetails: {
4294
+ adType: "Test string",
4295
+ contentInstreamPosition: "Test string",
4296
+ },
4297
+ contentOutstreamPositionDetails: {
4298
+ adType: "Test string",
4299
+ contentOutstreamPosition: "Test string",
4300
+ },
4301
+ contentStreamTypeDetails: {
4302
+ contentStreamType: "Test string",
4303
+ targetingOptionId: "Test string",
4304
+ },
4305
+ dayAndTimeDetails: {
4306
+ dayOfWeek: "Test string",
4307
+ endHour: 42,
4308
+ startHour: 42,
4309
+ timeZoneResolution: "Test string",
4310
+ },
4311
+ deviceMakeModelDetails: {
4312
+ displayName: "Test string",
4313
+ negative: true,
4314
+ targetingOptionId: "Test string",
4315
+ },
4316
+ deviceTypeDetails: {
4317
+ deviceType: "Test string",
4318
+ youtubeAndPartnersBidMultiplier: 42,
4319
+ },
4320
+ digitalContentLabelExclusionDetails: {
4321
+ excludedContentRatingTier: "Test string",
4322
+ },
4323
+ environmentDetails: {
4324
+ environment: "Test string",
4325
+ },
4326
+ exchangeDetails: {
4327
+ exchange: "Test string",
4328
+ },
4329
+ genderDetails: {
4330
+ gender: "Test string",
4331
+ },
4332
+ geoRegionDetails: {
4333
+ displayName: "Test string",
4334
+ geoRegionType: "Test string",
4335
+ negative: true,
4336
+ targetingOptionId: "Test string",
4337
+ },
4338
+ householdIncomeDetails: {
4339
+ householdIncome: "Test string",
4340
+ },
4341
+ inheritance: "Test string",
4342
+ inventorySourceDetails: {
4343
+ inventorySourceId: "Test string",
4344
+ },
4345
+ inventorySourceGroupDetails: {
4346
+ inventorySourceGroupId: "Test string",
4347
+ },
4348
+ keywordDetails: {
4349
+ keyword: "Test string",
4350
+ negative: true,
4351
+ },
4352
+ languageDetails: {
4353
+ displayName: "Test string",
4354
+ negative: true,
4355
+ targetingOptionId: "Test string",
4356
+ },
4357
+ name: "Test string",
4358
+ nativeContentPositionDetails: {
4359
+ contentPosition: "Test string",
4360
+ },
4361
+ negativeKeywordListDetails: {
4362
+ negativeKeywordListId: "Test string",
4363
+ },
4364
+ omidDetails: {
4365
+ omid: "Test string",
4366
+ },
4367
+ onScreenPositionDetails: {
4368
+ adType: "Test string",
4369
+ onScreenPosition: "Test string",
4370
+ targetingOptionId: "Test string",
4371
+ },
4372
+ operatingSystemDetails: {
4373
+ displayName: "Test string",
4374
+ negative: true,
4375
+ targetingOptionId: "Test string",
4376
+ },
4377
+ parentalStatusDetails: {
4378
+ parentalStatus: "Test string",
4379
+ },
4380
+ poiDetails: {
4381
+ displayName: "Test string",
4382
+ latitude: 42,
4383
+ longitude: 42,
4384
+ proximityRadiusAmount: 42,
4385
+ proximityRadiusUnit: "Test string",
4386
+ targetingOptionId: "Test string",
4387
+ },
4388
+ proximityLocationListDetails: {
4389
+ proximityLocationListId: "Test string",
4390
+ proximityRadius: 42,
4391
+ proximityRadiusUnit: "Test string",
4392
+ },
4393
+ regionalLocationListDetails: {
4394
+ negative: true,
4395
+ regionalLocationListId: "Test string",
4396
+ },
4397
+ sensitiveCategoryExclusionDetails: {
4398
+ excludedSensitiveCategory: "Test string",
4399
+ },
4400
+ subExchangeDetails: {
4401
+ targetingOptionId: "Test string",
4402
+ },
4403
+ targetingType: "Test string",
4404
+ thirdPartyVerifierDetails: {
4405
+ adloox: {
4406
+ excludedAdlooxCategories: [
4407
+ "Test string"
4408
+ ],
4409
+ },
4410
+ doubleVerify: {
4411
+ appStarRating: {
4412
+ avoidedStarRating: "Test string",
4413
+ avoidInsufficientStarRating: true,
4414
+ },
4415
+ avoidedAgeRatings: [
4416
+ "Test string"
4417
+ ],
4418
+ brandSafetyCategories: {
4419
+ avoidedHighSeverityCategories: [
4420
+ "Test string"
4421
+ ],
4422
+ avoidedMediumSeverityCategories: [
4423
+ "Test string"
4424
+ ],
4425
+ avoidUnknownBrandSafetyCategory: true,
4426
+ },
4427
+ customSegmentId: "Test string",
4428
+ displayViewability: {
4429
+ iab: "Test string",
4430
+ viewableDuring: "Test string",
4431
+ },
4432
+ fraudInvalidTraffic: {
4433
+ avoidedFraudOption: "Test string",
4434
+ avoidInsufficientOption: true,
4435
+ },
4436
+ videoViewability: {
4437
+ playerImpressionRate: "Test string",
4438
+ videoIab: "Test string",
4439
+ videoViewableRate: "Test string",
4440
+ },
4441
+ },
4442
+ integralAdScience: {
4443
+ customSegmentId: [
4444
+ "Test string"
4445
+ ],
4446
+ displayViewability: "Test string",
4447
+ excludedAdFraudRisk: "Test string",
4448
+ excludedAdultRisk: "Test string",
4449
+ excludedAlcoholRisk: "Test string",
4450
+ excludedDrugsRisk: "Test string",
4451
+ excludedGamblingRisk: "Test string",
4452
+ excludedHateSpeechRisk: "Test string",
4453
+ excludedIllegalDownloadsRisk: "Test string",
4454
+ excludedOffensiveLanguageRisk: "Test string",
4455
+ excludedViolenceRisk: "Test string",
4456
+ excludeUnrateable: true,
4457
+ traqScoreOption: "Test string",
4458
+ videoViewability: "Test string",
4459
+ },
4460
+ },
4461
+ urlDetails: {
4462
+ negative: true,
4463
+ url: "Test string",
4464
+ },
4465
+ userRewardedContentDetails: {
4466
+ targetingOptionId: "Test string",
4467
+ userRewardedContent: "Test string",
4468
+ },
4469
+ videoPlayerSizeDetails: {
4470
+ videoPlayerSize: "Test string",
4471
+ },
4472
+ viewabilityDetails: {
4473
+ viewability: "Test string",
4474
+ },
4475
+ });
4476
+ /** Deletes an assigned targeting option from a partner. */
4477
+ await gapi.client.displayvideo.partners.targetingTypes.assignedTargetingOptions.delete({
4478
+ assignedTargetingOptionId: "Test string",
4479
+ partnerId: "Test string",
4480
+ targetingType: "Test string",
4481
+ });
4482
+ /** Gets a single targeting option assigned to a partner. */
4483
+ await gapi.client.displayvideo.partners.targetingTypes.assignedTargetingOptions.get({
4484
+ assignedTargetingOptionId: "Test string",
4485
+ partnerId: "Test string",
4486
+ targetingType: "Test string",
4487
+ });
4488
+ /** Lists the targeting options assigned to a partner. */
4489
+ await gapi.client.displayvideo.partners.targetingTypes.assignedTargetingOptions.list({
4490
+ filter: "Test string",
4491
+ orderBy: "Test string",
4492
+ pageSize: 42,
4493
+ pageToken: "Test string",
4494
+ partnerId: "Test string",
4495
+ targetingType: "Test string",
4496
+ });
4497
+ /**
4498
+ * Creates an SDF Download Task. Returns an Operation. An SDF Download Task is a long-running, asynchronous operation. The metadata type of this operation is SdfDownloadTaskMetadata. If
4499
+ * the request is successful, the response type of the operation is SdfDownloadTask. The response will not include the download files, which must be retrieved with media.download. The
4500
+ * state of operation can be retrieved with sdfdownloadtask.operations.get. Any errors can be found in the error.message. Note that error.details is expected to be empty.
4501
+ */
4502
+ await gapi.client.displayvideo.sdfdownloadtasks.create({
4503
+ }, {
4504
+ advertiserId: "Test string",
4505
+ idFilter: {
4506
+ adGroupAdIds: [
4507
+ "Test string"
4508
+ ],
4509
+ adGroupIds: [
4510
+ "Test string"
4511
+ ],
4512
+ campaignIds: [
4513
+ "Test string"
4514
+ ],
4515
+ insertionOrderIds: [
4516
+ "Test string"
4517
+ ],
4518
+ lineItemIds: [
4519
+ "Test string"
4520
+ ],
4521
+ mediaProductIds: [
4522
+ "Test string"
4523
+ ],
4524
+ },
4525
+ inventorySourceFilter: {
4526
+ inventorySourceIds: [
4527
+ "Test string"
4528
+ ],
4529
+ },
4530
+ parentEntityFilter: {
4531
+ fileType: [
4532
+ "Test string"
4533
+ ],
4534
+ filterIds: [
4535
+ "Test string"
4536
+ ],
4537
+ filterType: "Test string",
4538
+ },
4539
+ partnerId: "Test string",
4540
+ version: "Test string",
4541
+ });
4542
+ /** Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds. */
4543
+ await gapi.client.displayvideo.sdfdownloadtasks.operations.get({
4544
+ name: "Test string",
4545
+ });
4546
+ /** Gets a single targeting option. */
4547
+ await gapi.client.displayvideo.targetingTypes.targetingOptions.get({
4548
+ advertiserId: "Test string",
4549
+ targetingOptionId: "Test string",
4550
+ targetingType: "Test string",
4551
+ });
4552
+ /** Lists targeting options of a given type. */
4553
+ await gapi.client.displayvideo.targetingTypes.targetingOptions.list({
4554
+ advertiserId: "Test string",
4555
+ filter: "Test string",
4556
+ orderBy: "Test string",
4557
+ pageSize: 42,
4558
+ pageToken: "Test string",
4559
+ targetingType: "Test string",
4560
+ });
4561
+ /** Searches for targeting options of a given type based on the given search terms. */
4562
+ await gapi.client.displayvideo.targetingTypes.targetingOptions.search({
4563
+ targetingType: "Test string",
4564
+ }, {
4565
+ advertiserId: "Test string",
4566
+ businessChainSearchTerms: {
4567
+ businessChainQuery: "Test string",
4568
+ regionQuery: "Test string",
4569
+ },
4570
+ geoRegionSearchTerms: {
4571
+ geoRegionQuery: "Test string",
4572
+ },
4573
+ pageSize: 42,
4574
+ pageToken: "Test string",
4575
+ poiSearchTerms: {
4576
+ poiQuery: "Test string",
4577
+ },
4578
+ });
4579
+ /**
4580
+ * Bulk edits user roles for a user. The operation will delete the assigned user roles provided in BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles and then assign the user roles
4581
+ * provided in BulkEditAssignedUserRolesRequest.createdAssignedUserRoles.
4582
+ */
4583
+ await gapi.client.displayvideo.users.bulkEditAssignedUserRoles({
4584
+ userId: "Test string",
4585
+ }, {
4586
+ createdAssignedUserRoles: [
4587
+ {
4588
+ advertiserId: "Test string",
4589
+ assignedUserRoleId: "Test string",
4590
+ partnerId: "Test string",
4591
+ userRole: "Test string",
4592
+ }
4593
+ ],
4594
+ deletedAssignedUserRoles: [
4595
+ "Test string"
4596
+ ],
4597
+ });
4598
+ /** Creates a new user. Returns the newly created user if successful. */
4599
+ await gapi.client.displayvideo.users.create({
4600
+ }, {
4601
+ assignedUserRoles: [
4602
+ {
4603
+ advertiserId: "Test string",
4604
+ assignedUserRoleId: "Test string",
4605
+ partnerId: "Test string",
4606
+ userRole: "Test string",
4607
+ }
4608
+ ],
4609
+ displayName: "Test string",
4610
+ email: "Test string",
4611
+ name: "Test string",
4612
+ userId: "Test string",
4613
+ });
4614
+ /** Deletes a user. */
4615
+ await gapi.client.displayvideo.users.delete({
4616
+ userId: "Test string",
4617
+ });
4618
+ /** Gets a user. */
4619
+ await gapi.client.displayvideo.users.get({
4620
+ userId: "Test string",
4621
+ });
4622
+ /** Lists users that are accessible to the current user. If two users have user roles on the same partner or advertiser, they can access each other. */
4623
+ await gapi.client.displayvideo.users.list({
4624
+ filter: "Test string",
4625
+ orderBy: "Test string",
4626
+ pageSize: 42,
4627
+ pageToken: "Test string",
4628
+ });
4629
+ /** Updates an existing user. Returns the updated user if successful. */
4630
+ await gapi.client.displayvideo.users.patch({
4631
+ updateMask: "Test string",
4632
+ userId: "Test string",
4633
+ }, {
4634
+ assignedUserRoles: [
4635
+ {
4636
+ advertiserId: "Test string",
4637
+ assignedUserRoleId: "Test string",
4638
+ partnerId: "Test string",
4639
+ userRole: "Test string",
4640
+ }
4641
+ ],
4642
+ displayName: "Test string",
4643
+ email: "Test string",
4644
+ name: "Test string",
4645
+ userId: "Test string",
4646
+ });
4647
+ }
4648
+ });