Method: accounts.productInputs.insert

將產品輸入內容上傳至 Merchant Center 帳戶。如果輸入內容的 contentLanguage、offerId 和 dataSource 已存在,這個方法會取代該項目。

插入、更新或刪除產品輸入內容後,可能需要幾分鐘才能擷取已處理的產品。

HTTP 要求

POST https://merchantapi.googleapis.com/products/v1beta/{parent=accounts/*}/productInputs:insert

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

必要欄位。要插入此產品的帳戶。格式:accounts/{account}

查詢參數

參數
dataSource

string

必要欄位。主要或補充產品資料來源名稱。如果產品已存在,且提供的資料來源不同,系統會將產品移至新的資料來源。

僅支援 API 資料來源。

格式:accounts/{account}/dataSources/{datasource}

要求主體

要求主體包含 ProductInput 的例項。

回應主體

如果成功,回應主體會包含 ProductInput 的執行例項。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/content

詳情請參閱 OAuth 2.0 Overview