Since the Content API lets you programmatically interact with Google Merchant Center, the first step to using the Content API is setting up and testing your Merchant Center account.
To create and test your Merchant Center account, complete the following steps:
- To create a new Merchant Center account, complete the steps in Sign up for Google Merchant Center.
- In Merchant Center, configure the following
account settings:
- Verify and claim your website URL. Merchant accounts with approved third-party CSSs aren't required to claim a website.
- Set up tax settings (US only).
- In Merchant Center, find the unique identifier of your account, which is the number at the top-right corner of the page, above the account email address.
Run a
products.list
request using the API Explorer.- Enter your account ID in the
merchantId
field.
- In the Credentials section, select Google OAuth 2.0 and API key.
- Click Execute.
- If prompted, sign in with the Google Account associated with your Merchant Center account.
- Enter your account ID in the
If your Merchant Center account is configured correctly, the request succeeds
and returns an HTTP response code 200. However, since you just created a new
account, the products.list
method might not return any products. Later in this
guide, you will add a product and then call products.list
again to confirm
that the operation succeeded.