Skip to content

Commit 54eb8bc

Browse files
1 parent a310695 commit 54eb8bc

143 files changed

Lines changed: 138 additions & 31283 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
-226 Bytes
Binary file not shown.
-181 Bytes
Binary file not shown.
-265 Bytes
Binary file not shown.

‎ShoppingMerchantProducts/samples/V1beta/ProductInputsServiceClient/delete_product_input.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
*
3636
* @param string $formattedName The name of the product input resource to delete.
3737
* Format: `accounts/{account}/productInputs/{product}`
38-
* where the last section `product` consists of:
39-
* `content_language~feed_label~offer_id`
38+
* where the last section `product` consists of 4 parts:
39+
* `channel~content_language~feed_label~offer_id`
4040
* example for product name is
41-
* `accounts/123/productInputs/en~US~sku123`. Please see
41+
* `accounts/123/productInputs/online~en~US~sku123`. Please see
4242
* {@see ProductInputsServiceClient::productInputName()} for help formatting this field.
4343
* @param string $dataSource The primary or supplemental data source from which the product
4444
* input should be deleted. Format:

‎ShoppingMerchantProducts/samples/V1beta/ProductInputsServiceClient/insert_product_input.php‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@
3030

3131
/**
3232
* [Uploads a product input to your Merchant Center
33-
* account](/merchant/api/guides/products/add-manage#add_a_product). You
34-
* must have a products [data
35-
* source](/merchant/api/guides/data-sources/api-sources#create-primary-data-source)
36-
* to be able to insert a product. The unique identifier of the data source is
37-
* passed as a query parameter in the request URL.
33+
* account](/merchant/api/guides/products/overview#upload-product-input). You
34+
* must have a products data source to be able to insert a product. The unique
35+
* identifier of the data source is passed as a query parameter in the request
36+
* URL.
3837
*
39-
* If a product input with the same contentLanguage, offerId, and dataSource
40-
* already exists, then the product input inserted by this method replaces
41-
* that entry.
38+
* If an input with the same contentLanguage, offerId, and dataSource already
39+
* exists, this method replaces that entry.
4240
*
4341
* After inserting, updating, or deleting a product input, it may take several
4442
* minutes before the processed product can be retrieved.
@@ -55,16 +53,16 @@
5553
* @param string $productInputContentLanguage Immutable. The two-letter [ISO
5654
* 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
5755
* product.
58-
* @param string $productInputFeedLabel Immutable. The feed label that lets you categorize and identify
59-
* your products. The maximum allowed characters are 20, and the supported
56+
* @param string $productInputFeedLabel Immutable. The label that lets you categorize and identify your
57+
* products. The maximum allowed characters are 20, and the supported
6058
* characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
6159
* not include any spaces. For more information, see [Using feed
6260
* labels](//support.google.com/merchants/answer/14994087).
6361
* @param string $dataSource The primary or supplemental product data source name. If the
6462
* product already exists and data source provided is different, then the
6563
* product will be moved to a new data source. For more information, see
66-
* [Create a primary data
67-
* source](/merchant/api/guides/data-sources/api-sources#create-primary-data-source).
64+
* [Overview of Data sources
65+
* sub-API](/merchant/api/guides/data-sources/overview).
6866
*
6967
* Only API data sources are supported.
7068
*

‎ShoppingMerchantProducts/samples/V1beta/ProductInputsServiceClient/update_product_input.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
* @param string $productInputContentLanguage Immutable. The two-letter [ISO
4444
* 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
4545
* product.
46-
* @param string $productInputFeedLabel Immutable. The feed label that lets you categorize and identify
47-
* your products. The maximum allowed characters are 20, and the supported
46+
* @param string $productInputFeedLabel Immutable. The label that lets you categorize and identify your
47+
* products. The maximum allowed characters are 20, and the supported
4848
* characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
4949
* not include any spaces. For more information, see [Using feed
5050
* labels](//support.google.com/merchants/answer/14994087).

‎ShoppingMerchantProducts/samples/V1beta/ProductsServiceClient/get_product.php‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,12 @@
3535
* minutes before the updated final product can be retrieved.
3636
*
3737
* @param string $formattedName The name of the product to retrieve.
38-
* Format:
39-
* `accounts/{account}/products/{product}` where the last
40-
* section `product` consists of:
41-
* `content_language~feed_label~offer_id`
42-
* example for product name is `accounts/123/products/en~US~sku123`. A legacy
43-
* local product name would be `accounts/123/products/local~en~US~sku123`.
44-
* Note: For calls to the v1beta version, the `product` section consists
45-
* of: `channel~content_language~feed_label~offer_id`, for example:
46-
* `accounts/123/products/online~en~US~sku123`. Please see
47-
* {@see ProductsServiceClient::productName()} for help formatting this field.
38+
* Format: `accounts/{account}/products/{product}`
39+
* where the last section `product` consists of 4 parts:
40+
* `channel~content_language~feed_label~offer_id`
41+
* example for product name is
42+
* `accounts/123/products/online~en~US~sku123`
43+
* Please see {@see ProductsServiceClient::productName()} for help formatting this field.
4844
*/
4945
function get_product_sample(string $formattedName): void
5046
{

‎ShoppingMerchantProducts/src/V1beta/Attributes.php‎

Lines changed: 24 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ShoppingMerchantProducts/src/V1beta/Client/ProductInputsServiceClient.php‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
/**
4646
* Service Description: Service to use ProductInput resource.
47+
* This service works for products with online channel only.
4748
*
4849
* This class provides the ability to make remote calls to the backing service through method
4950
* calls that map to API methods.
@@ -287,15 +288,13 @@ public function deleteProductInput(DeleteProductInputRequest $request, array $ca
287288

288289
/**
289290
* [Uploads a product input to your Merchant Center
290-
* account](/merchant/api/guides/products/add-manage#add_a_product). You
291-
* must have a products [data
292-
* source](/merchant/api/guides/data-sources/api-sources#create-primary-data-source)
293-
* to be able to insert a product. The unique identifier of the data source is
294-
* passed as a query parameter in the request URL.
295-
*
296-
* If a product input with the same contentLanguage, offerId, and dataSource
297-
* already exists, then the product input inserted by this method replaces
298-
* that entry.
291+
* account](/merchant/api/guides/products/overview#upload-product-input). You
292+
* must have a products data source to be able to insert a product. The unique
293+
* identifier of the data source is passed as a query parameter in the request
294+
* URL.
295+
*
296+
* If an input with the same contentLanguage, offerId, and dataSource already
297+
* exists, this method replaces that entry.
299298
*
300299
* After inserting, updating, or deleting a product input, it may take several
301300
* minutes before the processed product can be retrieved.

0 commit comments

Comments
 (0)