rocket
认识一下
Merchant API
- Content API for Shopping 的正式替代产品。
update
获取有关 Merchant API 的新功能、问题修复和版本更新的最新信息。
设置 Content API 访问权限
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Summary
To use the Content API for Shopping with a given Merchant Center account, you
must set up an API Console project. API Console projects help you manage API
access and authentication for your Content API solution.
Manual steps
There are two ways you can authenticate to use the Content API for Shopping
depending on whose merchant accounts you need to access:
- Access your own Merchant Center account
- If you only need to access your account (and sub-accounts, if using a
multi-client account), then we suggest using service accounts. See the
Service accounts guide for the steps to create a service account from the
Merchant Center.
- Access other merchants' accounts
- If you plan to manage other Merchant Center accounts as a third-party, see the
OAuth guide.
Once you have the appropriate authentication tokens, you can test your
authentication setup with the Shopping samples, which support both service
account and OAuth2 client authentication. These samples use the
Content API client libraries, which we recommend using in your own
applications if you're using a supported language. Otherwise, you can use the
REST API directly.
Automatic steps
Not available for this process.
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-28。
[null,null,["最后更新时间 (UTC):2025-08-28。"],[[["\u003cp\u003eTo use the Content API for Shopping, you need to set up an API Console project for API access and authentication.\u003c/p\u003e\n"],["\u003cp\u003eYou can access your own Merchant Center account using service accounts or access other merchants' accounts via OAuth.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication can be tested using Shopping samples that support both service account and OAuth2 client authentication, utilizing the Content API client libraries or the REST API.\u003c/p\u003e\n"]]],[],null,["# Set up Content API access\n\nSummary\n-------\n\nTo use the Content API for Shopping with a given Merchant Center account, you\nmust set up an [API Console](https://console.developers.google.com) project. API Console projects help you manage API\naccess and authentication for your Content API solution.\n\nManual steps\n------------\n\nThere are two ways you can authenticate to use the Content API for Shopping\ndepending on whose merchant accounts you need to access:\n\nAccess your own Merchant Center account\n: If you only need to access your account (and sub-accounts, if using a\n multi-client account), then we suggest using service accounts. See the\n [Service accounts](/shopping-content/guides/how-tos/service-accounts) guide for the steps to create a service account from the\n [Merchant Center](https://merchants.google.com).\n\nAccess other merchants' accounts\n: If you plan to manage other Merchant Center accounts as a third-party, see the\n [OAuth](/shopping-content/guides/how-tos/authorizing) guide.\n\nOnce you have the appropriate authentication tokens, you can test your\nauthentication setup with the [Shopping samples](https://github.com/googleads/googleads-shopping-samples), which support both service\naccount and OAuth2 client authentication. These samples use the\n[Content API client libraries](/shopping-content/guides/libraries), which we recommend using in your own\napplications if you're using a supported language. Otherwise, you can use the\n[REST API](/shopping-content/reference/rest/v2.1) directly.\n\nAutomatic steps\n---------------\n\nNot available for this process."]]