google-apis-displayvideo_v2 0.4.0 → 0.5.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: 42e53f53144cde896868ebd9f85e0544d91c2201ad41c902b3ab9d98c963440c
4
- data.tar.gz: 04a3a0797b07982916890939102d65e68cf6fc88a522cf4946bb0414729ee113
3
+ metadata.gz: 274bb14deb3e276c1b9499681b9957d59bddc192e651a7f1cfe6da3164593f28
4
+ data.tar.gz: 7c061728be9269718da76c160a07ba6700f54f95e0ef8b2c66f29a0a5ccd38d9
5
5
  SHA512:
6
- metadata.gz: 74c49c3cc07e559f9b7c5aafca3f86bc831bececcec1b126930ac7b1a8009c55edf3d94c046993782f1bdd658faeee7765d3013fde8a2194b4d46ab01ac36b53
7
- data.tar.gz: 142c33141a7415244e51179995fd26356fcb48011cb23c42688d92e7d0ce46b78f9534b255b066456b20e3bf4b19494930010e4c9432273a972079f5cde36b36
6
+ metadata.gz: e078d3f9b11d04844f681aa02b3da6b50a9c04f3c0aa9d409bad4eea471f5b8d344567ccc1d9d5b39f0ac7f6170f20e16ea8217ca9b0ca911f088c7e7b9ce99b
7
+ data.tar.gz: 37f1b2f8297fd0e13cc920683e9b86a6e8906eadeb275eb1698b1bbff1b18b30cef6f3c415219a7fdf68a3c47d3a4bdc8784d877c0e0487e90cd048d34a62790
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-displayvideo_v2
2
2
 
3
+ ### v0.5.0 (2022-11-01)
4
+
5
+ * Regenerated from discovery document revision 20221027
6
+
3
7
  ### v0.4.0 (2022-10-19)
4
8
 
5
9
  * Regenerated using generator version 0.11.0
@@ -4614,6 +4614,45 @@ module Google
4614
4614
  end
4615
4615
  end
4616
4616
 
4617
+ # Request message for LineItemService.DuplicateLineItem.
4618
+ class DuplicateLineItemRequest
4619
+ include Google::Apis::Core::Hashable
4620
+
4621
+ # The display name of the resulting line item. Must be UTF-8 encoded with a
4622
+ # maximum size of 240 bytes.
4623
+ # Corresponds to the JSON property `targetDisplayName`
4624
+ # @return [String]
4625
+ attr_accessor :target_display_name
4626
+
4627
+ def initialize(**args)
4628
+ update!(**args)
4629
+ end
4630
+
4631
+ # Update properties of this object
4632
+ def update!(**args)
4633
+ @target_display_name = args[:target_display_name] if args.key?(:target_display_name)
4634
+ end
4635
+ end
4636
+
4637
+ # Response message for LineItemService.DuplicateLineItem.
4638
+ class DuplicateLineItemResponse
4639
+ include Google::Apis::Core::Hashable
4640
+
4641
+ # The ID of the successfully created line item.
4642
+ # Corresponds to the JSON property `duplicateLineItemId`
4643
+ # @return [Fixnum]
4644
+ attr_accessor :duplicate_line_item_id
4645
+
4646
+ def initialize(**args)
4647
+ update!(**args)
4648
+ end
4649
+
4650
+ # Update properties of this object
4651
+ def update!(**args)
4652
+ @duplicate_line_item_id = args[:duplicate_line_item_id] if args.key?(:duplicate_line_item_id)
4653
+ end
4654
+ end
4655
+
4617
4656
  # Request message for FirstAndThirdPartyAudienceService.EditCustomerMatchMembers.
4618
4657
  class EditCustomerMatchMembersRequest
4619
4658
  include Google::Apis::Core::Hashable
@@ -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.5.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 = "20221027"
26
26
  end
27
27
  end
28
28
  end
@@ -724,6 +724,18 @@ module Google
724
724
  include Google::Apis::Core::JsonObjectSupport
725
725
  end
726
726
 
727
+ class DuplicateLineItemRequest
728
+ class Representation < Google::Apis::Core::JsonRepresentation; end
729
+
730
+ include Google::Apis::Core::JsonObjectSupport
731
+ end
732
+
733
+ class DuplicateLineItemResponse
734
+ class Representation < Google::Apis::Core::JsonRepresentation; end
735
+
736
+ include Google::Apis::Core::JsonObjectSupport
737
+ end
738
+
727
739
  class EditCustomerMatchMembersRequest
728
740
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
741
 
@@ -3006,6 +3018,20 @@ module Google
3006
3018
  end
3007
3019
  end
3008
3020
 
3021
+ class DuplicateLineItemRequest
3022
+ # @private
3023
+ class Representation < Google::Apis::Core::JsonRepresentation
3024
+ property :target_display_name, as: 'targetDisplayName'
3025
+ end
3026
+ end
3027
+
3028
+ class DuplicateLineItemResponse
3029
+ # @private
3030
+ class Representation < Google::Apis::Core::JsonRepresentation
3031
+ property :duplicate_line_item_id, :numeric_string => true, as: 'duplicateLineItemId'
3032
+ end
3033
+ end
3034
+
3009
3035
  class EditCustomerMatchMembersRequest
3010
3036
  # @private
3011
3037
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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.
@@ -2107,6 +2220,42 @@ module Google
2107
2220
  execute_or_queue_command(command, &block)
2108
2221
  end
2109
2222
 
2223
+ # Duplicates a line item. Returns the newly created line item id if successful.
2224
+ # @param [Fixnum] advertiser_id
2225
+ # Required. The ID of the advertiser this line item belongs to.
2226
+ # @param [Fixnum] line_item_id
2227
+ # Required. The ID of the line item to duplicate.
2228
+ # @param [Google::Apis::DisplayvideoV2::DuplicateLineItemRequest] duplicate_line_item_request_object
2229
+ # @param [String] fields
2230
+ # Selector specifying which fields to include in a partial response.
2231
+ # @param [String] quota_user
2232
+ # Available to use for quota purposes for server-side applications. Can be any
2233
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2234
+ # @param [Google::Apis::RequestOptions] options
2235
+ # Request-specific options
2236
+ #
2237
+ # @yield [result, err] Result & error if block supplied
2238
+ # @yieldparam result [Google::Apis::DisplayvideoV2::DuplicateLineItemResponse] parsed result object
2239
+ # @yieldparam err [StandardError] error object if request failed
2240
+ #
2241
+ # @return [Google::Apis::DisplayvideoV2::DuplicateLineItemResponse]
2242
+ #
2243
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2244
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2245
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2246
+ def duplicate_line_item(advertiser_id, line_item_id, duplicate_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2247
+ command = make_simple_command(:post, 'v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}:duplicate', options)
2248
+ command.request_representation = Google::Apis::DisplayvideoV2::DuplicateLineItemRequest::Representation
2249
+ command.request_object = duplicate_line_item_request_object
2250
+ command.response_representation = Google::Apis::DisplayvideoV2::DuplicateLineItemResponse::Representation
2251
+ command.response_class = Google::Apis::DisplayvideoV2::DuplicateLineItemResponse
2252
+ command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
2253
+ command.params['lineItemId'] = line_item_id unless line_item_id.nil?
2254
+ command.query['fields'] = fields unless fields.nil?
2255
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2256
+ execute_or_queue_command(command, &block)
2257
+ end
2258
+
2110
2259
  # Creates a new line item with settings (including targeting) inherited from the
2111
2260
  # insertion order and an `ENTITY_STATUS_DRAFT` entity_status. Returns the newly
2112
2261
  # created line item if successful. There are default values based on the three
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.5.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-07 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.5.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: []