Sprawdź połączenie swojego konta z interfejsem Merchant API
Jeśli masz już konto sprzedawcy, możesz użyć przeglądarki interfejsu API w dokumentacji referencyjnej, aby sprawdzić, czy Twoje konto jest gotowe do użycia z interfejsem Merchant API.
- Znajdź nazwę zasobu na swoim koncie, łącząc
accounts/
z Twoim merchantId
. merchantId
znajdziesz u góry
Google Merchant Center.
- W narzędziu API Explorer dla
accounts.products.list
.
, wykonaj te czynności:
- W polu
parent
wpisz nazwę zasobu na swoim koncie.
- W sekcji Dane logowania wybierz Google OAuth 2.0 i API
.
- Kliknij Execute (Wykonaj).
- Jeśli pojawi się taka prośba, zaloguj się na konto Google powiązane z Twoim kontem Google
konto Merchant Center.
Jeśli konto sprzedawcy jest prawidłowo skonfigurowane, żądanie zostanie zrealizowane i zostanie zwrócone
kod odpowiedzi HTTP 200
. Jeśli nowe konto zostało właśnie utworzone,
Metoda accounts.products.list
nie zwraca żadnych produktów.
Następnie używając biblioteki klienta, poproś o dostęp do innych kont sprzedawców lub używając konta usługi, autoryzuj dostęp do interfejsu API na swoim koncie.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-10-23 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]