Skip to content

Commit f21ba78

Browse files
1 parent 6dc33e5 commit f21ba78

141 files changed

Lines changed: 539 additions & 30441 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 4 parts:
39-
* `channel~content_language~feed_label~offer_id`
38+
* where the last section `product` consists of:
39+
* `content_language~feed_label~offer_id`
4040
* example for product name is
41-
* `accounts/123/productInputs/online~en~US~sku123`. Please see
41+
* `accounts/123/productInputs/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: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@
3030

3131
/**
3232
* [Uploads a product input to your Merchant Center
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.
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.
3738
*
38-
* If an input with the same contentLanguage, offerId, and dataSource already
39-
* exists, this method replaces that entry.
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.
4042
*
4143
* After inserting, updating, or deleting a product input, it may take several
4244
* minutes before the processed product can be retrieved.
@@ -53,16 +55,16 @@
5355
* @param string $productInputContentLanguage Immutable. The two-letter [ISO
5456
* 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
5557
* product.
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
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
5860
* characters are `A-Z`, `0-9`, hyphen, and underscore. The feed label must
5961
* not include any spaces. For more information, see [Using feed
6062
* labels](//support.google.com/merchants/answer/14994087).
6163
* @param string $dataSource The primary or supplemental product data source name. If the
6264
* product already exists and data source provided is different, then the
6365
* product will be moved to a new data source. For more information, see
64-
* [Overview of Data sources
65-
* sub-API](/merchant/api/guides/data-sources/overview).
66+
* [Create a primary data
67+
* source](/merchant/api/guides/data-sources/api-sources#create-primary-data-source).
6668
*
6769
* Only API data sources are supported.
6870
*

‎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 label that lets you categorize and identify your
47-
* products. The maximum allowed characters are 20, and the supported
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
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: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@
3535
* minutes before the updated final product can be retrieved.
3636
*
3737
* @param string $formattedName The name of the product to retrieve.
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.
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.
4448
*/
4549
function get_product_sample(string $formattedName): void
4650
{

‎ShoppingMerchantProducts/src/V1beta/Attributes.php‎

Lines changed: 40 additions & 24 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: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

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

289288
/**
290289
* [Uploads a product input to your Merchant Center
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.
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.
298299
*
299300
* After inserting, updating, or deleting a product input, it may take several
300301
* minutes before the processed product can be retrieved.

0 commit comments

Comments
 (0)