rocket
Meet
Merchant API
- the official successor to the Content API for Shopping.
update
Get the latest
on new features, bug fixes, and release updates of the Merchant API.
point_of_sale
Learn how to manage your business and products on Google and how to get programmatic access to
data, insights, and unique capabilities at scale.
Get started with Merchant API today!
Set up Content API access
Stay organized with collections
Save and categorize content based on your preferences.
摘要
如需通过指定的 Merchant Center 帐号使用 Content API for Shopping,您必须设置一个 API 控制台项目。API 控制台项目可帮助您管理 Content API 解决方案的 API 访问权限和身份验证。
手动步骤
您可以通过以下两种方式进行身份验证以使用 Content API for Shopping,具体取决于您需要访问哪些商家帐号:
- 访问您自己的 Merchant Center 账号
- 如果您只需要访问自己的帐号(如果使用多客户帐号,则还包括子帐号),我们建议您使用服务帐号。如需了解从 Merchant Center 创建服务帐号的步骤,请参阅服务帐号指南。
- 访问其他商家的账号
- 如果您打算以第三方身份管理其他 Merchant Center 帐号,请参阅 OAuth 指南。
获得相应的身份验证令牌后,您可以使用购物示例来测试您的身份验证设置,这些示例同时支持服务帐号和 OAuth2 客户端身份验证。这些示例使用的是 Content API 客户端库,如果您使用的是受支持的语言,我们建议您在自己的应用中使用这些库。否则,您可以直接使用 REST API。
自动设置步骤
不适用于此流程。
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 2025-08-31 UTC.
[null,null,["Last updated 2025-08-31 UTC."],[],[]]