Merchant API (v1beta) 已於 2026 年 2 月 28 日終止服務並停用。如要瞭解如何改用最新穩定版,請參閱「
從 v1beta 遷移至 v1」。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
管理產品
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
你可以透過 Products 子 API,以程式輔助方式管理 Google Merchant Center 中的商品目錄。你可以建立、擷取、更新及刪除產品,直接整合系統與 Google,享有彈性。
Merchant API 的重要概念是區分你提交的資料和 Google 使用的最終產品。這樣一來,產品資料生命週期模型會更清楚,你也能更精確地控管產品資訊。API 會透過兩個主要資源反映這點:
ProductInput:
這是指你提交至特定資料來源的原始產品資料。
你可以將這視為你在動態饋給檔案中上傳的資料列,或是透過 API 呼叫提交的資料,然後再由 Merchant Center 處理。您可以使用這個資源進行所有寫入作業 (insert、patch、delete)。
Product:
這是唯讀資源,代表最終處理完畢的產品,會顯示在 Merchant Center 和 Google 平台上。系統會套用所有動態饋給規則和處理程序,然後從一個主要 ProductInput 和零或多個補充 ProductInput 資源建立動態饋給。這項資源包含產品的最終狀態和任何資料品質問題。您可以使用這項資源執行所有讀取作業 (get、list)。
使用 ProductInput 資源提交的所有產品屬性格式和規定,都定義在產品資料規格中。
Products 子 API 的用途
您可以使用 Products 子 API 執行下列主要工作。請參閱指南,瞭解各項用途的詳細操作說明和程式碼範例。
- 新增及管理產品:瞭解如何將新產品新增至帳戶、為現有產品提供補充資料,以及刪除不再販售的產品。
- 頻繁更新產品:瞭解如何有效率地部分更新經常變動的產品屬性,例如價格和供應情形。
- 列出產品資料和產品問題:瞭解如何擷取已處理的產品、查看不同目的地的核准狀態,以及找出可能影響產品曝光度的資料品質問題。
事前準備
使用 Products 子 API 前,你必須先在 Merchant Center 帳戶中建立至少一個 API 資料來源。產品子 API 只能在 API 類型的資料來源中插入或更新產品。如需操作說明,請參閱「管理產品上傳的 API 資料來源」指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-18 (世界標準時間)。
[null,null,["上次更新時間:2026-05-18 (世界標準時間)。"],[],["The Merchant Products API allows programmatic product data management via `productInputs` and `products` resources. Actions include inserting `productInput` data with required fields like `channel`, `offerId`, `contentLanguage`, and `feedLabel` using `accounts.productInputs.insert`. Processed products can be retrieved using `accounts.products.get` and listed with `accounts.products.list`. Product inputs are deleted using `accounts.productInputs.delete`, specifying the data source. Products are built from primary and supplemental data sources, enabling real-time catalog management. You can use Batch mode to manage many products.\n"]]