Poiché l'API Content ti consente di interagire in modo programmatico con Google Merchant Center, il primo passaggio per utilizzare l'API Content è configurare e testare il tuo account Merchant Center.
Per creare e testare il tuo account Merchant Center:
In Merchant Center, individua l'identificatore univoco del tuo account, ovvero il numero nell'angolo in alto a destra della pagina, sopra l'indirizzo email dell'account.
Nella sezione Credenziali, seleziona Google OAuth 2.0 e chiave API.
Fai clic su Esegui.
Se richiesto, accedi con l'Account Google associato al tuo account Merchant Center.
Se il tuo account Merchant Center è configurato correttamente, la richiesta riesce
e restituisce un codice di risposta HTTP 200. Tuttavia, poiché hai appena creato un nuovo account, il metodo products.list potrebbe non restituire alcun prodotto. Più avanti in questa
guida, aggiungerai un prodotto e poi chiamerai di nuovo products.list per confermare
che l'operazione è riuscita.
[null,null,["Ultimo aggiornamento 2024-11-20 UTC."],[[["The Merchant API beta is now available, offering a new and improved way to interact with Google Merchant Center."],["This API is the future of the Content API for Shopping, providing enhanced integration capabilities."],["To utilize the Merchant API, you need a Merchant Center account; detailed setup instructions are provided if you don't already have one."],["You can test your Merchant Center account and API integration using the `products.list` request with your unique Merchant Center ID."]]],["The Merchant API beta, the new version of the Content API for Shopping, is introduced. To use it, set up a Merchant Center account: sign up, verify and claim your website URL (unless using a third-party CSS), and set US tax settings. Locate your account's unique identifier. Test the setup by executing a `products.list` request via the API Explorer, entering your account ID, and authenticating with OAuth 2.0 and API key credentials. A successful setup yields a 200 HTTP response.\n"]]