@@ -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.
3736service 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.
151154message 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.
167170message 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 ) = {
0 commit comments