Stay organized with collections
Save and categorize content based on your preferences.
To test code that uses the Content API for Shopping, we suggest creating a
separate Merchant Center account devoted solely to testing. This lets you run
both manual and automated tests for code that uses the Content API for Shopping
without impacting active feeds or Shopping campaigns.
Set up your test environment
Create a new Google account
that will be associated with the Merchant Center account. Sign in to and use
the new Google account for the following steps.
Follow the steps in Getting Started to
set up a new Merchant Center account. You don't need to validate the website
URL for the testing account.
Create appropriate credentials for the code you plan to test. For test code,
we suggest you use the service account flow described in the Service Accounts
guide for your testing
framework to avoid having to deal with requesting permission, access tokens,
and refresh tokens.
With your new Merchant Center account and credentials, you should be ready to
test your code with the Content API for Shopping. If you're just getting
started with the Content API, read the Getting Started
guide to learn how to use your test
environment with the Python client library, or visit our Samples and Libraries
page, where you can find code examples
with which you can test your new test environment.
The API will still perform validation checks, which provide
feedback to common errors such as missing required fields, but data quality
checks won't be performed, as any uploaded products will be automatically
disapproved.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-16 UTC."],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of the platform."],["Developers are encouraged to create a separate Merchant Center account solely for testing the API to avoid impacting live data."],["Setting up a test environment involves creating a new Google account, Merchant Center account, and developer project with the Content API enabled."],["While data quality checks aren't performed on test accounts, the API still conducts validation checks to provide feedback on errors."],["Testing accounts will eventually be suspended due to invalid product information, which is expected and won't affect Content API testing."]]],[]]