Verifica la connessione del tuo account all'API Merchant
Se hai già un account commerciante, puoi utilizzare lo esploratore API nella documentazione di riferimento per verificare che il tuo account sia pronto per l'utilizzo con l'API Merchant.
- Trova il nome della risorsa del tuo account concatenando
accounts/
e
merchantId
. Puoi trovare il tuo merchantId
nella parte superiore di
Google Merchant Center.
- In Explorer API per il metodo
accounts.products.list
, segui questi passaggi:
- Inserisci il nome della risorsa del tuo account nel campo
parent
.
- 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 Google Merchant Center.
Se il tuo account commerciante è configurato correttamente, la richiesta va a buon fine e restituisce un codice di risposta HTTP 200
. Se hai appena creato un nuovo account, il metodoaccounts.products.list
non restituisce alcun prodotto.
Poi,
Utilizzare una libreria client per richiedere l'accesso ad altri account commerciante,
o
usa un account di servizio per autorizzare l'accesso API al tuo account.
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 2024-10-23 UTC.
[null,null,["Ultimo aggiornamento 2024-10-23 UTC."],[[["Existing merchant account holders can use the API explorer to verify their account's compatibility with the Merchant API."],["Account verification involves locating your `merchantId`, constructing the resource name, and executing the `accounts.products.list` method within the API Explorer using your credentials."],["Successful verification is indicated by an HTTP response code `200`, although new accounts may not return any product data."],["After verification, users can proceed to utilize client libraries for accessing other merchant accounts or employ service accounts for authorizing API access to their own account."]]],["To verify a merchant account for API use, locate your `merchantId` in Google Merchant Center and construct the account's resource name. In the API Explorer, use the `accounts.products.list` method, input the resource name in the `parent` field, and select Google OAuth 2.0 and API key credentials. Executing the request should return an HTTP 200 code, confirming successful setup. For new accounts, the product list will be empty. Further access can be configured via client libraries or service accounts.\n"]]