Skip to content

Commit a58b916

Browse files
feat: [ShoppingMerchantProducts] a new field base64_encoded_name is added to the Product message (#9089)
* feat: a new field `base64_encoded_name` is added to the `Product` message feat: new fields - `base64_encoded_name` and `base64_encoded_product` added to the `ProductInput` message docs: A comment for field `name` in message `.google.shopping.merchant.products.v1.ProductInput` is changed docs: A comment for field `name` in message `.google.shopping.merchant.products.v1.Product` is changed PiperOrigin-RevId: 896968813 Source-Link: googleapis/googleapis@2aba484 Source-Link: googleapis/googleapis-gen@820077f Copy-Tag: eyJwIjoiU2hvcHBpbmdNZXJjaGFudFByb2R1Y3RzLy5Pd2xCb3QueWFtbCIsImgiOiI4MjAwNzdmOGY5ZDdkZGUwZGEyYzA3MTk3MjA2OGVlOWM1NzQyMWE4In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 6ea26f5 commit a58b916

12 files changed

Lines changed: 335 additions & 93 deletions

File tree

ShoppingMerchantProducts/metadata/V1/Productinputs.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ShoppingMerchantProducts/metadata/V1/Products.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ShoppingMerchantProducts/metadata/V1/ProductsCommon.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ShoppingMerchantProducts/samples/V1/ProductInputsServiceClient/delete_product_input.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
* MUST be used if any part of the product identifier (like `offer_id`)
5353
* contains characters such as `/`, `%`, or `~`.
5454
* * Example: To represent the product ID `en~US~sku/123`, the
55-
* `{productInput}` segment must be the base64url encoding of this
56-
* string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name
55+
* `{productInput}` segment must be the unpadded base64url encoding of
56+
* this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
5757
* for the product would be
58-
* `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw`.
58+
* `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`.
5959
*
6060
* 2. **Plain Format**: The `{productInput}` segment is the tilde-separated
6161
* string
@@ -66,11 +66,7 @@
6666
* We recommend using the **Encoded Format** for all product IDs to ensure
6767
* correct parsing, especially those containing special characters. The
6868
* presence of tilde (`~`) characters in the `{productInput}` segment is used
69-
* to differentiate between the two formats.
70-
*
71-
* Note: For calls to the v1beta version, the plain format is
72-
* `channel~content_language~feed_label~offer_id`, for example:
73-
* `accounts/123/productinputs/online~en~US~sku123`. Please see
69+
* to differentiate between the two formats. Please see
7470
* {@see ProductInputsServiceClient::productInputName()} for help formatting this field.
7571
* @param string $dataSource The primary or supplemental data source from which the product
7672
* input should be deleted. Format:

ShoppingMerchantProducts/samples/V1/ProductsServiceClient/get_product.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
* MUST be used if any part of the product identifier (like `offer_id`)
5353
* contains characters such as `/`, `%`, or `~`.
5454
* * Example: To represent the product ID `en~US~sku/123`, the
55-
* `{product}` segment must be the base64url encoding of this
56-
* string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name
55+
* `{product}` segment must be the unpadded base64url encoding of this
56+
* string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name
5757
* for the product would be
58-
* `accounts/123/products/ZW5-VVMtc2t1LzEyMw`.
58+
* `accounts/123/products/ZW5-VVN-c2t1LzEyMw`.
5959
*
6060
* 2. **Plain Format**: The `{product}` segment is the tilde-separated string
6161
* `content_language~feed_label~offer_id`. This format is suitable only

0 commit comments

Comments
 (0)