rocket
认识一下
Merchant API
- Content API for Shopping 的正式替代产品。
update
获取有关 Merchant API 的新功能、问题修复和版本更新的最新信息。
为商家管理现有账号
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
摘要
您可以按照以下步骤管理现有商家帐号。这可以是您自己的商家帐号,也可以是客户的商家帐号。
手动步骤
您可以通过以下方式管理子帐号:
- 管理员用户(推荐)
- 如果您需要使用 Merchant Center 界面,商家可以将您的 Google 帐号添加为其 Merchant Center 帐号的管理员用户。
- 服务账号(推荐)
- 如果您不需要 Merchant Center 界面,可以通过服务帐号进行身份验证,然后将服务帐号 ID 添加为商家帐号的用户。
- 全部托管(不推荐)
除非您只需要管理一个子帐号,否则我们建议您使用上述方案之一。
如果商家希望您全面管理其 Merchant Center 帐号,并且您有 MCA,则可以执行以下操作:
- 收集 MCA 的 ID 和商家帐号的 ID。
- 点击右上角菜单栏中的 ?问号 > 帮助中心与支持 > 与我们联系。
请求将商家的帐号转换为您的 MCA 的子帐号,并提供您的 MCA 帐号的 ID 和商家帐号的 ID。
您可以再次联系 Google 来撤消此过程。
自动设置步骤
您可以使用 Content API for Shopping 请求、批准和移除 MCA 与其他商家帐号之间的关联。具体步骤如下:
- 使用 Content API for Shopping 并作为 OAuth2 客户端进行身份验证。
- 请求关联另一个商家帐号。
- 请商家批准该关联。
您还可以使用 Content API for Shopping 列出和移除现有链接。
您的购物解决方案可以向商家显示同意屏幕,以便您的 OAuth2 应用访问其商家帐号。
此过程仍需要使用 Google API 控制台界面。
如需了解更多详情和示例代码,请参阅使用 OAuth。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eManage existing merchant accounts manually by becoming an administrative user or utilizing a service account for authentication.\u003c/p\u003e\n"],["\u003cp\u003eFull management through account linking is possible but less recommended compared to the other manual options.\u003c/p\u003e\n"],["\u003cp\u003eAutomate merchant account management with the Content API for Shopping by requesting, approving, and removing links programmatically.\u003c/p\u003e\n"],["\u003cp\u003eMerchants need to approve link requests initiated through the Content API for establishing connections.\u003c/p\u003e\n"],["\u003cp\u003eUtilize the Content API for Shopping to list and remove existing account links for streamlined management.\u003c/p\u003e\n"]]],[],null,["# Administer an existing account for a merchant\n\nSummary\n-------\n\nYou can use the following steps to manage an existing merchant account. This\nmight be your own merchant account, or a client's merchant account.\n\nManual steps\n------------\n\nHere are the ways you can administer a sub-account:\n\nAdministrative user (recommended)\n: If you need to use the [Merchant Center UI](https://merchants.google.com), the\n merchant can add your Google account as an administrative user for their\n Merchant Center account.\n\nService account (recommended)\n: If you don't need the Merchant Center UI, you can authenticate through\n [a service account](/shopping-content/guides/how-tos/service-accounts), then add the service account ID\n as a user on the merchant's account.\n\nFull management (not recommended)\n\n: We recommend one of the preceding options unless you only need to manage one\n sub-account.\n\n If the merchant wants you to fully manage their Merchant Center account and\n you have an MCA, you can do the following:\n\n 1. Gather the IDs for your MCA and for the merchant's account.\n 2. In the top right menu bar, click the **?** question mark **\\\u003e Help center\n and support \\\u003e Contact us**.\n 3. Request to convert the merchant's account to a sub-account of your MCA,\n and provide the ID of your MCA account and the ID of the merchant's\n account.\n\n You can contact Google again to undo this process.\n\nAutomatic steps\n---------------\n\nYou can use the Content API for Shopping to request, approve, and remove links\nbetween your MCA and other Merchant accounts. Here are the steps:\n\n1. Use the Content API for Shopping and [authenticate as an OAuth2 client](/shopping-content/guides/how-tos/authorizing).\n2. [Request a link](/shopping-content/guides/flagging/request) to another Merchant account.\n3. Ask the merchant to [approve the link](/shopping-content/guides/flagging/approve).\n\nYou can also use the Content API for Shopping to\n[list](/shopping-content/guides/flagging/list) and\n[remove](/shopping-content/guides/flagging/remove) existing links.\n\nYour Shopping solution can present the merchant with a consent screen to give\nyour OAuth2 application access to their merchant account.\n\nThis process still requires use of the [Google API Console](//console.developers.google.com/) UI.\n\nSee [Using OAuth](/shopping-content/guides/how-tos/authorizing#OAuth2Authorizing) for more details and sample code."]]