The Shopping Content Service allows you to 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. Please see our API guide for more information about account-level tax and shipping.