Verbindung Ihres Kontos zur Merchant API überprüfen
Wenn Sie bereits ein Händlerkonto haben, können Sie das
Weitere Informationen zum API Explorer finden Sie in der Referenzdokumentation.
Überprüfen Sie, ob Ihr Konto für die Verwendung mit der Merchant API bereit ist.
- Suchen Sie den Ressourcennamen Ihres Kontos, indem Sie
accounts/
und Ihren
merchantId
. Ihre merchantId
finden Sie oben auf
Google Merchant Center
- Führen Sie im API Explorer für die Methode
accounts.products.list
folgende Schritte aus:
- Geben Sie den Ressourcennamen Ihres Kontos in das Feld
parent
ein.
- Wählen Sie im Bereich Anmeldedaten die Option Google OAuth 2.0 und API aus.
Schlüssel.
- Klicken Sie auf Ausführen.
- Melden Sie sich mit dem Google-Konto an, das mit Ihrem Google Merchant Center-Konto verknüpft ist, wenn Sie dazu aufgefordert werden.
Wenn Ihr Händlerkonto richtig eingerichtet ist, ist die Anfrage erfolgreich und es wird der HTTP-Antwortcode 200
zurückgegeben. Wenn du gerade ein neues Konto erstellt hast, werden mit der Methode accounts.products.list
keine Produkte zurückgegeben.
Als Nächstes
eine Clientbibliothek verwenden, um Zugriff auf andere Händlerkonten anzufordern,
oder
Nutzen Sie ein Dienstkonto, um den API-Zugriff auf Ihr eigenes Konto zu autorisieren.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-10-23 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]