Method: accounts.dataSources.fetch
आपके Merchant Center खाते के डेटा सोर्स से, डेटा को तुरंत फ़ेच करता है. भले ही, डेटा फ़ेच करने का शेड्यूल न किया गया हो. अगर आपको दिन में एक से ज़्यादा बार इस तरीके का इस्तेमाल करना है, तो आपको प्रॉडक्ट डेटा अपडेट करने के लिए, Products की सेवा का इस्तेमाल करना चाहिए. यह तरीका सिर्फ़ उन डेटा सोर्स पर काम करता है जिनमें फ़ाइल इनपुट सेट होता है.
एचटीटीपी अनुरोध
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 देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-01-23 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-01-23 (UTC) को अपडेट किया गया."],[[["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"]]