设置 Merchant Center
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
由于 Content API 允许您以编程方式与 Google Merchant Center 互动,因此使用 Content API 的第一步是设置并测试您的 Merchant Center 帐号。
如需创建和测试 Merchant Center 账号,请完成以下步骤:
- 如需创建新的 Merchant Center 账号,请完成注册 Google Merchant Center 中的步骤。
- 在 Merchant Center 中,配置以下帐号设置:
- 验证网站网址并声明所有权。拥有已获批准的第三方 CSS 的商家账号无需声明网站所有权。
- 设置税费设置(仅限美国)。
- 在 Merchant Center 中,找到您的商家 ID,即页面右上角帐号电子邮件地址上方的数字。
在 API Explorer 中的 products.list
方法中:
- 输入您的
merchantId
。
- 在凭据部分中,选择 Google OAuth 2.0 和 API 密钥。
- 点击执行按钮。
- 如果系统提示,请使用与您的 Merchant Center 帐号关联的 Google 帐号登录。
如果您的 Merchant Center 帐号配置正确,请求会成功并返回 HTTP 响应代码 200。但是,由于您刚创建了一个新帐号,因此 products.list
方法不会返回任何商品。在本指南的后面部分,您将添加一个商品,然后再次调用 products.list
以确认操作成功。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-07-03。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{
"last_modified": "最后更新时间 (UTC):2024-07-03。",
"state": ""
}