Method: accounts.dataSources.fetch
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Esegue il recupero dei dati immediatamente (anche al di fuori della pianificazione del recupero) in un'origine dati del tuo account Merchant Center. Se devi chiamare questo metodo più di una volta al giorno, ti consigliamo di utilizzare il servizio Prodotti per aggiornare i dati di prodotto. Questo metodo funziona solo con le origini dati con un set di input file.
Richiesta HTTP
POST https://merchantapi.googleapis.com/datasources/v1beta/{name=accounts/*/dataSources/*}:fetch
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
name |
string
Obbligatorio. Il nome della risorsa dell'origine dati da recuperare. Formato: accounts/{account}/dataSources/{datasource}
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta è un oggetto JSON vuoto.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/content
Per ulteriori informazioni, consulta la sezione OAuth 2.0 Overview.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-01-23 UTC.
[null,null,["Ultimo aggiornamento 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,["# Method: accounts.dataSources.fetch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nPerforms the data fetch immediately (even outside fetch schedule) on a data source from your Merchant Center Account. If you need to call this method more than once per day, you should use the Products service to update your product data instead. This method only works on data sources with a file input set.\n\n### HTTP request\n\n`POST https://merchantapi.googleapis.com/datasources/v1beta/{name=accounts/*/dataSources/*}:fetch`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the data source resource to fetch. Format: `accounts/{account}/dataSources/{datasource}` |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]