Since the Content API allows you to programmatically interact with GoogleMerchant Center, the first step to using the Content API is setting up andtesting 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 followingaccount 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 your merchant ID, which is the number at the top-right corner of the page, above the account email address.
In the API Explorer for the
products.list
method:- Enter your
merchantId
.
- In the Credentials section, select Google OAuth 2.0 and API key.
- Click the Execute button.
- If prompted, sign in with the Google account associated with your Merchant Center account.
- Enter your
If your Merchant Center account is configured correctly, the request succeedsand returns an HTTP response code 200. However, since you just created a newaccount, the products.list
method doesn’t return any products. Later in thisguide, you will add a product and then call products.list
again to confirmthat the operation succeeded.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-03 UTC.
[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }] [{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]