W sekcji Dane logowania wybierz Google OAuth 2.0 i klucz API.
Kliknij Wykonaj.
Jeśli pojawi się taka prośba, zaloguj się na konto Google powiązane z Twoim kontem Merchant Center.
Jeśli Twoje konto Merchant Center jest prawidłowo skonfigurowane, żądanie zostanie zrealizowane i zwróci kod odpowiedzi HTTP 200. Jeśli właśnie utworzysz nowe konto, metoda accounts.products.list nie zwróci żadnych produktów.
Następnie spróbuj użyć biblioteki klienta, aby poprosić o dostęp do innych kont Merchant Center. Biblioteki klienta obsługują autoryzację użytkownika, która przyznaje aplikacji uprawnienia dostępu do danych na koncie Merchant Center i zarządzania nimi.
Możesz też użyć konta usługi, aby zezwolić na dostęp do API na swoim koncie. Konto usługi to szczególny rodzaj konta, które należy do aplikacji, a nie do indywidualnego użytkownika. Więcej informacji znajdziesz w artykule Omówienie kont usługi.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-25 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"]]