AI-generated Key Takeaways
-
The Shopping Content Service lets you manage Google Merchant Center product listings and accounts within Apps Script using the Google Content API for Shopping.
-
This is an advanced service that requires enabling before use and mirrors the functionality of the public API.
-
Provided code samples demonstrate common tasks like inserting, listing, and batch-updating products, as well as updating account-level tax information.
-
For comprehensive details, consult the Google Content API for Shopping reference documentation and support guide linked within the content.
The Shopping Content Service lets you use the Google Content API for Shopping in Apps Script. This API gives Google Merchant Center users the ability to upload and manage their product listings and manage their Merchant Center accounts.
For detailed information on this service, see the reference documentation for the Google Content API for Shopping. Like all advanced services in Apps Script, the Shopping Content Service utilizes the same objects, methods, and parameters as the public API.
Reference
For detailed information on this service, see the reference documentation for the Google Content API for Shopping API. Like all advanced services in Apps Script, the advanced Sheets service uses the same objects, methods, and parameters as the public API. For more information, see How method signatures are determined.
To report issues and find other support, see the Google Content API for Shopping support guide.
Sample code
We now show how to use a few features of the Shopping Content Service.
Insert product
This example demonstrates how to insert a single product into a given merchant center account.
List products
This example demonstrates how to list your products for a given merchant center account.
Batch insert products
This example uses Products.custombatch to insert three products at the same time.
Update account-level taxes
This sample code uses Accounttax to update the account-level tax information for a Merchant Center account. See our API guide for more information about account-level tax and shipping.