@maxim_mazurok/gapi.client.displayvideo-v2 0.0.20221021 → 0.0.20221027

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.
Files changed (3) hide show
  1. package/index.d.ts +191 -1
  2. package/package.json +1 -1
  3. package/tests.ts +318 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://displayvideo.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20221021
12
+ // Revision: 20221027
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1369,6 +1369,14 @@ declare namespace gapi.client {
1369
1369
  /** Target web inventory to maximize fully viewable rate. */
1370
1370
  videoViewableRate?: string;
1371
1371
  }
1372
+ interface DuplicateLineItemRequest {
1373
+ /** The display name of the resulting line item. Must be UTF-8 encoded with a maximum size of 240 bytes. */
1374
+ targetDisplayName?: string;
1375
+ }
1376
+ interface DuplicateLineItemResponse {
1377
+ /** The ID of the successfully created line item. */
1378
+ duplicateLineItemId?: string;
1379
+ }
1372
1380
  interface EditCustomerMatchMembersRequest {
1373
1381
  /** Input only. A list of contact information to define the members to be added. */
1374
1382
  addedContactInfoList?: ContactInfoList;
@@ -4336,6 +4344,128 @@ declare namespace gapi.client {
4336
4344
  body: Creative): Request<Creative>;
4337
4345
  }
4338
4346
  interface AssignedTargetingOptionsResource {
4347
+ /**
4348
+ * Assigns a targeting option to an insertion order. Returns the assigned targeting option if successful. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` *
4349
+ * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` *
4350
+ * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` *
4351
+ * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
4352
+ */
4353
+ create(request: {
4354
+ /** V1 error format. */
4355
+ "$.xgafv"?: string;
4356
+ /** OAuth access token. */
4357
+ access_token?: string;
4358
+ /** Required. The ID of the advertiser the insertion order belongs to. */
4359
+ advertiserId: string;
4360
+ /** Data format for response. */
4361
+ alt?: string;
4362
+ /** JSONP */
4363
+ callback?: string;
4364
+ /** Selector specifying which fields to include in a partial response. */
4365
+ fields?: string;
4366
+ /** Required. The ID of the insertion order the assigned targeting option will belong to. */
4367
+ insertionOrderId: string;
4368
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4369
+ key?: string;
4370
+ /** OAuth 2.0 token for the current user. */
4371
+ oauth_token?: string;
4372
+ /** Returns response with indentations and line breaks. */
4373
+ prettyPrint?: boolean;
4374
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4375
+ quotaUser?: string;
4376
+ /**
4377
+ * Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_CATEGORY` *
4378
+ * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_GENDER` *
4379
+ * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` *
4380
+ * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
4381
+ */
4382
+ targetingType: string;
4383
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4384
+ upload_protocol?: string;
4385
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4386
+ uploadType?: string;
4387
+ /** Request body */
4388
+ resource: AssignedTargetingOption;
4389
+ }): Request<AssignedTargetingOption>;
4390
+ create(request: {
4391
+ /** V1 error format. */
4392
+ "$.xgafv"?: string;
4393
+ /** OAuth access token. */
4394
+ access_token?: string;
4395
+ /** Required. The ID of the advertiser the insertion order belongs to. */
4396
+ advertiserId: string;
4397
+ /** Data format for response. */
4398
+ alt?: string;
4399
+ /** JSONP */
4400
+ callback?: string;
4401
+ /** Selector specifying which fields to include in a partial response. */
4402
+ fields?: string;
4403
+ /** Required. The ID of the insertion order the assigned targeting option will belong to. */
4404
+ insertionOrderId: string;
4405
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4406
+ key?: string;
4407
+ /** OAuth 2.0 token for the current user. */
4408
+ oauth_token?: string;
4409
+ /** Returns response with indentations and line breaks. */
4410
+ prettyPrint?: boolean;
4411
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4412
+ quotaUser?: string;
4413
+ /**
4414
+ * Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_CATEGORY` *
4415
+ * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_GENDER` *
4416
+ * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` *
4417
+ * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
4418
+ */
4419
+ targetingType: string;
4420
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4421
+ upload_protocol?: string;
4422
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4423
+ uploadType?: string;
4424
+ },
4425
+ body: AssignedTargetingOption): Request<AssignedTargetingOption>;
4426
+ /**
4427
+ * Deletes an assigned targeting option from an insertion order. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_CATEGORY` *
4428
+ * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_GENDER` *
4429
+ * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` *
4430
+ * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
4431
+ */
4432
+ delete(request?: {
4433
+ /** V1 error format. */
4434
+ "$.xgafv"?: string;
4435
+ /** OAuth access token. */
4436
+ access_token?: string;
4437
+ /** Required. The ID of the advertiser the insertion order belongs to. */
4438
+ advertiserId: string;
4439
+ /** Data format for response. */
4440
+ alt?: string;
4441
+ /** Required. The ID of the assigned targeting option to delete. */
4442
+ assignedTargetingOptionId: string;
4443
+ /** JSONP */
4444
+ callback?: string;
4445
+ /** Selector specifying which fields to include in a partial response. */
4446
+ fields?: string;
4447
+ /** Required. The ID of the insertion order the assigned targeting option belongs to. */
4448
+ insertionOrderId: string;
4449
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4450
+ key?: string;
4451
+ /** OAuth 2.0 token for the current user. */
4452
+ oauth_token?: string;
4453
+ /** Returns response with indentations and line breaks. */
4454
+ prettyPrint?: boolean;
4455
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4456
+ quotaUser?: string;
4457
+ /**
4458
+ * Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_CATEGORY` *
4459
+ * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_GENDER` *
4460
+ * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` *
4461
+ * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
4462
+ */
4463
+ targetingType: string;
4464
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4465
+ upload_protocol?: string;
4466
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4467
+ uploadType?: string;
4468
+ }): Request<{}>;
4339
4469
  /** Gets a single targeting option assigned to an insertion order. */
4340
4470
  get(request?: {
4341
4471
  /** V1 error format. */
@@ -5229,6 +5359,66 @@ declare namespace gapi.client {
5229
5359
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5230
5360
  uploadType?: string;
5231
5361
  }): Request<{}>;
5362
+ /** Duplicates a line item. Returns the newly created line item id if successful. */
5363
+ duplicate(request: {
5364
+ /** V1 error format. */
5365
+ "$.xgafv"?: string;
5366
+ /** OAuth access token. */
5367
+ access_token?: string;
5368
+ /** Required. The ID of the advertiser this line item belongs to. */
5369
+ advertiserId: string;
5370
+ /** Data format for response. */
5371
+ alt?: string;
5372
+ /** JSONP */
5373
+ callback?: string;
5374
+ /** Selector specifying which fields to include in a partial response. */
5375
+ fields?: string;
5376
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5377
+ key?: string;
5378
+ /** Required. The ID of the line item to duplicate. */
5379
+ lineItemId: string;
5380
+ /** OAuth 2.0 token for the current user. */
5381
+ oauth_token?: string;
5382
+ /** Returns response with indentations and line breaks. */
5383
+ prettyPrint?: boolean;
5384
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5385
+ quotaUser?: string;
5386
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5387
+ upload_protocol?: string;
5388
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5389
+ uploadType?: string;
5390
+ /** Request body */
5391
+ resource: DuplicateLineItemRequest;
5392
+ }): Request<DuplicateLineItemResponse>;
5393
+ duplicate(request: {
5394
+ /** V1 error format. */
5395
+ "$.xgafv"?: string;
5396
+ /** OAuth access token. */
5397
+ access_token?: string;
5398
+ /** Required. The ID of the advertiser this line item belongs to. */
5399
+ advertiserId: string;
5400
+ /** Data format for response. */
5401
+ alt?: string;
5402
+ /** JSONP */
5403
+ callback?: string;
5404
+ /** Selector specifying which fields to include in a partial response. */
5405
+ fields?: string;
5406
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5407
+ key?: string;
5408
+ /** Required. The ID of the line item to duplicate. */
5409
+ lineItemId: string;
5410
+ /** OAuth 2.0 token for the current user. */
5411
+ oauth_token?: string;
5412
+ /** Returns response with indentations and line breaks. */
5413
+ prettyPrint?: boolean;
5414
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5415
+ quotaUser?: string;
5416
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5417
+ upload_protocol?: string;
5418
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5419
+ uploadType?: string;
5420
+ },
5421
+ body: DuplicateLineItemRequest): Request<DuplicateLineItemResponse>;
5232
5422
  /**
5233
5423
  * 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
5234
5424
  * 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.displayvideo-v2",
3
- "version": "0.0.20221021",
3
+ "version": "0.0.20221027",
4
4
  "description": "TypeScript typings for Display & Video 360 API v2",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20221021
6
+ // Revision: 20221027
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1342,6 +1342,316 @@ gapi.load('client', async () => {
1342
1342
  reservationType: "Test string",
1343
1343
  updateTime: "Test string",
1344
1344
  });
1345
+ /**
1346
+ * Assigns a targeting option to an insertion order. Returns the assigned targeting option if successful. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER`
1347
+ * * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` *
1348
+ * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OPERATING_SYSTEM` *
1349
+ * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
1350
+ */
1351
+ await gapi.client.displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.create({
1352
+ advertiserId: "Test string",
1353
+ insertionOrderId: "Test string",
1354
+ targetingType: "Test string",
1355
+ }, {
1356
+ ageRangeDetails: {
1357
+ ageRange: "Test string",
1358
+ },
1359
+ appCategoryDetails: {
1360
+ displayName: "Test string",
1361
+ negative: true,
1362
+ targetingOptionId: "Test string",
1363
+ },
1364
+ appDetails: {
1365
+ appId: "Test string",
1366
+ appPlatform: "Test string",
1367
+ displayName: "Test string",
1368
+ negative: true,
1369
+ },
1370
+ assignedTargetingOptionId: "Test string",
1371
+ audienceGroupDetails: {
1372
+ excludedFirstAndThirdPartyAudienceGroup: {
1373
+ settings: [
1374
+ {
1375
+ firstAndThirdPartyAudienceId: "Test string",
1376
+ recency: "Test string",
1377
+ }
1378
+ ],
1379
+ },
1380
+ excludedGoogleAudienceGroup: {
1381
+ settings: [
1382
+ {
1383
+ googleAudienceId: "Test string",
1384
+ }
1385
+ ],
1386
+ },
1387
+ includedCombinedAudienceGroup: {
1388
+ settings: [
1389
+ {
1390
+ combinedAudienceId: "Test string",
1391
+ }
1392
+ ],
1393
+ },
1394
+ includedCustomListGroup: {
1395
+ settings: [
1396
+ {
1397
+ customListId: "Test string",
1398
+ }
1399
+ ],
1400
+ },
1401
+ includedFirstAndThirdPartyAudienceGroups: [
1402
+ {
1403
+ settings: [
1404
+ {
1405
+ firstAndThirdPartyAudienceId: "Test string",
1406
+ recency: "Test string",
1407
+ }
1408
+ ],
1409
+ }
1410
+ ],
1411
+ includedGoogleAudienceGroup: {
1412
+ settings: [
1413
+ {
1414
+ googleAudienceId: "Test string",
1415
+ }
1416
+ ],
1417
+ },
1418
+ },
1419
+ audioContentTypeDetails: {
1420
+ audioContentType: "Test string",
1421
+ },
1422
+ authorizedSellerStatusDetails: {
1423
+ authorizedSellerStatus: "Test string",
1424
+ targetingOptionId: "Test string",
1425
+ },
1426
+ browserDetails: {
1427
+ displayName: "Test string",
1428
+ negative: true,
1429
+ targetingOptionId: "Test string",
1430
+ },
1431
+ businessChainDetails: {
1432
+ displayName: "Test string",
1433
+ proximityRadiusAmount: 42,
1434
+ proximityRadiusUnit: "Test string",
1435
+ targetingOptionId: "Test string",
1436
+ },
1437
+ carrierAndIspDetails: {
1438
+ displayName: "Test string",
1439
+ negative: true,
1440
+ targetingOptionId: "Test string",
1441
+ },
1442
+ categoryDetails: {
1443
+ displayName: "Test string",
1444
+ negative: true,
1445
+ targetingOptionId: "Test string",
1446
+ },
1447
+ channelDetails: {
1448
+ channelId: "Test string",
1449
+ negative: true,
1450
+ },
1451
+ contentDurationDetails: {
1452
+ contentDuration: "Test string",
1453
+ targetingOptionId: "Test string",
1454
+ },
1455
+ contentGenreDetails: {
1456
+ displayName: "Test string",
1457
+ negative: true,
1458
+ targetingOptionId: "Test string",
1459
+ },
1460
+ contentInstreamPositionDetails: {
1461
+ adType: "Test string",
1462
+ contentInstreamPosition: "Test string",
1463
+ },
1464
+ contentOutstreamPositionDetails: {
1465
+ adType: "Test string",
1466
+ contentOutstreamPosition: "Test string",
1467
+ },
1468
+ contentStreamTypeDetails: {
1469
+ contentStreamType: "Test string",
1470
+ targetingOptionId: "Test string",
1471
+ },
1472
+ dayAndTimeDetails: {
1473
+ dayOfWeek: "Test string",
1474
+ endHour: 42,
1475
+ startHour: 42,
1476
+ timeZoneResolution: "Test string",
1477
+ },
1478
+ deviceMakeModelDetails: {
1479
+ displayName: "Test string",
1480
+ negative: true,
1481
+ targetingOptionId: "Test string",
1482
+ },
1483
+ deviceTypeDetails: {
1484
+ deviceType: "Test string",
1485
+ youtubeAndPartnersBidMultiplier: 42,
1486
+ },
1487
+ digitalContentLabelExclusionDetails: {
1488
+ excludedContentRatingTier: "Test string",
1489
+ },
1490
+ environmentDetails: {
1491
+ environment: "Test string",
1492
+ },
1493
+ exchangeDetails: {
1494
+ exchange: "Test string",
1495
+ },
1496
+ genderDetails: {
1497
+ gender: "Test string",
1498
+ },
1499
+ geoRegionDetails: {
1500
+ displayName: "Test string",
1501
+ geoRegionType: "Test string",
1502
+ negative: true,
1503
+ targetingOptionId: "Test string",
1504
+ },
1505
+ householdIncomeDetails: {
1506
+ householdIncome: "Test string",
1507
+ },
1508
+ inheritance: "Test string",
1509
+ inventorySourceDetails: {
1510
+ inventorySourceId: "Test string",
1511
+ },
1512
+ inventorySourceGroupDetails: {
1513
+ inventorySourceGroupId: "Test string",
1514
+ },
1515
+ keywordDetails: {
1516
+ keyword: "Test string",
1517
+ negative: true,
1518
+ },
1519
+ languageDetails: {
1520
+ displayName: "Test string",
1521
+ negative: true,
1522
+ targetingOptionId: "Test string",
1523
+ },
1524
+ name: "Test string",
1525
+ nativeContentPositionDetails: {
1526
+ contentPosition: "Test string",
1527
+ },
1528
+ negativeKeywordListDetails: {
1529
+ negativeKeywordListId: "Test string",
1530
+ },
1531
+ omidDetails: {
1532
+ omid: "Test string",
1533
+ },
1534
+ onScreenPositionDetails: {
1535
+ adType: "Test string",
1536
+ onScreenPosition: "Test string",
1537
+ targetingOptionId: "Test string",
1538
+ },
1539
+ operatingSystemDetails: {
1540
+ displayName: "Test string",
1541
+ negative: true,
1542
+ targetingOptionId: "Test string",
1543
+ },
1544
+ parentalStatusDetails: {
1545
+ parentalStatus: "Test string",
1546
+ },
1547
+ poiDetails: {
1548
+ displayName: "Test string",
1549
+ latitude: 42,
1550
+ longitude: 42,
1551
+ proximityRadiusAmount: 42,
1552
+ proximityRadiusUnit: "Test string",
1553
+ targetingOptionId: "Test string",
1554
+ },
1555
+ proximityLocationListDetails: {
1556
+ proximityLocationListId: "Test string",
1557
+ proximityRadius: 42,
1558
+ proximityRadiusUnit: "Test string",
1559
+ },
1560
+ regionalLocationListDetails: {
1561
+ negative: true,
1562
+ regionalLocationListId: "Test string",
1563
+ },
1564
+ sensitiveCategoryExclusionDetails: {
1565
+ excludedSensitiveCategory: "Test string",
1566
+ },
1567
+ subExchangeDetails: {
1568
+ targetingOptionId: "Test string",
1569
+ },
1570
+ targetingType: "Test string",
1571
+ thirdPartyVerifierDetails: {
1572
+ adloox: {
1573
+ excludedAdlooxCategories: [
1574
+ "Test string"
1575
+ ],
1576
+ },
1577
+ doubleVerify: {
1578
+ appStarRating: {
1579
+ avoidedStarRating: "Test string",
1580
+ avoidInsufficientStarRating: true,
1581
+ },
1582
+ avoidedAgeRatings: [
1583
+ "Test string"
1584
+ ],
1585
+ brandSafetyCategories: {
1586
+ avoidedHighSeverityCategories: [
1587
+ "Test string"
1588
+ ],
1589
+ avoidedMediumSeverityCategories: [
1590
+ "Test string"
1591
+ ],
1592
+ avoidUnknownBrandSafetyCategory: true,
1593
+ },
1594
+ customSegmentId: "Test string",
1595
+ displayViewability: {
1596
+ iab: "Test string",
1597
+ viewableDuring: "Test string",
1598
+ },
1599
+ fraudInvalidTraffic: {
1600
+ avoidedFraudOption: "Test string",
1601
+ avoidInsufficientOption: true,
1602
+ },
1603
+ videoViewability: {
1604
+ playerImpressionRate: "Test string",
1605
+ videoIab: "Test string",
1606
+ videoViewableRate: "Test string",
1607
+ },
1608
+ },
1609
+ integralAdScience: {
1610
+ customSegmentId: [
1611
+ "Test string"
1612
+ ],
1613
+ displayViewability: "Test string",
1614
+ excludedAdFraudRisk: "Test string",
1615
+ excludedAdultRisk: "Test string",
1616
+ excludedAlcoholRisk: "Test string",
1617
+ excludedDrugsRisk: "Test string",
1618
+ excludedGamblingRisk: "Test string",
1619
+ excludedHateSpeechRisk: "Test string",
1620
+ excludedIllegalDownloadsRisk: "Test string",
1621
+ excludedOffensiveLanguageRisk: "Test string",
1622
+ excludedViolenceRisk: "Test string",
1623
+ excludeUnrateable: true,
1624
+ traqScoreOption: "Test string",
1625
+ videoViewability: "Test string",
1626
+ },
1627
+ },
1628
+ urlDetails: {
1629
+ negative: true,
1630
+ url: "Test string",
1631
+ },
1632
+ userRewardedContentDetails: {
1633
+ targetingOptionId: "Test string",
1634
+ userRewardedContent: "Test string",
1635
+ },
1636
+ videoPlayerSizeDetails: {
1637
+ videoPlayerSize: "Test string",
1638
+ },
1639
+ viewabilityDetails: {
1640
+ viewability: "Test string",
1641
+ },
1642
+ });
1643
+ /**
1644
+ * Deletes an assigned targeting option from an insertion order. Supported targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_CATEGORY` *
1645
+ * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_GENDER` *
1646
+ * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` *
1647
+ * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
1648
+ */
1649
+ await gapi.client.displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.delete({
1650
+ advertiserId: "Test string",
1651
+ assignedTargetingOptionId: "Test string",
1652
+ insertionOrderId: "Test string",
1653
+ targetingType: "Test string",
1654
+ });
1345
1655
  /** Gets a single targeting option assigned to an insertion order. */
1346
1656
  await gapi.client.displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.get({
1347
1657
  advertiserId: "Test string",
@@ -2017,6 +2327,13 @@ gapi.load('client', async () => {
2017
2327
  advertiserId: "Test string",
2018
2328
  lineItemId: "Test string",
2019
2329
  });
2330
+ /** Duplicates a line item. Returns the newly created line item id if successful. */
2331
+ await gapi.client.displayvideo.advertisers.lineItems.duplicate({
2332
+ advertiserId: "Test string",
2333
+ lineItemId: "Test string",
2334
+ }, {
2335
+ targetDisplayName: "Test string",
2336
+ });
2020
2337
  /**
2021
2338
  * 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
2339
  * 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