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 地域代碼),例如美國。
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 總覽。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間: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":"其他"
}]