Method: accounts.dataSources.fetch
在 Merchant Center 帳戶的資料來源上立即執行資料擷取作業 (即使不在擷取時間表中也一樣)。如果每天需要呼叫這個方法超過一次,請改用產品服務來更新產品資料。這個方法僅適用於含有檔案輸入集的資料來源。
HTTP 要求
POST https://merchantapi.googleapis.com/datasources/v1beta/{name=accounts/*/dataSources/*}:fetch
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
name |
string
必要欄位。要擷取的資料來源資源名稱。格式:accounts/{account}/dataSources/{datasource}
|
回應主體
如果成功,回應主體會是空的 JSON 物件。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/content
詳情請參閱 OAuth 2.0 Overview。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-23 (世界標準時間)。
[null,null,["上次更新時間:2025-01-23 (世界標準時間)。"],[[["Fetches product data immediately from a specified Merchant Center Account data source."],["This method is suitable for infrequent use (less than daily) and requires a data source with a file input."],["Uses the `POST` method and requires the `content` authorization scope."],["The request body should be empty, and a successful response will be an empty JSON object."],["Frequent data updates should be done via the Products service instead of this method."]]],["This document details the process of manually fetching data from a data source in a Merchant Center Account. It uses a `POST` HTTP request to a specified URL, including a required `name` path parameter identifying the data source. The request body must be empty. A successful fetch returns an empty JSON object in the response body. This action should only occur once per day, and it requires `https://www.googleapis.com/auth/content` OAuth scope authorization. The request uses gRPC Transcoding.\n"]]