google-apis-displayvideo_v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36519955e18d684befa7ee1eaeb54b211cbe6c7996775b57027834a41787de44
4
- data.tar.gz: 754fe72b2a408027adddb37a263c803944cc3f9ea1e34675ad992272af5d70dd
3
+ metadata.gz: e335b301f1809322b86ffed176908f40fe4cc12436ca39ef8fb3a80699c8c0ef
4
+ data.tar.gz: 8d39a46a9351ac765cbcd5ecef453a3d6961f55a15b1ba03bd1bd805b9b68d8b
5
5
  SHA512:
6
- metadata.gz: 0fd7cbbe2422ad5262aaa46b65d5b8523e9c9b8300c31cd9aecc07ea2d2c41eb1222d614e6cc8967d51ba8ea18cccecd33bca7c9578d1b1a58059522a250c8b5
7
- data.tar.gz: 5287b9f515c1582d9e59164be91106f29e55723db20e1f23464d848434dd571ae30fafd834e12f61bffcde4c1e36efc111136b0fc2b07e794f602f094d5a2083
6
+ metadata.gz: 055aa71a8edb0f6bfcf5755c813e6c0a925d5eb47f10eaf4be8701e1b3e2d15d8d48f50c61cf43c2c6c13be355f95b5bd64dacedb975e199f8954925968aad42
7
+ data.tar.gz: 21985c67d404254517bffa273dbb04520f85086ced373ceea3caf715d56e64b7952be2c29a483ea1cc23d2b5ba0b85bba54440d73200871d1564248004856dbd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-displayvideo_v1
2
2
 
3
+ ### v0.7.0 (2021-03-23)
4
+
5
+ * Regenerated from discovery document revision 20210318
6
+
3
7
  ### v0.6.0 (2021-03-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20210312
@@ -456,6 +456,13 @@ module Google
456
456
  # @return [String]
457
457
  attr_accessor :app_id
458
458
 
459
+ # Indicates the platform of the targeted app. If this field is not specified,
460
+ # the app platform will be assumed to be mobile (i.e., Android or iOS), and we
461
+ # will derive the appropriate mobile platform from the app ID.
462
+ # Corresponds to the JSON property `appPlatform`
463
+ # @return [String]
464
+ attr_accessor :app_platform
465
+
459
466
  # Output only. The display name of the app.
460
467
  # Corresponds to the JSON property `displayName`
461
468
  # @return [String]
@@ -474,6 +481,7 @@ module Google
474
481
  # Update properties of this object
475
482
  def update!(**args)
476
483
  @app_id = args[:app_id] if args.key?(:app_id)
484
+ @app_platform = args[:app_platform] if args.key?(:app_platform)
477
485
  @display_name = args[:display_name] if args.key?(:display_name)
478
486
  @negative = args[:negative] if args.key?(:negative)
479
487
  end
@@ -1781,6 +1789,35 @@ module Google
1781
1789
  end
1782
1790
  end
1783
1791
 
1792
+ # Response message for BulkListCampaignAssignedTargetingOptions.
1793
+ class BulkListCampaignAssignedTargetingOptionsResponse
1794
+ include Google::Apis::Core::Hashable
1795
+
1796
+ # The list of assigned targeting options. This list will be absent if empty.
1797
+ # Corresponds to the JSON property `assignedTargetingOptions`
1798
+ # @return [Array<Google::Apis::DisplayvideoV1::AssignedTargetingOption>]
1799
+ attr_accessor :assigned_targeting_options
1800
+
1801
+ # A token identifying the next page of results. This value should be specified
1802
+ # as the pageToken in a subsequent
1803
+ # BulkListCampaignAssignedTargetingOptionsRequest to fetch the next page of
1804
+ # results. This token will be absent if there are no more
1805
+ # assigned_targeting_options to return.
1806
+ # Corresponds to the JSON property `nextPageToken`
1807
+ # @return [String]
1808
+ attr_accessor :next_page_token
1809
+
1810
+ def initialize(**args)
1811
+ update!(**args)
1812
+ end
1813
+
1814
+ # Update properties of this object
1815
+ def update!(**args)
1816
+ @assigned_targeting_options = args[:assigned_targeting_options] if args.key?(:assigned_targeting_options)
1817
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1818
+ end
1819
+ end
1820
+
1784
1821
  # Response message for BulkListInsertionOrderAssignedTargetingOptions.
1785
1822
  class BulkListInsertionOrderAssignedTargetingOptionsResponse
1786
1823
  include Google::Apis::Core::Hashable
@@ -4344,6 +4381,44 @@ module Google
4344
4381
  end
4345
4382
  end
4346
4383
 
4384
+ # Request message for LineItemService.GenerateDefaultLineItem.
4385
+ class GenerateDefaultLineItemRequest
4386
+ include Google::Apis::Core::Hashable
4387
+
4388
+ # Required. The display name of the line item. Must be UTF-8 encoded with a
4389
+ # maximum size of 240 bytes.
4390
+ # Corresponds to the JSON property `displayName`
4391
+ # @return [String]
4392
+ attr_accessor :display_name
4393
+
4394
+ # Required. The unique ID of the insertion order that the line item belongs to.
4395
+ # Corresponds to the JSON property `insertionOrderId`
4396
+ # @return [Fixnum]
4397
+ attr_accessor :insertion_order_id
4398
+
4399
+ # Required. The type of the line item.
4400
+ # Corresponds to the JSON property `lineItemType`
4401
+ # @return [String]
4402
+ attr_accessor :line_item_type
4403
+
4404
+ # A mobile app promoted by a mobile app install line item.
4405
+ # Corresponds to the JSON property `mobileApp`
4406
+ # @return [Google::Apis::DisplayvideoV1::MobileApp]
4407
+ attr_accessor :mobile_app
4408
+
4409
+ def initialize(**args)
4410
+ update!(**args)
4411
+ end
4412
+
4413
+ # Update properties of this object
4414
+ def update!(**args)
4415
+ @display_name = args[:display_name] if args.key?(:display_name)
4416
+ @insertion_order_id = args[:insertion_order_id] if args.key?(:insertion_order_id)
4417
+ @line_item_type = args[:line_item_type] if args.key?(:line_item_type)
4418
+ @mobile_app = args[:mobile_app] if args.key?(:mobile_app)
4419
+ end
4420
+ end
4421
+
4347
4422
  # Details for assigned geographic region targeting option. This will be
4348
4423
  # populated in the details field of an AssignedTargetingOption when
4349
4424
  # targeting_type is `TARGETING_TYPE_GEO_REGION`.
@@ -5695,6 +5770,34 @@ module Google
5695
5770
  end
5696
5771
  end
5697
5772
 
5773
+ # Response message for ListCampaignAssignedTargetingOptions.
5774
+ class ListCampaignAssignedTargetingOptionsResponse
5775
+ include Google::Apis::Core::Hashable
5776
+
5777
+ # The list of assigned targeting options. This list will be absent if empty.
5778
+ # Corresponds to the JSON property `assignedTargetingOptions`
5779
+ # @return [Array<Google::Apis::DisplayvideoV1::AssignedTargetingOption>]
5780
+ attr_accessor :assigned_targeting_options
5781
+
5782
+ # A token identifying the next page of results. This value should be specified
5783
+ # as the pageToken in a subsequent ListCampaignAssignedTargetingOptionsRequest
5784
+ # to fetch the next page of results. This token will be absent if there are no
5785
+ # more assigned_targeting_options to return.
5786
+ # Corresponds to the JSON property `nextPageToken`
5787
+ # @return [String]
5788
+ attr_accessor :next_page_token
5789
+
5790
+ def initialize(**args)
5791
+ update!(**args)
5792
+ end
5793
+
5794
+ # Update properties of this object
5795
+ def update!(**args)
5796
+ @assigned_targeting_options = args[:assigned_targeting_options] if args.key?(:assigned_targeting_options)
5797
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5798
+ end
5799
+ end
5800
+
5698
5801
  #
5699
5802
  class ListCampaignsResponse
5700
5803
  include Google::Apis::Core::Hashable
@@ -7533,6 +7636,96 @@ module Google
7533
7636
  end
7534
7637
  end
7535
7638
 
7639
+ # Request message for NegativeKeywordService.ReplaceNegativeKeywords.
7640
+ class ReplaceNegativeKeywordsRequest
7641
+ include Google::Apis::Core::Hashable
7642
+
7643
+ # The negative keywords that will replace the existing keywords in the negative
7644
+ # keyword list, specified as a list of NegativeKeywords.
7645
+ # Corresponds to the JSON property `newNegativeKeywords`
7646
+ # @return [Array<Google::Apis::DisplayvideoV1::NegativeKeyword>]
7647
+ attr_accessor :new_negative_keywords
7648
+
7649
+ def initialize(**args)
7650
+ update!(**args)
7651
+ end
7652
+
7653
+ # Update properties of this object
7654
+ def update!(**args)
7655
+ @new_negative_keywords = args[:new_negative_keywords] if args.key?(:new_negative_keywords)
7656
+ end
7657
+ end
7658
+
7659
+ # Response message for NegativeKeywordService.ReplaceNegativeKeywords.
7660
+ class ReplaceNegativeKeywordsResponse
7661
+ include Google::Apis::Core::Hashable
7662
+
7663
+ # The full list of negative keywords now present in the negative keyword list.
7664
+ # Corresponds to the JSON property `negativeKeywords`
7665
+ # @return [Array<Google::Apis::DisplayvideoV1::NegativeKeyword>]
7666
+ attr_accessor :negative_keywords
7667
+
7668
+ def initialize(**args)
7669
+ update!(**args)
7670
+ end
7671
+
7672
+ # Update properties of this object
7673
+ def update!(**args)
7674
+ @negative_keywords = args[:negative_keywords] if args.key?(:negative_keywords)
7675
+ end
7676
+ end
7677
+
7678
+ # Request message for SiteService.ReplaceSites.
7679
+ class ReplaceSitesRequest
7680
+ include Google::Apis::Core::Hashable
7681
+
7682
+ # The ID of the advertiser that owns the parent channel.
7683
+ # Corresponds to the JSON property `advertiserId`
7684
+ # @return [Fixnum]
7685
+ attr_accessor :advertiser_id
7686
+
7687
+ # The sites that will replace the existing sites assigned to the channel,
7688
+ # specified as a list of Sites.
7689
+ # Corresponds to the JSON property `newSites`
7690
+ # @return [Array<Google::Apis::DisplayvideoV1::Site>]
7691
+ attr_accessor :new_sites
7692
+
7693
+ # The ID of the partner that owns the parent channel.
7694
+ # Corresponds to the JSON property `partnerId`
7695
+ # @return [Fixnum]
7696
+ attr_accessor :partner_id
7697
+
7698
+ def initialize(**args)
7699
+ update!(**args)
7700
+ end
7701
+
7702
+ # Update properties of this object
7703
+ def update!(**args)
7704
+ @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
7705
+ @new_sites = args[:new_sites] if args.key?(:new_sites)
7706
+ @partner_id = args[:partner_id] if args.key?(:partner_id)
7707
+ end
7708
+ end
7709
+
7710
+ # Response message for SiteService.ReplaceSites.
7711
+ class ReplaceSitesResponse
7712
+ include Google::Apis::Core::Hashable
7713
+
7714
+ # The list of sites in the channel after replacing.
7715
+ # Corresponds to the JSON property `sites`
7716
+ # @return [Array<Google::Apis::DisplayvideoV1::Site>]
7717
+ attr_accessor :sites
7718
+
7719
+ def initialize(**args)
7720
+ update!(**args)
7721
+ end
7722
+
7723
+ # Update properties of this object
7724
+ def update!(**args)
7725
+ @sites = args[:sites] if args.key?(:sites)
7726
+ end
7727
+ end
7728
+
7536
7729
  # Review statuses for the creative.
7537
7730
  class ReviewStatusInfo
7538
7731
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DisplayvideoV1
18
18
  # Version of the google-apis-displayvideo_v1 gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210312"
25
+ REVISION = "20210318"
26
26
  end
27
27
  end
28
28
  end
@@ -298,6 +298,12 @@ module Google
298
298
  include Google::Apis::Core::JsonObjectSupport
299
299
  end
300
300
 
301
+ class BulkListCampaignAssignedTargetingOptionsResponse
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
301
307
  class BulkListInsertionOrderAssignedTargetingOptionsResponse
302
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
309
 
@@ -700,6 +706,12 @@ module Google
700
706
  include Google::Apis::Core::JsonObjectSupport
701
707
  end
702
708
 
709
+ class GenerateDefaultLineItemRequest
710
+ class Representation < Google::Apis::Core::JsonRepresentation; end
711
+
712
+ include Google::Apis::Core::JsonObjectSupport
713
+ end
714
+
703
715
  class GeoRegionAssignedTargetingOptionDetails
704
716
  class Representation < Google::Apis::Core::JsonRepresentation; end
705
717
 
@@ -898,6 +910,12 @@ module Google
898
910
  include Google::Apis::Core::JsonObjectSupport
899
911
  end
900
912
 
913
+ class ListCampaignAssignedTargetingOptionsResponse
914
+ class Representation < Google::Apis::Core::JsonRepresentation; end
915
+
916
+ include Google::Apis::Core::JsonObjectSupport
917
+ end
918
+
901
919
  class ListCampaignsResponse
902
920
  class Representation < Google::Apis::Core::JsonRepresentation; end
903
921
 
@@ -1228,6 +1246,30 @@ module Google
1228
1246
  include Google::Apis::Core::JsonObjectSupport
1229
1247
  end
1230
1248
 
1249
+ class ReplaceNegativeKeywordsRequest
1250
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1251
+
1252
+ include Google::Apis::Core::JsonObjectSupport
1253
+ end
1254
+
1255
+ class ReplaceNegativeKeywordsResponse
1256
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1257
+
1258
+ include Google::Apis::Core::JsonObjectSupport
1259
+ end
1260
+
1261
+ class ReplaceSitesRequest
1262
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1263
+
1264
+ include Google::Apis::Core::JsonObjectSupport
1265
+ end
1266
+
1267
+ class ReplaceSitesResponse
1268
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1269
+
1270
+ include Google::Apis::Core::JsonObjectSupport
1271
+ end
1272
+
1231
1273
  class ReviewStatusInfo
1232
1274
  class Representation < Google::Apis::Core::JsonRepresentation; end
1233
1275
 
@@ -1528,6 +1570,7 @@ module Google
1528
1570
  # @private
1529
1571
  class Representation < Google::Apis::Core::JsonRepresentation
1530
1572
  property :app_id, as: 'appId'
1573
+ property :app_platform, as: 'appPlatform'
1531
1574
  property :display_name, as: 'displayName'
1532
1575
  property :negative, as: 'negative'
1533
1576
  end
@@ -1913,6 +1956,15 @@ module Google
1913
1956
  end
1914
1957
  end
1915
1958
 
1959
+ class BulkListCampaignAssignedTargetingOptionsResponse
1960
+ # @private
1961
+ class Representation < Google::Apis::Core::JsonRepresentation
1962
+ collection :assigned_targeting_options, as: 'assignedTargetingOptions', class: Google::Apis::DisplayvideoV1::AssignedTargetingOption, decorator: Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
1963
+
1964
+ property :next_page_token, as: 'nextPageToken'
1965
+ end
1966
+ end
1967
+
1916
1968
  class BulkListInsertionOrderAssignedTargetingOptionsResponse
1917
1969
  # @private
1918
1970
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2579,6 +2631,17 @@ module Google
2579
2631
  end
2580
2632
  end
2581
2633
 
2634
+ class GenerateDefaultLineItemRequest
2635
+ # @private
2636
+ class Representation < Google::Apis::Core::JsonRepresentation
2637
+ property :display_name, as: 'displayName'
2638
+ property :insertion_order_id, :numeric_string => true, as: 'insertionOrderId'
2639
+ property :line_item_type, as: 'lineItemType'
2640
+ property :mobile_app, as: 'mobileApp', class: Google::Apis::DisplayvideoV1::MobileApp, decorator: Google::Apis::DisplayvideoV1::MobileApp::Representation
2641
+
2642
+ end
2643
+ end
2644
+
2582
2645
  class GeoRegionAssignedTargetingOptionDetails
2583
2646
  # @private
2584
2647
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2939,6 +3002,15 @@ module Google
2939
3002
  end
2940
3003
  end
2941
3004
 
3005
+ class ListCampaignAssignedTargetingOptionsResponse
3006
+ # @private
3007
+ class Representation < Google::Apis::Core::JsonRepresentation
3008
+ collection :assigned_targeting_options, as: 'assignedTargetingOptions', class: Google::Apis::DisplayvideoV1::AssignedTargetingOption, decorator: Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
3009
+
3010
+ property :next_page_token, as: 'nextPageToken'
3011
+ end
3012
+ end
3013
+
2942
3014
  class ListCampaignsResponse
2943
3015
  # @private
2944
3016
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3450,6 +3522,40 @@ module Google
3450
3522
  end
3451
3523
  end
3452
3524
 
3525
+ class ReplaceNegativeKeywordsRequest
3526
+ # @private
3527
+ class Representation < Google::Apis::Core::JsonRepresentation
3528
+ collection :new_negative_keywords, as: 'newNegativeKeywords', class: Google::Apis::DisplayvideoV1::NegativeKeyword, decorator: Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
3529
+
3530
+ end
3531
+ end
3532
+
3533
+ class ReplaceNegativeKeywordsResponse
3534
+ # @private
3535
+ class Representation < Google::Apis::Core::JsonRepresentation
3536
+ collection :negative_keywords, as: 'negativeKeywords', class: Google::Apis::DisplayvideoV1::NegativeKeyword, decorator: Google::Apis::DisplayvideoV1::NegativeKeyword::Representation
3537
+
3538
+ end
3539
+ end
3540
+
3541
+ class ReplaceSitesRequest
3542
+ # @private
3543
+ class Representation < Google::Apis::Core::JsonRepresentation
3544
+ property :advertiser_id, :numeric_string => true, as: 'advertiserId'
3545
+ collection :new_sites, as: 'newSites', class: Google::Apis::DisplayvideoV1::Site, decorator: Google::Apis::DisplayvideoV1::Site::Representation
3546
+
3547
+ property :partner_id, :numeric_string => true, as: 'partnerId'
3548
+ end
3549
+ end
3550
+
3551
+ class ReplaceSitesResponse
3552
+ # @private
3553
+ class Representation < Google::Apis::Core::JsonRepresentation
3554
+ collection :sites, as: 'sites', class: Google::Apis::DisplayvideoV1::Site, decorator: Google::Apis::DisplayvideoV1::Site::Representation
3555
+
3556
+ end
3557
+ end
3558
+
3453
3559
  class ReviewStatusInfo
3454
3560
  # @private
3455
3561
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -421,6 +421,69 @@ module Google
421
421
  execute_or_queue_command(command, &block)
422
422
  end
423
423
 
424
+ # Lists assigned targeting options of a campaign across targeting types.
425
+ # @param [Fixnum] advertiser_id
426
+ # Required. The ID of the advertiser the campaign belongs to.
427
+ # @param [Fixnum] campaign_id
428
+ # Required. The ID of the campaign to list assigned targeting options for.
429
+ # @param [String] filter
430
+ # Allows filtering by assigned targeting option properties. Supported syntax: *
431
+ # Filter expressions are made up of one or more restrictions. * Restrictions can
432
+ # be combined by the logical operator `OR` on the same field. * A restriction
433
+ # has the form of ``field` `operator` `value``. * The operator must be `EQUALS (=
434
+ # )`. * Supported fields: - `targetingType` - `inheritance` Examples: *
435
+ # AssignedTargetingOptions of targeting type TARGETING_TYPE_LANGUAGE or
436
+ # TARGETING_TYPE_GENDER `targetingType="TARGETING_TYPE_LANGUAGE" OR
437
+ # targetingType="TARGETING_TYPE_GENDER"` * AssignedTargetingOptions with
438
+ # inheritance status of NOT_INHERITED or INHERITED_FROM_PARTNER `inheritance="
439
+ # NOT_INHERITED" OR inheritance="INHERITED_FROM_PARTNER"` The length of this
440
+ # field should be no more than 500 characters.
441
+ # @param [String] order_by
442
+ # Field by which to sort the list. Acceptable values are: * `targetingType` (
443
+ # default) The default sorting order is ascending. To specify descending order
444
+ # for a field, a suffix "desc" should be added to the field name. Example: `
445
+ # targetingType desc`.
446
+ # @param [Fixnum] page_size
447
+ # Requested page size. The size must be an integer between `1` and `5000`. If
448
+ # unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if
449
+ # an invalid value is specified.
450
+ # @param [String] page_token
451
+ # A token that lets the client fetch the next page of results. Typically, this
452
+ # is the value of next_page_token returned from the previous call to `
453
+ # BulkListCampaignAssignedTargetingOptions` method. If not specified, the first
454
+ # page of results will be returned.
455
+ # @param [String] fields
456
+ # Selector specifying which fields to include in a partial response.
457
+ # @param [String] quota_user
458
+ # Available to use for quota purposes for server-side applications. Can be any
459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
460
+ # @param [Google::Apis::RequestOptions] options
461
+ # Request-specific options
462
+ #
463
+ # @yield [result, err] Result & error if block supplied
464
+ # @yieldparam result [Google::Apis::DisplayvideoV1::BulkListCampaignAssignedTargetingOptionsResponse] parsed result object
465
+ # @yieldparam err [StandardError] error object if request failed
466
+ #
467
+ # @return [Google::Apis::DisplayvideoV1::BulkListCampaignAssignedTargetingOptionsResponse]
468
+ #
469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
472
+ def bulk_advertiser_campaign_list_campaign_assigned_targeting_options(advertiser_id, campaign_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
473
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/campaigns/{+campaignId}:bulkListCampaignAssignedTargetingOptions', options)
474
+ command.response_representation = Google::Apis::DisplayvideoV1::BulkListCampaignAssignedTargetingOptionsResponse::Representation
475
+ command.response_class = Google::Apis::DisplayvideoV1::BulkListCampaignAssignedTargetingOptionsResponse
476
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
477
+ command.params['campaignId'] = campaign_id unless campaign_id.nil?
478
+ command.query['filter'] = filter unless filter.nil?
479
+ command.query['orderBy'] = order_by unless order_by.nil?
480
+ command.query['pageSize'] = page_size unless page_size.nil?
481
+ command.query['pageToken'] = page_token unless page_token.nil?
482
+ command.query['fields'] = fields unless fields.nil?
483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
484
+ execute_or_queue_command(command, &block)
485
+ end
486
+
424
487
  # Creates a new campaign. Returns the newly created campaign if successful.
425
488
  # @param [Fixnum] advertiser_id
426
489
  # Output only. The unique ID of the advertiser the campaign belongs to.
@@ -626,6 +689,136 @@ module Google
626
689
  execute_or_queue_command(command, &block)
627
690
  end
628
691
 
692
+ # Gets a single targeting option assigned to a campaign.
693
+ # @param [Fixnum] advertiser_id
694
+ # Required. The ID of the advertiser the campaign belongs to.
695
+ # @param [Fixnum] campaign_id
696
+ # Required. The ID of the campaign the assigned targeting option belongs to.
697
+ # @param [String] targeting_type
698
+ # Required. Identifies the type of this assigned targeting option. Supported
699
+ # targeting types: * `TARGETING_TYPE_AGE_RANGE` * `
700
+ # TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `
701
+ # TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `
702
+ # TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `
703
+ # TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT`
704
+ # * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `
705
+ # TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `
706
+ # TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `
707
+ # TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `
708
+ # TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`
709
+ # * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `
710
+ # TARGETING_TYPE_VIEWABILITY`
711
+ # @param [String] assigned_targeting_option_id
712
+ # Required. An identifier unique to the targeting type in this campaign that
713
+ # identifies the assigned targeting option being requested.
714
+ # @param [String] fields
715
+ # Selector specifying which fields to include in a partial response.
716
+ # @param [String] quota_user
717
+ # Available to use for quota purposes for server-side applications. Can be any
718
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
719
+ # @param [Google::Apis::RequestOptions] options
720
+ # Request-specific options
721
+ #
722
+ # @yield [result, err] Result & error if block supplied
723
+ # @yieldparam result [Google::Apis::DisplayvideoV1::AssignedTargetingOption] parsed result object
724
+ # @yieldparam err [StandardError] error object if request failed
725
+ #
726
+ # @return [Google::Apis::DisplayvideoV1::AssignedTargetingOption]
727
+ #
728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
731
+ def get_advertiser_campaign_targeting_type_assigned_targeting_option(advertiser_id, campaign_id, targeting_type, assigned_targeting_option_id, fields: nil, quota_user: nil, options: nil, &block)
732
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}', options)
733
+ command.response_representation = Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
734
+ command.response_class = Google::Apis::DisplayvideoV1::AssignedTargetingOption
735
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
736
+ command.params['campaignId'] = campaign_id unless campaign_id.nil?
737
+ command.params['targetingType'] = targeting_type unless targeting_type.nil?
738
+ command.params['assignedTargetingOptionId'] = assigned_targeting_option_id unless assigned_targeting_option_id.nil?
739
+ command.query['fields'] = fields unless fields.nil?
740
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
741
+ execute_or_queue_command(command, &block)
742
+ end
743
+
744
+ # Lists the targeting options assigned to a campaign for a specified targeting
745
+ # type.
746
+ # @param [Fixnum] advertiser_id
747
+ # Required. The ID of the advertiser the campaign belongs to.
748
+ # @param [Fixnum] campaign_id
749
+ # Required. The ID of the campaign to list assigned targeting options for.
750
+ # @param [String] targeting_type
751
+ # Required. Identifies the type of assigned targeting options to list. Supported
752
+ # targeting types: * `TARGETING_TYPE_AGE_RANGE` * `
753
+ # TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `
754
+ # TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `
755
+ # TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `
756
+ # TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT`
757
+ # * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `
758
+ # TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `
759
+ # TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `
760
+ # TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `
761
+ # TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`
762
+ # * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `
763
+ # TARGETING_TYPE_VIEWABILITY`
764
+ # @param [String] filter
765
+ # Allows filtering by assigned targeting option properties. Supported syntax: *
766
+ # Filter expressions are made up of one or more restrictions. * Restrictions can
767
+ # be combined by the logical operator `OR`. * A restriction has the form of ``
768
+ # field` `operator` `value``. * The operator must be `EQUALS (=)`. * Supported
769
+ # fields: - `assignedTargetingOptionId` - `inheritance` Examples: *
770
+ # AssignedTargetingOptions with ID 1 or 2 `assignedTargetingOptionId="1" OR
771
+ # assignedTargetingOptionId="2"` * AssignedTargetingOptions with inheritance
772
+ # status of NOT_INHERITED or INHERITED_FROM_PARTNER `inheritance="NOT_INHERITED"
773
+ # OR inheritance="INHERITED_FROM_PARTNER"` The length of this field should be no
774
+ # more than 500 characters.
775
+ # @param [String] order_by
776
+ # Field by which to sort the list. Acceptable values are: * `
777
+ # assignedTargetingOptionId` (default) The default sorting order is ascending.
778
+ # To specify descending order for a field, a suffix "desc" should be added to
779
+ # the field name. Example: `assignedTargetingOptionId desc`.
780
+ # @param [Fixnum] page_size
781
+ # Requested page size. Must be between `1` and `100`. If unspecified will
782
+ # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
783
+ # specified.
784
+ # @param [String] page_token
785
+ # A token identifying a page of results the server should return. Typically,
786
+ # this is the value of next_page_token returned from the previous call to `
787
+ # ListCampaignAssignedTargetingOptions` method. If not specified, the first page
788
+ # of results will be returned.
789
+ # @param [String] fields
790
+ # Selector specifying which fields to include in a partial response.
791
+ # @param [String] quota_user
792
+ # Available to use for quota purposes for server-side applications. Can be any
793
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
794
+ # @param [Google::Apis::RequestOptions] options
795
+ # Request-specific options
796
+ #
797
+ # @yield [result, err] Result & error if block supplied
798
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ListCampaignAssignedTargetingOptionsResponse] parsed result object
799
+ # @yieldparam err [StandardError] error object if request failed
800
+ #
801
+ # @return [Google::Apis::DisplayvideoV1::ListCampaignAssignedTargetingOptionsResponse]
802
+ #
803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
806
+ def list_advertiser_campaign_targeting_type_assigned_targeting_options(advertiser_id, campaign_id, targeting_type, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
807
+ command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions', options)
808
+ command.response_representation = Google::Apis::DisplayvideoV1::ListCampaignAssignedTargetingOptionsResponse::Representation
809
+ command.response_class = Google::Apis::DisplayvideoV1::ListCampaignAssignedTargetingOptionsResponse
810
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
811
+ command.params['campaignId'] = campaign_id unless campaign_id.nil?
812
+ command.params['targetingType'] = targeting_type unless targeting_type.nil?
813
+ command.query['filter'] = filter unless filter.nil?
814
+ command.query['orderBy'] = order_by unless order_by.nil?
815
+ command.query['pageSize'] = page_size unless page_size.nil?
816
+ command.query['pageToken'] = page_token unless page_token.nil?
817
+ command.query['fields'] = fields unless fields.nil?
818
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
819
+ execute_or_queue_command(command, &block)
820
+ end
821
+
629
822
  # Creates a new channel. Returns the newly created channel if successful.
630
823
  # @param [Fixnum] advertiser_id
631
824
  # The ID of the advertiser that owns the created channel.
@@ -974,6 +1167,44 @@ module Google
974
1167
  execute_or_queue_command(command, &block)
975
1168
  end
976
1169
 
1170
+ # Replaces all of the sites under a single channel. The operation will replace
1171
+ # the sites under a channel with the sites provided in ReplaceSitesRequest.
1172
+ # new_sites.
1173
+ # @param [Fixnum] advertiser_id
1174
+ # The ID of the advertiser that owns the parent channel.
1175
+ # @param [Fixnum] channel_id
1176
+ # Required. The ID of the parent channel whose sites will be replaced.
1177
+ # @param [Google::Apis::DisplayvideoV1::ReplaceSitesRequest] replace_sites_request_object
1178
+ # @param [String] fields
1179
+ # Selector specifying which fields to include in a partial response.
1180
+ # @param [String] quota_user
1181
+ # Available to use for quota purposes for server-side applications. Can be any
1182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1183
+ # @param [Google::Apis::RequestOptions] options
1184
+ # Request-specific options
1185
+ #
1186
+ # @yield [result, err] Result & error if block supplied
1187
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ReplaceSitesResponse] parsed result object
1188
+ # @yieldparam err [StandardError] error object if request failed
1189
+ #
1190
+ # @return [Google::Apis::DisplayvideoV1::ReplaceSitesResponse]
1191
+ #
1192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1195
+ def replace_advertiser_channel_site(advertiser_id, channel_id, replace_sites_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1196
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/channels/{+channelId}/sites:replace', options)
1197
+ command.request_representation = Google::Apis::DisplayvideoV1::ReplaceSitesRequest::Representation
1198
+ command.request_object = replace_sites_request_object
1199
+ command.response_representation = Google::Apis::DisplayvideoV1::ReplaceSitesResponse::Representation
1200
+ command.response_class = Google::Apis::DisplayvideoV1::ReplaceSitesResponse
1201
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1202
+ command.params['channelId'] = channel_id unless channel_id.nil?
1203
+ command.query['fields'] = fields unless fields.nil?
1204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1205
+ execute_or_queue_command(command, &block)
1206
+ end
1207
+
977
1208
  # Creates a new creative. Returns the newly created creative if successful.
978
1209
  # @param [Fixnum] advertiser_id
979
1210
  # Output only. The unique ID of the advertiser the creative belongs to.
@@ -1750,6 +1981,43 @@ module Google
1750
1981
  execute_or_queue_command(command, &block)
1751
1982
  end
1752
1983
 
1984
+ # Creates a new line item with settings (including targeting) inherited from the
1985
+ # insertion order. Returns the newly created line item if successful. There are
1986
+ # default values based on the three fields: * The insertion order's
1987
+ # InsertionOrderType * The insertion order's InsertionOrderAutomationType * The
1988
+ # given line_item_type
1989
+ # @param [Fixnum] advertiser_id
1990
+ # Required. The ID of the advertiser this line item belongs to.
1991
+ # @param [Google::Apis::DisplayvideoV1::GenerateDefaultLineItemRequest] generate_default_line_item_request_object
1992
+ # @param [String] fields
1993
+ # Selector specifying which fields to include in a partial response.
1994
+ # @param [String] quota_user
1995
+ # Available to use for quota purposes for server-side applications. Can be any
1996
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1997
+ # @param [Google::Apis::RequestOptions] options
1998
+ # Request-specific options
1999
+ #
2000
+ # @yield [result, err] Result & error if block supplied
2001
+ # @yieldparam result [Google::Apis::DisplayvideoV1::LineItem] parsed result object
2002
+ # @yieldparam err [StandardError] error object if request failed
2003
+ #
2004
+ # @return [Google::Apis::DisplayvideoV1::LineItem]
2005
+ #
2006
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2007
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2008
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2009
+ def generate_default_line_item(advertiser_id, generate_default_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2010
+ command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/lineItems:generateDefault', options)
2011
+ command.request_representation = Google::Apis::DisplayvideoV1::GenerateDefaultLineItemRequest::Representation
2012
+ command.request_object = generate_default_line_item_request_object
2013
+ command.response_representation = Google::Apis::DisplayvideoV1::LineItem::Representation
2014
+ command.response_class = Google::Apis::DisplayvideoV1::LineItem
2015
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2016
+ command.query['fields'] = fields unless fields.nil?
2017
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2018
+ execute_or_queue_command(command, &block)
2019
+ end
2020
+
1753
2021
  # Gets a line item.
1754
2022
  # @param [Fixnum] advertiser_id
1755
2023
  # Required. The ID of the advertiser this line item belongs to.
@@ -3022,6 +3290,46 @@ module Google
3022
3290
  execute_or_queue_command(command, &block)
3023
3291
  end
3024
3292
 
3293
+ # Replaces all negative keywords in a single negative keyword list. The
3294
+ # operation will replace the keywords in a negative keywords with keywords
3295
+ # provided in ReplaceNegativeKeywordsRequest.new_negative_keywords.
3296
+ # @param [Fixnum] advertiser_id
3297
+ # Required. The ID of the DV360 advertiser to which the parent negative keyword
3298
+ # list belongs.
3299
+ # @param [Fixnum] negative_keyword_list_id
3300
+ # Required. The ID of the parent negative keyword list to which the negative
3301
+ # keywords belong.
3302
+ # @param [Google::Apis::DisplayvideoV1::ReplaceNegativeKeywordsRequest] replace_negative_keywords_request_object
3303
+ # @param [String] fields
3304
+ # Selector specifying which fields to include in a partial response.
3305
+ # @param [String] quota_user
3306
+ # Available to use for quota purposes for server-side applications. Can be any
3307
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3308
+ # @param [Google::Apis::RequestOptions] options
3309
+ # Request-specific options
3310
+ #
3311
+ # @yield [result, err] Result & error if block supplied
3312
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ReplaceNegativeKeywordsResponse] parsed result object
3313
+ # @yieldparam err [StandardError] error object if request failed
3314
+ #
3315
+ # @return [Google::Apis::DisplayvideoV1::ReplaceNegativeKeywordsResponse]
3316
+ #
3317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3320
+ def replace_negative_keywords(advertiser_id, negative_keyword_list_id, replace_negative_keywords_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3321
+ command = make_simple_command(:post, 'v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:replace', options)
3322
+ command.request_representation = Google::Apis::DisplayvideoV1::ReplaceNegativeKeywordsRequest::Representation
3323
+ command.request_object = replace_negative_keywords_request_object
3324
+ command.response_representation = Google::Apis::DisplayvideoV1::ReplaceNegativeKeywordsResponse::Representation
3325
+ command.response_class = Google::Apis::DisplayvideoV1::ReplaceNegativeKeywordsResponse
3326
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
3327
+ command.params['negativeKeywordListId'] = negative_keyword_list_id unless negative_keyword_list_id.nil?
3328
+ command.query['fields'] = fields unless fields.nil?
3329
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3330
+ execute_or_queue_command(command, &block)
3331
+ end
3332
+
3025
3333
  # Assigns a targeting option to an advertiser. Returns the assigned targeting
3026
3334
  # option if successful.
3027
3335
  # @param [Fixnum] advertiser_id
@@ -4779,6 +5087,44 @@ module Google
4779
5087
  execute_or_queue_command(command, &block)
4780
5088
  end
4781
5089
 
5090
+ # Replaces all of the sites under a single channel. The operation will replace
5091
+ # the sites under a channel with the sites provided in ReplaceSitesRequest.
5092
+ # new_sites.
5093
+ # @param [Fixnum] partner_id
5094
+ # The ID of the partner that owns the parent channel.
5095
+ # @param [Fixnum] channel_id
5096
+ # Required. The ID of the parent channel whose sites will be replaced.
5097
+ # @param [Google::Apis::DisplayvideoV1::ReplaceSitesRequest] replace_sites_request_object
5098
+ # @param [String] fields
5099
+ # Selector specifying which fields to include in a partial response.
5100
+ # @param [String] quota_user
5101
+ # Available to use for quota purposes for server-side applications. Can be any
5102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5103
+ # @param [Google::Apis::RequestOptions] options
5104
+ # Request-specific options
5105
+ #
5106
+ # @yield [result, err] Result & error if block supplied
5107
+ # @yieldparam result [Google::Apis::DisplayvideoV1::ReplaceSitesResponse] parsed result object
5108
+ # @yieldparam err [StandardError] error object if request failed
5109
+ #
5110
+ # @return [Google::Apis::DisplayvideoV1::ReplaceSitesResponse]
5111
+ #
5112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5115
+ def replace_partner_channel_site(partner_id, channel_id, replace_sites_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5116
+ command = make_simple_command(:post, 'v1/partners/{partnerId}/channels/{+channelId}/sites:replace', options)
5117
+ command.request_representation = Google::Apis::DisplayvideoV1::ReplaceSitesRequest::Representation
5118
+ command.request_object = replace_sites_request_object
5119
+ command.response_representation = Google::Apis::DisplayvideoV1::ReplaceSitesResponse::Representation
5120
+ command.response_class = Google::Apis::DisplayvideoV1::ReplaceSitesResponse
5121
+ command.params['partnerId'] = partner_id unless partner_id.nil?
5122
+ command.params['channelId'] = channel_id unless channel_id.nil?
5123
+ command.query['fields'] = fields unless fields.nil?
5124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5125
+ execute_or_queue_command(command, &block)
5126
+ end
5127
+
4782
5128
  # Assigns a targeting option to a partner. Returns the assigned targeting option
4783
5129
  # if successful.
4784
5130
  # @param [Fixnum] partner_id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-displayvideo_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-displayvideo_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-displayvideo_v1/v0.6.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-displayvideo_v1/v0.7.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-displayvideo_v1
57
57
  post_install_message:
58
58
  rdoc_options: []