Method: accounts.products.update
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在 Manufacturer Center 帐号中插入或更新商品的属性。
使用提供的属性创建商品。如果商品已存在,则所有属性都将替换为新属性。上传时检查次数极少。商品必须存在所有必需的属性才能生效。待 API 接受为商品上传的新商品后,可能会出现问题,并且您可以使用无效商品覆盖现有的有效商品。要检测是否存在这种情况,您应该在有新版本时检索并检查商品是否存在问题。
您需要先处理已上传的属性,然后才能检索它们。在此之前,新的商品将不可用,检索先前上传的商品将恢复商品的原始状态。
HTTP 请求
PUT https://manufacturers.googleapis.com/v1/{parent=accounts/*}/products/{name}
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
父级 ID,格式为 accounts/{account_id} 。 account_id - Manufacturer Center 帐号的 ID。
|
name |
string
名称采用 {targetCountry}:{contentLanguage}:{productId} 格式。 targetCountry - 商品的目标国家/地区(以 CLDR 地区代码表示,例如 US)。
contentLanguage - 商品的内容语言,以两个字母的 ISO 639-1 语言代码表示(例如 en)。
productId - 商品的 ID。如需了解详情,请参阅 https://support.google.com/manufacturers/answer/6124116#id。
|
请求正文
请求正文包含一个 Attributes
实例。
授权范围
需要以下 OAuth 作用域:
https://www.googleapis.com/auth/manufacturercenter
如需了解详情,请参阅 OAuth 2.0 概览。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-02-02。
[{
"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":"其他"
}]