rocket
隆重推出
Merchant API - Content API for Shopping 的正式替代方案。
update
获取最新资讯,了解 Merchant API 的新功能、问题修复和更新。
add_alert
注意:Content API for Shopping 将于 2026 年 8 月 18 日停用。
开始使用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以使用 Content API for Shopping 自动管理 Google Merchant Center 帐号。
以下是您可以使用 Content API for Shopping 执行的操作:
- 上传商品
- 管理广告资源
- 管理 Merchant Center 账号
- 将您的广告资源与 Google Ads 相关联
上传商品后,您可以利用其他 Google for Retail 解决方案,例如在购物广告系列中宣传您的商品。
商家有责任遵守购物广告和非付费商品详情政策。Google 购物保留执行这些政策的权利,并在发现违反这些政策的内容或行为时采取适当的应对措施。
请参阅左侧导航菜单,了解可帮助您开始使用 Content API for Shopping 的指南;参阅我们的参考文档,详细了解所有可用功能。
客户端库
我们建议在部署 Content API for Shopping 时使用 Google API 客户端库。客户端库支持许多常用编程语言,可简化常见的 API 任务,包括:
本指南中的代码示例使用 Python。
如需查看可用客户端库和代码示例的列表,请参阅示例和库。
初始设置
本指南介绍了开始使用 Content API 并发出首次 API 调用的基本步骤:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-13。
[null,null,["最后更新时间 (UTC):2025-08-13。"],[[["\u003cp\u003eThe Merchant API is the new version of the Content API for Shopping and provides automated Google Merchant Center account management.\u003c/p\u003e\n"],["\u003cp\u003eUse the Merchant API to upload products, manage inventory, manage Merchant Center accounts, and link your inventory to Google Ads.\u003c/p\u003e\n"],["\u003cp\u003eMerchants are responsible for complying with Shopping ads and free listings policies.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides client libraries and code samples in various programming languages to simplify API integration.\u003c/p\u003e\n"],["\u003cp\u003eTo get started, set up your Merchant Center account, set up a client library, make an API call, and explore the Content API using provided guides.\u003c/p\u003e\n"]]],["The beta version of the Merchant API, the new Content API for Shopping, allows users to automate Google Merchant Center account management. Key actions include uploading products, managing inventory and accounts, and linking inventory to Google Ads. After uploading products, they can be promoted in Shopping campaigns. Merchants must adhere to Shopping ads and free listings policies. The API can be used with Google API client libraries, and the initial setup involves configuring the Merchant Center account, setting up a client library, making an API call and exploring the Content API.\n"],null,["# Get started\n\nYou can use the Content API for Shopping to automate\n[Google Merchant Center](//merchants.google.com/) account management.\n\nHere are some things you can do with the Content API for Shopping:\n\n- Upload products\n- Manage inventory\n- Manage Merchant Center accounts\n- Link your inventory to [Google Ads](//ads.google.com)\n\nAfter uploading products, you can take advantage of other\n[Google for Retail solutions](//google.com/retail/solutions/), like promoting\nyour products in\n[Shopping campaigns](//support.google.com/google-ads/answer/2454022).\n\nMerchants are responsible for complying with the [Shopping\nads](//support.google.com/merchants/answer/6149970) and [free\nlistings](//support.google.com/merchants/answer/9261529) policies. Google\nShopping reserves the right to enforce these policies and respond appropriately\nif we find content or behavior that violates these policies.\n\nSee the left navigation menu for guides to help you get started with the Content\nAPI for Shopping, and our [reference\ndocumentation](/shopping-content/reference/rest/v2.1) for full details on all\navailable features.\n\nClient libraries\n----------------\n\nWe recommend using the [Google API client libraries](/api-client-library) when\ndeploying the Content API for Shopping. The client libraries are available for\nmany popular programming languages and simplify common API tasks including the\nfollowing:\n\n- Authorizing users\n- Sending requests\n- Parsing responses\n\nCode samples in this guide are in Python.\n\nFor a list of available client libraries and code samples, see\n[Samples and Libraries](/shopping-content/guides/libraries).\n\nInitial setup\n-------------\n\nThis guide covers the basic steps to get started with the Content API and make\nyour first API call:\n\n- [Setting up your Merchant Center account](/shopping-content/guides/quickstart/setting-up-your-merchant-center-account)\n- [Setting up a client library](/shopping-content/guides/quickstart/setting-up-a-client-library)\n- [Making an API call](/shopping-content/guides/quickstart/making-an-api-call)\n- [Exploring the Content API](/shopping-content/guides/quickstart/exploring-the-content-api)"]]