Skip to content

Commit df1d4b2

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new field automated_discounts is added to message google.shopping.merchant.products.v1beta.Product
docs: Modified several comments PiperOrigin-RevId: 745136106
1 parent 4deedce commit df1d4b2

3 files changed

Lines changed: 36 additions & 16 deletions

File tree

google/shopping/merchant/products/v1beta/productinputs.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ message ProductInput {
104104
};
105105

106106
// Identifier. The name of the product input.
107-
// Format:
108-
// `"{productinput.name=accounts/{account}/productInputs/{productinput}}"`
107+
// Format: accounts/{account}/productInputs/{productinput}
109108
// where the last section `productinput` consists of 4 parts:
110109
// channel~content_language~feed_label~offer_id
111110
// example for product input name is

google/shopping/merchant/products/v1beta/products.proto

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ option (google.api.resource_definition) = {
3333
};
3434

3535
// Service to use Product resource.
36-
// This service works for products with online channel only.
3736
service ProductsService {
3837
option (google.api.default_host) = "merchantapi.googleapis.com";
3938
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/content";
@@ -50,8 +49,8 @@ service ProductsService {
5049
}
5150

5251
// Lists the processed products in your Merchant Center account. The response
53-
// might contain fewer items than specified by pageSize. Rely on pageToken to
54-
// determine if there are more items to be requested.
52+
// might contain fewer items than specified by `pageSize`. Rely on `pageToken`
53+
// to determine if there are more items to be requested.
5554
//
5655
// After inserting, updating, or deleting a product input, it may take several
5756
// minutes before the updated processed product can be retrieved.
@@ -66,11 +65,11 @@ service ProductsService {
6665
// The processed product, built from multiple [product
6766
// inputs][google.shopping.merchant.products.v1main.ProductInput]
6867
// after applying rules and supplemental data sources. This processed product
69-
// matches what is shown in your Merchant Center account and in Shopping ads and
70-
// other surfaces across Google. Each product is built from exactly one primary
71-
// data source product input, and multiple supplemental data source inputs.
72-
// After inserting, updating, or deleting a product input, it may take
73-
// several minutes before the updated processed product can be retrieved.
68+
// matches what is shown in your Merchant Center account. Each product is built
69+
// from exactly one primary data source product input, and multiple supplemental
70+
// data source inputs. After inserting, updating, or deleting a product input,
71+
// it may take several minutes before the updated processed product can be
72+
// retrieved.
7473
//
7574
// All fields in the processed product and its sub-messages match the name of
7675
// their corresponding attribute in the [Product data
@@ -84,10 +83,10 @@ message Product {
8483

8584
// The name of the product.
8685
// Format:
87-
// `"{product.name=accounts/{account}/products/{product}}"` where the last
86+
// `accounts/{account}/products/{product}` where the last
8887
// section `product` consists of 4 parts:
89-
// channel~content_language~feed_label~offer_id
90-
// example for product name is "accounts/123/products/online~en~US~sku123"
88+
// `channel~content_language~feed_label~offer_id`
89+
// example for product name is `accounts/123/products/online~en~US~sku123`
9190
string name = 1;
9291

9392
// Output only. The
@@ -145,16 +144,20 @@ message Product {
145144
// Output only. The status of a product, data validation issues, that is,
146145
// information about a product computed asynchronously.
147146
ProductStatus product_status = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
147+
148+
// Output only. The automated discounts information for the product.
149+
AutomatedDiscounts automated_discounts = 12
150+
[(google.api.field_behavior) = OUTPUT_ONLY];
148151
}
149152

150153
// Request message for the GetProduct method.
151154
message GetProductRequest {
152155
// Required. The name of the product to retrieve.
153156
// Format: `accounts/{account}/products/{product}`
154157
// where the last section `product` consists of 4 parts:
155-
// channel~content_language~feed_label~offer_id
158+
// `channel~content_language~feed_label~offer_id`
156159
// example for product name is
157-
// "accounts/123/products/online~en~US~sku123"
160+
// `accounts/123/products/online~en~US~sku123`
158161
string name = 1 [
159162
(google.api.field_behavior) = REQUIRED,
160163
(google.api.resource_reference) = {
@@ -166,7 +169,7 @@ message GetProductRequest {
166169
// Request message for the ListProducts method.
167170
message ListProductsRequest {
168171
// Required. The account to list processed products for.
169-
// Format: accounts/{account}
172+
// Format: `accounts/{account}`
170173
string parent = 1 [
171174
(google.api.field_behavior) = REQUIRED,
172175
(google.api.resource_reference) = {

google/shopping/merchant/products/v1beta/products_common.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,3 +880,21 @@ message ProductSustainabilityIncentive {
880880
// Sustainability incentive program.
881881
optional Type type = 1;
882882
}
883+
884+
// Information regarding Automated Discounts.
885+
message AutomatedDiscounts {
886+
// The price prior to the application of the first price reduction.
887+
// Absent if the information about the prior price of the product is not
888+
// available.
889+
google.shopping.type.Price prior_price = 1;
890+
891+
// The price prior to the application of consecutive price reductions.
892+
// Absent if the information about the prior price of the product is not
893+
// available.
894+
google.shopping.type.Price prior_price_progressive = 2;
895+
896+
// The current sale price for products with a price optimized using Google
897+
// Automated Discounts (GAD). Absent if the information about the GAD_price of
898+
// the product is not available.
899+
google.shopping.type.Price gad_price = 3;
900+
}

0 commit comments

Comments
 (0)