google-apis-displayvideo_v2 0.4.0 → 0.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42e53f53144cde896868ebd9f85e0544d91c2201ad41c902b3ab9d98c963440c
4
- data.tar.gz: 04a3a0797b07982916890939102d65e68cf6fc88a522cf4946bb0414729ee113
3
+ metadata.gz: 5f1aea562648b150274f6ef9f382809fdf55d06eac57b20eacc50aaf8b059a70
4
+ data.tar.gz: 5cf2beabeb517b51819b0515f9c4fe3f35ea217b775ee2c05d908a9bc6807517
5
5
  SHA512:
6
- metadata.gz: 74c49c3cc07e559f9b7c5aafca3f86bc831bececcec1b126930ac7b1a8009c55edf3d94c046993782f1bdd658faeee7765d3013fde8a2194b4d46ab01ac36b53
7
- data.tar.gz: 142c33141a7415244e51179995fd26356fcb48011cb23c42688d92e7d0ce46b78f9534b255b066456b20e3bf4b19494930010e4c9432273a972079f5cde36b36
6
+ metadata.gz: 54b80dfb84c5822d67b26965a74fe19dcac631b61e718653b12b4580a9b62df36551f683aab4eb6789808bd8cb6ceaa4485cc51c2c3914dd23666a115aa33cb9
7
+ data.tar.gz: 3c1362ed53df5ce58db4af011d1cf8189aefe4e0320de79fe0e1b513a18a2fe104720f214d8c4fe4cc151e5bd485f717416376080d62a74656db622221122cbd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-displayvideo_v2
2
2
 
3
+ ### v0.6.0 (2022-11-13)
4
+
5
+ * Regenerated from discovery document revision 20221110
6
+
7
+ ### v0.5.0 (2022-11-01)
8
+
9
+ * Regenerated from discovery document revision 20221027
10
+
3
11
  ### v0.4.0 (2022-10-19)
4
12
 
5
13
  * Regenerated using generator version 0.11.0
@@ -119,6 +119,11 @@ module Google
119
119
  # @return [Fixnum]
120
120
  attr_accessor :advertiser_id
121
121
 
122
+ # Billing related settings of an advertiser.
123
+ # Corresponds to the JSON property `billingConfig`
124
+ # @return [Google::Apis::DisplayvideoV2::AdvertiserBillingConfig]
125
+ attr_accessor :billing_config
126
+
122
127
  # Creatives related settings of an advertiser.
123
128
  # Corresponds to the JSON property `creativeConfig`
124
129
  # @return [Google::Apis::DisplayvideoV2::AdvertiserCreativeConfig]
@@ -195,6 +200,7 @@ module Google
195
200
  def update!(**args)
196
201
  @ad_server_config = args[:ad_server_config] if args.key?(:ad_server_config)
197
202
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
203
+ @billing_config = args[:billing_config] if args.key?(:billing_config)
198
204
  @creative_config = args[:creative_config] if args.key?(:creative_config)
199
205
  @data_access_config = args[:data_access_config] if args.key?(:data_access_config)
200
206
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -235,6 +241,25 @@ module Google
235
241
  end
236
242
  end
237
243
 
244
+ # Billing related settings of an advertiser.
245
+ class AdvertiserBillingConfig
246
+ include Google::Apis::Core::Hashable
247
+
248
+ # The ID of a billing profile assigned to the advertiser.
249
+ # Corresponds to the JSON property `billingProfileId`
250
+ # @return [Fixnum]
251
+ attr_accessor :billing_profile_id
252
+
253
+ def initialize(**args)
254
+ update!(**args)
255
+ end
256
+
257
+ # Update properties of this object
258
+ def update!(**args)
259
+ @billing_profile_id = args[:billing_profile_id] if args.key?(:billing_profile_id)
260
+ end
261
+ end
262
+
238
263
  # Creatives related settings of an advertiser.
239
264
  class AdvertiserCreativeConfig
240
265
  include Google::Apis::Core::Hashable
@@ -4614,6 +4639,45 @@ module Google
4614
4639
  end
4615
4640
  end
4616
4641
 
4642
+ # Request message for LineItemService.DuplicateLineItem.
4643
+ class DuplicateLineItemRequest
4644
+ include Google::Apis::Core::Hashable
4645
+
4646
+ # The display name of the new line item. Must be UTF-8 encoded with a maximum
4647
+ # size of 240 bytes.
4648
+ # Corresponds to the JSON property `targetDisplayName`
4649
+ # @return [String]
4650
+ attr_accessor :target_display_name
4651
+
4652
+ def initialize(**args)
4653
+ update!(**args)
4654
+ end
4655
+
4656
+ # Update properties of this object
4657
+ def update!(**args)
4658
+ @target_display_name = args[:target_display_name] if args.key?(:target_display_name)
4659
+ end
4660
+ end
4661
+
4662
+ #
4663
+ class DuplicateLineItemResponse
4664
+ include Google::Apis::Core::Hashable
4665
+
4666
+ # The ID of the created line item.
4667
+ # Corresponds to the JSON property `duplicateLineItemId`
4668
+ # @return [Fixnum]
4669
+ attr_accessor :duplicate_line_item_id
4670
+
4671
+ def initialize(**args)
4672
+ update!(**args)
4673
+ end
4674
+
4675
+ # Update properties of this object
4676
+ def update!(**args)
4677
+ @duplicate_line_item_id = args[:duplicate_line_item_id] if args.key?(:duplicate_line_item_id)
4678
+ end
4679
+ end
4680
+
4617
4681
  # Request message for FirstAndThirdPartyAudienceService.EditCustomerMatchMembers.
4618
4682
  class EditCustomerMatchMembersRequest
4619
4683
  include Google::Apis::Core::Hashable
@@ -6080,7 +6144,7 @@ module Google
6080
6144
 
6081
6145
  # The budget segment description. It can be used to enter Purchase Order
6082
6146
  # information for each budget segment and have that information printed on the
6083
- # invoices. Must be UTF-8 encoded with a length of no more than 80 characters.
6147
+ # invoices. Must be UTF-8 encoded.
6084
6148
  # Corresponds to the JSON property `description`
6085
6149
  # @return [String]
6086
6150
  attr_accessor :description
@@ -7012,7 +7076,10 @@ module Google
7012
7076
 
7013
7077
  # Settings that control the targeting expansion of the line item. Targeting
7014
7078
  # expansion allows the line item to reach a larger audience based on the
7015
- # original audience list and the targeting expansion level.
7079
+ # original audience list and the targeting expansion level. Beginning November 7,
7080
+ # 2022, these settings may represent the [optimized targeting feature](//
7081
+ # support.google.com/displayvideo/answer/12060859) in place of targeting
7082
+ # expansion. This feature will be rolled out to all partners by November 9, 2022.
7016
7083
  # Corresponds to the JSON property `targetingExpansion`
7017
7084
  # @return [Google::Apis::DisplayvideoV2::TargetingExpansionConfig]
7018
7085
  attr_accessor :targeting_expansion
@@ -9814,7 +9881,7 @@ module Google
9814
9881
  # @return [Google::Apis::DisplayvideoV2::GeoRegionSearchTerms]
9815
9882
  attr_accessor :geo_region_search_terms
9816
9883
 
9817
- # Requested page size. Must be between `1` and `100`. If unspecified will
9884
+ # Requested page size. Must be between `1` and `200`. If unspecified will
9818
9885
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
9819
9886
  # specified.
9820
9887
  # Corresponds to the JSON property `pageSize`
@@ -10030,20 +10097,33 @@ module Google
10030
10097
 
10031
10098
  # Settings that control the targeting expansion of the line item. Targeting
10032
10099
  # expansion allows the line item to reach a larger audience based on the
10033
- # original audience list and the targeting expansion level.
10100
+ # original audience list and the targeting expansion level. Beginning November 7,
10101
+ # 2022, these settings may represent the [optimized targeting feature](//
10102
+ # support.google.com/displayvideo/answer/12060859) in place of targeting
10103
+ # expansion. This feature will be rolled out to all partners by November 9, 2022.
10034
10104
  class TargetingExpansionConfig
10035
10105
  include Google::Apis::Core::Hashable
10036
10106
 
10037
- # Required. Whether to exclude first party audiences from targeting. Similar
10038
- # audiences of the excluded first party lists will not be excluded. Only
10039
- # applicable when a first-party audience is positively targeted (directly or
10040
- # included in a combined audience), otherwise this selection will be ignored.
10107
+ # Required. Whether to exclude first-party audiences from use in targeting
10108
+ # expansion or optimized targeting. Similar audiences of the excluded first-
10109
+ # party lists will not be excluded. Only applicable when a first-party audience
10110
+ # is positively targeted (directly or included in a combined audience),
10111
+ # otherwise this selection will be ignored.
10041
10112
  # Corresponds to the JSON property `excludeFirstPartyAudience`
10042
10113
  # @return [Boolean]
10043
10114
  attr_accessor :exclude_first_party_audience
10044
10115
  alias_method :exclude_first_party_audience?, :exclude_first_party_audience
10045
10116
 
10046
10117
  # Required. Magnitude of expansion for applicable targeting under this line item.
10118
+ # Beginning November 7, 2022, the behavior of this field will change in the
10119
+ # following ways with the replacement of targeting expansion with [optimized
10120
+ # targeting](//support.google.com/displayvideo/answer/12060859): * This field
10121
+ # will represent the optimized targeting checkbox, with a `NO_EXPANSION` value
10122
+ # representing optimized targeting turned off and a `LEAST_EXPANSION` value
10123
+ # representing optimized targeting turned on. * `NO_EXPANSION` will be the
10124
+ # default value for the field and will be automatically assigned if you do not
10125
+ # set the field. * If you set the field to any value other than `NO_EXPANSION`,
10126
+ # it will automatically be set to `LEAST_EXPANSION`.
10047
10127
  # Corresponds to the JSON property `targetingExpansionLevel`
10048
10128
  # @return [String]
10049
10129
  attr_accessor :targeting_expansion_level
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DisplayvideoV2
18
18
  # Version of the google-apis-displayvideo_v2 gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220922"
25
+ REVISION = "20221110"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class AdvertiserBillingConfig
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class AdvertiserCreativeConfig
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -724,6 +730,18 @@ module Google
724
730
  include Google::Apis::Core::JsonObjectSupport
725
731
  end
726
732
 
733
+ class DuplicateLineItemRequest
734
+ class Representation < Google::Apis::Core::JsonRepresentation; end
735
+
736
+ include Google::Apis::Core::JsonObjectSupport
737
+ end
738
+
739
+ class DuplicateLineItemResponse
740
+ class Representation < Google::Apis::Core::JsonRepresentation; end
741
+
742
+ include Google::Apis::Core::JsonObjectSupport
743
+ end
744
+
727
745
  class EditCustomerMatchMembersRequest
728
746
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
747
 
@@ -1798,6 +1816,8 @@ module Google
1798
1816
  property :ad_server_config, as: 'adServerConfig', class: Google::Apis::DisplayvideoV2::AdvertiserAdServerConfig, decorator: Google::Apis::DisplayvideoV2::AdvertiserAdServerConfig::Representation
1799
1817
 
1800
1818
  property :advertiser_id, :numeric_string => true, as: 'advertiserId'
1819
+ property :billing_config, as: 'billingConfig', class: Google::Apis::DisplayvideoV2::AdvertiserBillingConfig, decorator: Google::Apis::DisplayvideoV2::AdvertiserBillingConfig::Representation
1820
+
1801
1821
  property :creative_config, as: 'creativeConfig', class: Google::Apis::DisplayvideoV2::AdvertiserCreativeConfig, decorator: Google::Apis::DisplayvideoV2::AdvertiserCreativeConfig::Representation
1802
1822
 
1803
1823
  property :data_access_config, as: 'dataAccessConfig', class: Google::Apis::DisplayvideoV2::AdvertiserDataAccessConfig, decorator: Google::Apis::DisplayvideoV2::AdvertiserDataAccessConfig::Representation
@@ -1827,6 +1847,13 @@ module Google
1827
1847
  end
1828
1848
  end
1829
1849
 
1850
+ class AdvertiserBillingConfig
1851
+ # @private
1852
+ class Representation < Google::Apis::Core::JsonRepresentation
1853
+ property :billing_profile_id, :numeric_string => true, as: 'billingProfileId'
1854
+ end
1855
+ end
1856
+
1830
1857
  class AdvertiserCreativeConfig
1831
1858
  # @private
1832
1859
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3006,6 +3033,20 @@ module Google
3006
3033
  end
3007
3034
  end
3008
3035
 
3036
+ class DuplicateLineItemRequest
3037
+ # @private
3038
+ class Representation < Google::Apis::Core::JsonRepresentation
3039
+ property :target_display_name, as: 'targetDisplayName'
3040
+ end
3041
+ end
3042
+
3043
+ class DuplicateLineItemResponse
3044
+ # @private
3045
+ class Representation < Google::Apis::Core::JsonRepresentation
3046
+ property :duplicate_line_item_id, :numeric_string => true, as: 'duplicateLineItemId'
3047
+ end
3048
+ end
3049
+
3009
3050
  class EditCustomerMatchMembersRequest
3010
3051
  # @private
3011
3052
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -244,7 +244,7 @@ module Google
244
244
  # ascending. To specify descending order for a field, a suffix "desc" should be
245
245
  # added to the field name. For example, `displayName desc`.
246
246
  # @param [Fixnum] page_size
247
- # Requested page size. Must be between `1` and `100`. If unspecified will
247
+ # Requested page size. Must be between `1` and `200`. If unspecified will
248
248
  # default to `100`.
249
249
  # @param [String] page_token
250
250
  # A token identifying a page of results the server should return. Typically,
@@ -553,7 +553,7 @@ module Google
553
553
  # ascending. To specify descending order for a field, a suffix "desc" should be
554
554
  # added to the field name. Example: `displayName desc`.
555
555
  # @param [Fixnum] page_size
556
- # Requested page size. Must be between `1` and `100`. If unspecified will
556
+ # Requested page size. Must be between `1` and `200`. If unspecified will
557
557
  # default to `100`.
558
558
  # @param [String] page_token
559
559
  # A token identifying a page of results the server should return. Typically,
@@ -911,7 +911,7 @@ module Google
911
911
  # descending order for a field, a suffix " desc" should be added to the field
912
912
  # name. Example: `displayName desc`.
913
913
  # @param [Fixnum] page_size
914
- # Requested page size. Must be between `1` and `100`. If unspecified will
914
+ # Requested page size. Must be between `1` and `200`. If unspecified will
915
915
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
916
916
  # specified.
917
917
  # @param [String] page_token
@@ -1358,7 +1358,7 @@ module Google
1358
1358
  # order for a field, a suffix "desc" should be added to the field name. Example:
1359
1359
  # `createTime desc`.
1360
1360
  # @param [Fixnum] page_size
1361
- # Requested page size. Must be between `1` and `100`. If unspecified will
1361
+ # Requested page size. Must be between `1` and `200`. If unspecified will
1362
1362
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
1363
1363
  # specified.
1364
1364
  # @param [String] page_token
@@ -1714,6 +1714,119 @@ module Google
1714
1714
  execute_or_queue_command(command, &block)
1715
1715
  end
1716
1716
 
1717
+ # Assigns a targeting option to an insertion order. Returns the assigned
1718
+ # targeting option if successful. Supported targeting types: * `
1719
+ # TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER` * `
1720
+ # TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `
1721
+ # TARGETING_TYPE_DEVICE_MAKE_MODEL` * `
1722
+ # TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT`
1723
+ # * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_KEYWORD` * `
1724
+ # TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `
1725
+ # TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `
1726
+ # TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
1727
+ # @param [Fixnum] advertiser_id
1728
+ # Required. The ID of the advertiser the insertion order belongs to.
1729
+ # @param [Fixnum] insertion_order_id
1730
+ # Required. The ID of the insertion order the assigned targeting option will
1731
+ # belong to.
1732
+ # @param [String] targeting_type
1733
+ # Required. Identifies the type of this assigned targeting option. Supported
1734
+ # targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER` * `
1735
+ # TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `
1736
+ # TARGETING_TYPE_DEVICE_MAKE_MODEL` * `
1737
+ # TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT`
1738
+ # * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_KEYWORD` * `
1739
+ # TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `
1740
+ # TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `
1741
+ # TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
1742
+ # @param [Google::Apis::DisplayvideoV2::AssignedTargetingOption] assigned_targeting_option_object
1743
+ # @param [String] fields
1744
+ # Selector specifying which fields to include in a partial response.
1745
+ # @param [String] quota_user
1746
+ # Available to use for quota purposes for server-side applications. Can be any
1747
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1748
+ # @param [Google::Apis::RequestOptions] options
1749
+ # Request-specific options
1750
+ #
1751
+ # @yield [result, err] Result & error if block supplied
1752
+ # @yieldparam result [Google::Apis::DisplayvideoV2::AssignedTargetingOption] parsed result object
1753
+ # @yieldparam err [StandardError] error object if request failed
1754
+ #
1755
+ # @return [Google::Apis::DisplayvideoV2::AssignedTargetingOption]
1756
+ #
1757
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1758
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1759
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1760
+ def create_advertiser_insertion_order_targeting_type_assigned_targeting_option(advertiser_id, insertion_order_id, targeting_type, assigned_targeting_option_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1761
+ command = make_simple_command(:post, 'v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions', options)
1762
+ command.request_representation = Google::Apis::DisplayvideoV2::AssignedTargetingOption::Representation
1763
+ command.request_object = assigned_targeting_option_object
1764
+ command.response_representation = Google::Apis::DisplayvideoV2::AssignedTargetingOption::Representation
1765
+ command.response_class = Google::Apis::DisplayvideoV2::AssignedTargetingOption
1766
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1767
+ command.params['insertionOrderId'] = insertion_order_id unless insertion_order_id.nil?
1768
+ command.params['targetingType'] = targeting_type unless targeting_type.nil?
1769
+ command.query['fields'] = fields unless fields.nil?
1770
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1771
+ execute_or_queue_command(command, &block)
1772
+ end
1773
+
1774
+ # Deletes an assigned targeting option from an insertion order. Supported
1775
+ # targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER` * `
1776
+ # TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `
1777
+ # TARGETING_TYPE_DEVICE_MAKE_MODEL` * `
1778
+ # TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT`
1779
+ # * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_KEYWORD` * `
1780
+ # TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `
1781
+ # TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `
1782
+ # TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
1783
+ # @param [Fixnum] advertiser_id
1784
+ # Required. The ID of the advertiser the insertion order belongs to.
1785
+ # @param [Fixnum] insertion_order_id
1786
+ # Required. The ID of the insertion order the assigned targeting option belongs
1787
+ # to.
1788
+ # @param [String] targeting_type
1789
+ # Required. Identifies the type of this assigned targeting option. Supported
1790
+ # targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_BROWSER` * `
1791
+ # TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `
1792
+ # TARGETING_TYPE_DEVICE_MAKE_MODEL` * `
1793
+ # TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT`
1794
+ # * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_KEYWORD` * `
1795
+ # TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `
1796
+ # TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `
1797
+ # TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIEWABILITY`
1798
+ # @param [String] assigned_targeting_option_id
1799
+ # Required. The ID of the assigned targeting option to delete.
1800
+ # @param [String] fields
1801
+ # Selector specifying which fields to include in a partial response.
1802
+ # @param [String] quota_user
1803
+ # Available to use for quota purposes for server-side applications. Can be any
1804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1805
+ # @param [Google::Apis::RequestOptions] options
1806
+ # Request-specific options
1807
+ #
1808
+ # @yield [result, err] Result & error if block supplied
1809
+ # @yieldparam result [Google::Apis::DisplayvideoV2::Empty] parsed result object
1810
+ # @yieldparam err [StandardError] error object if request failed
1811
+ #
1812
+ # @return [Google::Apis::DisplayvideoV2::Empty]
1813
+ #
1814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
+ def delete_advertiser_insertion_order_targeting_type_assigned_targeting_option(advertiser_id, insertion_order_id, targeting_type, assigned_targeting_option_id, fields: nil, quota_user: nil, options: nil, &block)
1818
+ command = make_simple_command(:delete, 'v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}', options)
1819
+ command.response_representation = Google::Apis::DisplayvideoV2::Empty::Representation
1820
+ command.response_class = Google::Apis::DisplayvideoV2::Empty
1821
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
1822
+ command.params['insertionOrderId'] = insertion_order_id unless insertion_order_id.nil?
1823
+ command.params['targetingType'] = targeting_type unless targeting_type.nil?
1824
+ command.params['assignedTargetingOptionId'] = assigned_targeting_option_id unless assigned_targeting_option_id.nil?
1825
+ command.query['fields'] = fields unless fields.nil?
1826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1827
+ execute_or_queue_command(command, &block)
1828
+ end
1829
+
1717
1830
  # Gets a single targeting option assigned to an insertion order.
1718
1831
  # @param [Fixnum] advertiser_id
1719
1832
  # Required. The ID of the advertiser the insertion order belongs to.
@@ -1832,7 +1945,7 @@ module Google
1832
1945
  # Select type of invoice to retrieve for Loi Sapin advertisers. Only applicable
1833
1946
  # to Loi Sapin advertisers. Will be ignored otherwise.
1834
1947
  # @param [Fixnum] page_size
1835
- # Requested page size. Must be between `1` and `100`. If unspecified will
1948
+ # Requested page size. Must be between `1` and `200`. If unspecified will
1836
1949
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
1837
1950
  # specified.
1838
1951
  # @param [String] page_token
@@ -1909,7 +2022,10 @@ module Google
1909
2022
  # delete the assigned targeting options provided in
1910
2023
  # BulkEditAssignedTargetingOptionsRequest.delete_requests and then create the
1911
2024
  # assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.
1912
- # create_requests .
2025
+ # create_requests. Requests to this endpoint cannot be made concurrently with
2026
+ # the following requests updating the same line item: * BulkUpdate *
2027
+ # UpdateLineItem * CreateLineItemAssignedTargetingOption *
2028
+ # DeleteLineItemAssignedTargetingOption
1913
2029
  # @param [Fixnum] advertiser_id
1914
2030
  # Required. The ID of the advertiser the line items belong to.
1915
2031
  # @param [Google::Apis::DisplayvideoV2::BulkEditAssignedTargetingOptionsRequest] bulk_edit_assigned_targeting_options_request_object
@@ -2007,7 +2123,10 @@ module Google
2007
2123
  execute_or_queue_command(command, &block)
2008
2124
  end
2009
2125
 
2010
- # Updates multiple line items.
2126
+ # Updates multiple line items. Requests to this endpoint cannot be made
2127
+ # concurrently with the following requests updating the same line item: *
2128
+ # BulkEditAssignedTargetingOptions * UpdateLineItem *
2129
+ # CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2011
2130
  # @param [String] advertisers_id
2012
2131
  # @param [Google::Apis::DisplayvideoV2::BulkUpdateLineItemsRequest] bulk_update_line_items_request_object
2013
2132
  # @param [String] fields
@@ -2107,6 +2226,42 @@ module Google
2107
2226
  execute_or_queue_command(command, &block)
2108
2227
  end
2109
2228
 
2229
+ # Duplicates a line item. Returns the ID of the created line item if successful.
2230
+ # @param [Fixnum] advertiser_id
2231
+ # Required. The ID of the advertiser this line item belongs to.
2232
+ # @param [Fixnum] line_item_id
2233
+ # Required. The ID of the line item to duplicate.
2234
+ # @param [Google::Apis::DisplayvideoV2::DuplicateLineItemRequest] duplicate_line_item_request_object
2235
+ # @param [String] fields
2236
+ # Selector specifying which fields to include in a partial response.
2237
+ # @param [String] quota_user
2238
+ # Available to use for quota purposes for server-side applications. Can be any
2239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2240
+ # @param [Google::Apis::RequestOptions] options
2241
+ # Request-specific options
2242
+ #
2243
+ # @yield [result, err] Result & error if block supplied
2244
+ # @yieldparam result [Google::Apis::DisplayvideoV2::DuplicateLineItemResponse] parsed result object
2245
+ # @yieldparam err [StandardError] error object if request failed
2246
+ #
2247
+ # @return [Google::Apis::DisplayvideoV2::DuplicateLineItemResponse]
2248
+ #
2249
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2250
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2251
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2252
+ def duplicate_line_item(advertiser_id, line_item_id, duplicate_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2253
+ command = make_simple_command(:post, 'v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}:duplicate', options)
2254
+ command.request_representation = Google::Apis::DisplayvideoV2::DuplicateLineItemRequest::Representation
2255
+ command.request_object = duplicate_line_item_request_object
2256
+ command.response_representation = Google::Apis::DisplayvideoV2::DuplicateLineItemResponse::Representation
2257
+ command.response_class = Google::Apis::DisplayvideoV2::DuplicateLineItemResponse
2258
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2259
+ command.params['lineItemId'] = line_item_id unless line_item_id.nil?
2260
+ command.query['fields'] = fields unless fields.nil?
2261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2262
+ execute_or_queue_command(command, &block)
2263
+ end
2264
+
2110
2265
  # Creates a new line item with settings (including targeting) inherited from the
2111
2266
  # insertion order and an `ENTITY_STATUS_DRAFT` entity_status. Returns the newly
2112
2267
  # created line item if successful. There are default values based on the three
@@ -2217,7 +2372,7 @@ module Google
2217
2372
  # default sorting order is ascending. To specify descending order for a field, a
2218
2373
  # suffix "desc" should be added to the field name. Example: `displayName desc`.
2219
2374
  # @param [Fixnum] page_size
2220
- # Requested page size. Must be between `1` and `100`. If unspecified will
2375
+ # Requested page size. Must be between `1` and `200`. If unspecified will
2221
2376
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
2222
2377
  # specified.
2223
2378
  # @param [String] page_token
@@ -2258,9 +2413,9 @@ module Google
2258
2413
 
2259
2414
  # Updates an existing line item. Returns the updated line item if successful.
2260
2415
  # Requests to this endpoint cannot be made concurrently with the following
2261
- # requests updating the same line item: *
2262
- # BulkEditLineItemAssignedTargetingOptions * UpdateLineItem *
2263
- # CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2416
+ # requests updating the same line item: * BulkEditAssignedTargetingOptions *
2417
+ # BulkUpdateLineItems * CreateLineItemAssignedTargetingOption *
2418
+ # DeleteLineItemAssignedTargetingOption
2264
2419
  # @param [Fixnum] advertiser_id
2265
2420
  # Output only. The unique ID of the advertiser the line item belongs to.
2266
2421
  # @param [Fixnum] line_item_id
@@ -2302,8 +2457,8 @@ module Google
2302
2457
  # Assigns a targeting option to a line item. Returns the assigned targeting
2303
2458
  # option if successful. Requests to this endpoint cannot be made concurrently
2304
2459
  # with the following requests updating the same line item: *
2305
- # BulkEditLineItemAssignedTargetingOptions * UpdateLineItem *
2306
- # CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2460
+ # BulkEditAssignedTargetingOptions * BulkUpdate * UpdateLineItem *
2461
+ # DeleteLineItemAssignedTargetingOption
2307
2462
  # @param [Fixnum] advertiser_id
2308
2463
  # Required. The ID of the advertiser the line item belongs to.
2309
2464
  # @param [Fixnum] line_item_id
@@ -2344,8 +2499,8 @@ module Google
2344
2499
 
2345
2500
  # Deletes an assigned targeting option from a line item. Requests to this
2346
2501
  # endpoint cannot be made concurrently with the following requests updating the
2347
- # same line item: * BulkEditLineItemAssignedTargetingOptions * UpdateLineItem *
2348
- # CreateLineItemAssignedTargetingOption * DeleteLineItemAssignedTargetingOption
2502
+ # same line item: * BulkEditAssignedTargetingOptions * BulkUpdate *
2503
+ # UpdateLineItem * CreateLineItemAssignedTargetingOption
2349
2504
  # @param [Fixnum] advertiser_id
2350
2505
  # Required. The ID of the advertiser the line item belongs to.
2351
2506
  # @param [Fixnum] line_item_id
@@ -2576,7 +2731,7 @@ module Google
2576
2731
  # descending order for a field, a suffix "desc" should be added to the field
2577
2732
  # name. Example: `displayName desc`.
2578
2733
  # @param [Fixnum] page_size
2579
- # Requested page size. Must be between `1` and `100`. Defaults to `100` if not
2734
+ # Requested page size. Must be between `1` and `200`. Defaults to `100` if not
2580
2735
  # set. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.
2581
2736
  # @param [String] page_token
2582
2737
  # A token identifying a page of results the server should return. Typically,
@@ -2783,7 +2938,7 @@ module Google
2783
2938
  # for a field, a suffix " desc" should be added to the field name. Example: `
2784
2939
  # assignedLocationId desc`.
2785
2940
  # @param [Fixnum] page_size
2786
- # Requested page size. Must be between `1` and `100`. If unspecified will
2941
+ # Requested page size. Must be between `1` and `200`. If unspecified will
2787
2942
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
2788
2943
  # specified.
2789
2944
  # @param [String] page_token
@@ -2984,7 +3139,7 @@ module Google
2984
3139
  # descending order for a field, a suffix "desc" should be added to the field
2985
3140
  # name. For example, `displayName desc`.
2986
3141
  # @param [Fixnum] page_size
2987
- # Requested page size. Must be between `1` and `100`. If unspecified will
3142
+ # Requested page size. Must be between `1` and `200`. If unspecified will
2988
3143
  # default to `100`.
2989
3144
  # @param [String] page_token
2990
3145
  # A token identifying a page of results the server should return. Typically,
@@ -3172,7 +3327,7 @@ module Google
3172
3327
  # Required. The ID of the DV360 advertiser to which the fetched negative keyword
3173
3328
  # lists belong.
3174
3329
  # @param [Fixnum] page_size
3175
- # Requested page size. Must be between `1` and `100`. Defaults to `100` if not
3330
+ # Requested page size. Must be between `1` and `200`. Defaults to `100` if not
3176
3331
  # set. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.
3177
3332
  # @param [String] page_token
3178
3333
  # A token identifying a page of results the server should return. Typically,
@@ -3703,7 +3858,7 @@ module Google
3703
3858
  # descending order for a field, a suffix "desc" should be added to the field
3704
3859
  # name. Example: `displayName desc`.
3705
3860
  # @param [Fixnum] page_size
3706
- # Requested page size. Must be between `1` and `100`. If unspecified will
3861
+ # Requested page size. Must be between `1` and `200`. If unspecified will
3707
3862
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
3708
3863
  # specified.
3709
3864
  # @param [String] page_token
@@ -3838,7 +3993,7 @@ module Google
3838
3993
  # for a field, a suffix "desc" should be added to the field name. Example: `
3839
3994
  # displayName desc`.
3840
3995
  # @param [Fixnum] page_size
3841
- # Requested page size. Must be between `1` and `100`. If unspecified will
3996
+ # Requested page size. Must be between `1` and `200`. If unspecified will
3842
3997
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
3843
3998
  # specified.
3844
3999
  # @param [String] page_token
@@ -4050,7 +4205,7 @@ module Google
4050
4205
  # default) The default sorting order is descending. To specify ascending order
4051
4206
  # for a field, the suffix "desc" should be removed. Example: `createTime`.
4052
4207
  # @param [Fixnum] page_size
4053
- # Requested page size. Must be between `1` and `100`. If unspecified will
4208
+ # Requested page size. Must be between `1` and `200`. If unspecified will
4054
4209
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
4055
4210
  # specified.
4056
4211
  # @param [String] page_token
@@ -4142,7 +4297,7 @@ module Google
4142
4297
  # descending order for a field, a suffix "desc" should be added to the field
4143
4298
  # name. Example: `displayName desc`.
4144
4299
  # @param [Fixnum] page_size
4145
- # Requested page size. Must be between `1` and `100`. If unspecified will
4300
+ # Requested page size. Must be between `1` and `200`. If unspecified will
4146
4301
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
4147
4302
  # specified.
4148
4303
  # @param [String] page_token
@@ -4309,7 +4464,7 @@ module Google
4309
4464
  # order is ascending. To specify descending order for a field, a suffix "desc"
4310
4465
  # should be added to the field name. Example: `displayName desc`.
4311
4466
  # @param [Fixnum] page_size
4312
- # Requested page size. Must be between `1` and `100`. If unspecified will
4467
+ # Requested page size. Must be between `1` and `200`. If unspecified will
4313
4468
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
4314
4469
  # specified.
4315
4470
  # @param [String] page_token
@@ -4523,7 +4678,7 @@ module Google
4523
4678
  # descending order for a field, a suffix "desc" should be added to the field
4524
4679
  # name. Example: `displayName desc`.
4525
4680
  # @param [Fixnum] page_size
4526
- # Requested page size. Must be between `1` and `100`. If unspecified will
4681
+ # Requested page size. Must be between `1` and `200`. If unspecified will
4527
4682
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
4528
4683
  # specified.
4529
4684
  # @param [String] page_token
@@ -4696,8 +4851,8 @@ module Google
4696
4851
  # for a field, a suffix "desc" should be added to the field name. For example, `
4697
4852
  # displayName desc`.
4698
4853
  # @param [Fixnum] page_size
4699
- # Requested page size. Must be between `1` and `100`. If unspecified or greater
4700
- # than `100` will default to `100`.
4854
+ # Requested page size. Must be between `1` and `200`. If unspecified will
4855
+ # default to `100`.
4701
4856
  # @param [String] page_token
4702
4857
  # A token identifying a page of results the server should return. Typically,
4703
4858
  # this is the value of next_page_token returned from the previous call to `
@@ -4917,7 +5072,7 @@ module Google
4917
5072
  # specify descending order for a field, a suffix "desc" should be added to the
4918
5073
  # field name. For example, `displayName desc`.
4919
5074
  # @param [Fixnum] page_size
4920
- # Requested page size. Must be between `1` and `100`. If unspecified will
5075
+ # Requested page size. Must be between `1` and `200`. If unspecified will
4921
5076
  # default to `100`.
4922
5077
  # @param [String] page_token
4923
5078
  # A token identifying a page of results the server should return. Typically,
@@ -5325,7 +5480,7 @@ module Google
5325
5480
  # for a field, a suffix "desc" should be added to the field name. For example, `
5326
5481
  # displayName desc`.
5327
5482
  # @param [Fixnum] page_size
5328
- # Requested page size. Must be between `1` and `100`. If unspecified will
5483
+ # Requested page size. Must be between `1` and `200`. If unspecified will
5329
5484
  # default to `100`.
5330
5485
  # @param [String] page_token
5331
5486
  # A token identifying a page of results the server should return. Typically,
@@ -5576,7 +5731,7 @@ module Google
5576
5731
  # suffix "desc" should be added to the field name. For example, `displayName
5577
5732
  # desc`.
5578
5733
  # @param [Fixnum] page_size
5579
- # Requested page size. Must be between `1` and `100`. If unspecified will
5734
+ # Requested page size. Must be between `1` and `200`. If unspecified will
5580
5735
  # default to `100`.
5581
5736
  # @param [String] page_token
5582
5737
  # A token identifying a page of results the server should return. Typically,
@@ -5703,7 +5858,7 @@ module Google
5703
5858
  # descending order for a field, a suffix " desc" should be added to the field
5704
5859
  # name. Example: `displayName desc`.
5705
5860
  # @param [Fixnum] page_size
5706
- # Requested page size. Must be between `1` and `100`. If unspecified will
5861
+ # Requested page size. Must be between `1` and `200`. If unspecified will
5707
5862
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
5708
5863
  # specified.
5709
5864
  # @param [String] page_token
@@ -6132,7 +6287,7 @@ module Google
6132
6287
  # To specify descending order for a field, a suffix "desc" should be added to
6133
6288
  # the field name. Example: `assignedTargetingOptionId desc`.
6134
6289
  # @param [Fixnum] page_size
6135
- # Requested page size. Must be between `1` and `100`. If unspecified will
6290
+ # Requested page size. Must be between `1` and `200`. If unspecified will
6136
6291
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
6137
6292
  # specified.
6138
6293
  # @param [String] page_token
@@ -6329,7 +6484,7 @@ module Google
6329
6484
  # for a field, a suffix "desc" should be added to the field name. Example: `
6330
6485
  # targetingOptionId desc`.
6331
6486
  # @param [Fixnum] page_size
6332
- # Requested page size. Must be between `1` and `100`. If unspecified will
6487
+ # Requested page size. Must be between `1` and `200`. If unspecified will
6333
6488
  # default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is
6334
6489
  # specified.
6335
6490
  # @param [String] page_token
@@ -6560,7 +6715,7 @@ module Google
6560
6715
  # for a field, a suffix "desc" should be added to the field name. For example, `
6561
6716
  # displayName desc`.
6562
6717
  # @param [Fixnum] page_size
6563
- # Requested page size. Must be between `1` and `100`. If unspecified will
6718
+ # Requested page size. Must be between `1` and `200`. If unspecified will
6564
6719
  # default to `100`.
6565
6720
  # @param [String] page_token
6566
6721
  # A token identifying a page of results the server should return. Typically,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-displayvideo_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.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: 2022-10-21 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-displayvideo_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-displayvideo_v2/v0.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-displayvideo_v2/v0.6.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-displayvideo_v2
63
63
  post_install_message:
64
64
  rdoc_options: []