@@ -641,6 +641,37 @@ def update!(**args)
641641 end
642642 end
643643
644+ # Information regarding Automated Discounts.
645+ class AutomatedDiscounts
646+ include Google ::Apis ::Core ::Hashable
647+
648+ # The price represented as a number and currency.
649+ # Corresponds to the JSON property `gadPrice`
650+ # @return [Google::Apis::MerchantapiProductsV1beta::Price]
651+ attr_accessor :gad_price
652+
653+ # The price represented as a number and currency.
654+ # Corresponds to the JSON property `priorPrice`
655+ # @return [Google::Apis::MerchantapiProductsV1beta::Price]
656+ attr_accessor :prior_price
657+
658+ # The price represented as a number and currency.
659+ # Corresponds to the JSON property `priorPriceProgressive`
660+ # @return [Google::Apis::MerchantapiProductsV1beta::Price]
661+ attr_accessor :prior_price_progressive
662+
663+ def initialize ( **args )
664+ update! ( **args )
665+ end
666+
667+ # Update properties of this object
668+ def update! ( **args )
669+ @gad_price = args [ :gad_price ] if args . key? ( :gad_price )
670+ @prior_price = args [ :prior_price ] if args . key? ( :prior_price )
671+ @prior_price_progressive = args [ :prior_price_progressive ] if args . key? ( :prior_price_progressive )
672+ end
673+ end
674+
644675 # Product [certification](https://support.google.com/merchants/answer/13528839),
645676 # initially introduced for EU energy efficiency labeling compliance using the EU
646677 # EPREL database.
@@ -1156,14 +1187,13 @@ def update!(**args)
11561187
11571188 # The processed product, built from multiple product inputs after applying rules
11581189 # and supplemental data sources. This processed product matches what is shown in
1159- # your Merchant Center account and in Shopping ads and other surfaces across
1160- # Google. Each product is built from exactly one primary data source product
1161- # input, and multiple supplemental data source inputs. After inserting, updating,
1162- # or deleting a product input, it may take several minutes before the updated
1163- # processed product can be retrieved. All fields in the processed product and
1164- # its sub-messages match the name of their corresponding attribute in the [
1165- # Product data specification](https://support.google.com/merchants/answer/
1166- # 7052112) with some exceptions.
1190+ # your Merchant Center account. Each product is built from exactly one primary
1191+ # data source product input, and multiple supplemental data source inputs. After
1192+ # inserting, updating, or deleting a product input, it may take several minutes
1193+ # before the updated processed product can be retrieved. All fields in the
1194+ # processed product and its sub-messages match the name of their corresponding
1195+ # attribute in the [Product data specification](https://support.google.com/
1196+ # merchants/answer/7052112) with some exceptions.
11671197 class Product
11681198 include Google ::Apis ::Core ::Hashable
11691199
@@ -1172,6 +1202,11 @@ class Product
11721202 # @return [Google::Apis::MerchantapiProductsV1beta::Attributes]
11731203 attr_accessor :attributes
11741204
1205+ # Information regarding Automated Discounts.
1206+ # Corresponds to the JSON property `automatedDiscounts`
1207+ # @return [Google::Apis::MerchantapiProductsV1beta::AutomatedDiscounts]
1208+ attr_accessor :automated_discounts
1209+
11751210 # Output only. The [channel](https://support.google.com/merchants/answer/7361332)
11761211 # of the product.
11771212 # Corresponds to the JSON property `channel`
@@ -1203,10 +1238,10 @@ class Product
12031238 # @return [String]
12041239 attr_accessor :feed_label
12051240
1206- # The name of the product. Format: `"`product.name= accounts/`account`/products/`
1207- # product``"` where the last section `product` consists of 4 parts: channel~
1208- # content_language~ feed_label~offer_id example for product name is " accounts/123/
1209- # products/online~ en~US~sku123"
1241+ # The name of the product. Format: `accounts/`account`/products/`product`` where
1242+ # the last section `product` consists of 4 parts: ` channel~content_language ~
1243+ # feed_label~offer_id` example for product name is ` accounts/123/products/online~
1244+ # en~US~sku123`
12101245 # Corresponds to the JSON property `name`
12111246 # @return [String]
12121247 attr_accessor :name
@@ -1244,6 +1279,7 @@ def initialize(**args)
12441279 # Update properties of this object
12451280 def update! ( **args )
12461281 @attributes = args [ :attributes ] if args . key? ( :attributes )
1282+ @automated_discounts = args [ :automated_discounts ] if args . key? ( :automated_discounts )
12471283 @channel = args [ :channel ] if args . key? ( :channel )
12481284 @content_language = args [ :content_language ] if args . key? ( :content_language )
12491285 @custom_attributes = args [ :custom_attributes ] if args . key? ( :custom_attributes )
@@ -1395,12 +1431,11 @@ class ProductInput
13951431 # Optional. A list of custom (merchant-provided) attributes. It can also be used
13961432 # for submitting any attribute of the data specification in its generic form (
13971433 # for example, `` "name": "size type", "value": "regular" ``). This is useful
1398- # for submitting attributes not explicitly exposed by the API, such as
1399- # additional attributes used for Buy on Google. Maximum allowed number of
1400- # characters for each custom attribute is 10240 (represents sum of characters
1401- # for name and value). Maximum 2500 custom attributes can be set per product,
1402- # with total size of 102.4kB. Underscores in custom attribute names are replaced
1403- # by spaces upon insertion.
1434+ # for submitting attributes not explicitly exposed by the API. Maximum allowed
1435+ # number of characters for each custom attribute is 10240 (represents sum of
1436+ # characters for name and value). Maximum 2500 custom attributes can be set per
1437+ # product, with total size of 102.4kB. Underscores in custom attribute names are
1438+ # replaced by spaces upon insertion.
14041439 # Corresponds to the JSON property `customAttributes`
14051440 # @return [Array<Google::Apis::MerchantapiProductsV1beta::CustomAttribute>]
14061441 attr_accessor :custom_attributes
@@ -1411,11 +1446,10 @@ class ProductInput
14111446 # @return [String]
14121447 attr_accessor :feed_label
14131448
1414- # Identifier. The name of the product input. Format: `"`productinput.name=
1415- # accounts/`account`/productInputs/`productinput``"` where the last section `
1416- # productinput` consists of 4 parts: channel~content_language~feed_label~
1417- # offer_id example for product input name is "accounts/123/productInputs/online~
1418- # en~US~sku123"
1449+ # Identifier. The name of the product input. Format: `accounts/`account`/
1450+ # productInputs/`productinput`` where the last section `productinput` consists
1451+ # of 4 parts: `channel~content_language~feed_label~offer_id` example for product
1452+ # input name is `accounts/123/productInputs/online~en~US~sku123`
14191453 # Corresponds to the JSON property `name`
14201454 # @return [String]
14211455 attr_accessor :name
@@ -1429,8 +1463,8 @@ class ProductInput
14291463 # @return [String]
14301464 attr_accessor :offer_id
14311465
1432- # Output only. The name of the processed product. Format: `"`product.name=
1433- # accounts/`account`/ products/`product``" `
1466+ # Output only. The name of the processed product. Format: `accounts/`account`/
1467+ # products/`product``
14341468 # Corresponds to the JSON property `product`
14351469 # @return [String]
14361470 attr_accessor :product
0 commit comments