Method: accounts.dataSources.fetch
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Merchant Center hesabınızdaki bir veri kaynağında veri getirme işlemini hemen (getirme planı dışında bile) gerçekleştirir. Bu yöntemi günde bir kereden fazla çağırmanız gerekiyorsa ürün verilerinizi güncellemek için Ürünler hizmetini kullanmanız gerekir. Bu yöntem yalnızca dosya girişi ayarlanmış veri kaynaklarında çalışır.
HTTP isteği
POST https://merchantapi.googleapis.com/datasources/v1beta/{name=accounts/*/dataSources/*}:fetch
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
name |
string
Zorunlu. Getirilecek veri kaynağı kaynağının adı. Biçim: accounts/{account}/dataSources/{datasource}
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
Başarılı olursa yanıt metni boş bir JSON nesnesi olur.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/content
Daha fazla bilgi için OAuth 2.0 Overview sayfasına bakın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-01-23 UTC.
[null,null,["Son güncelleme tarihi: 2025-01-23 UTC."],[[["\u003cp\u003eFetches product data immediately from a specified Merchant Center Account data source.\u003c/p\u003e\n"],["\u003cp\u003eThis method is suitable for infrequent use (less than daily) and requires a data source with a file input.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003ePOST\u003c/code\u003e method and requires the \u003ccode\u003econtent\u003c/code\u003e authorization scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and a successful response will be an empty JSON object.\u003c/p\u003e\n"],["\u003cp\u003eFrequent data updates should be done via the Products service instead of this method.\u003c/p\u003e\n"]]],["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"],null,[]]