开始使用
您可以使用 Content API for Shopping 自动管理 Google Merchant Center 账号。
以下是您可以使用 Content API for Shopping 执行的一些操作:
- 上传商品
- 管理广告资源
- 管理 Merchant Center 账号
- 将您的商品目录与 Google Ads 相关联
上传商品后,您可以利用其他 Google 零售解决方案,例如在购物广告系列中宣传您的商品。
商家有责任遵守购物广告和非付费商品详情政策。Google 购物保留强制执行这些政策的权利,如果发现违反这些政策的内容或行为,将会采取适当措施。
请参阅左侧导航菜单,查看有助于您开始使用购物内容 API 的指南;如需详细了解所有可用功能,请参阅我们的参考文档。
客户端库
在部署 Content API for Shopping 时,我们建议您使用 Google API 客户端库。这些客户端库适用于许多常用编程语言,可简化常见的 API 任务,包括:
本指南中的代码示例采用 Python 编写。
如需查看可用客户端库和代码示例的列表,请参阅示例和库。
初始设置
本指南介绍了开始使用 Content API 并发出首个 API 调用的基本步骤:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-06-19。
[null,null,["最后更新时间 (UTC):2025-06-19。"],[[["The Merchant API is the new version of the Content API for Shopping and provides automated Google Merchant Center account management."],["Use the Merchant API to upload products, manage inventory, manage Merchant Center accounts, and link your inventory to Google Ads."],["Merchants are responsible for complying with Shopping ads and free listings policies."],["Google provides client libraries and code samples in various programming languages to simplify API integration."],["To 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."]]],["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"]]