アカウントと Merchant API との接続を確認する
既存の販売アカウントをお持ちの場合は、
リファレンス ドキュメントの API Explorer
アカウントが Merchant API で使用できることを確認してください。
accounts/
と merchantId
を連結して、アカウントのリソース名を確認します。merchantId
は上部に表示されています。
Google Merchant Center。
- API Explorer の
accounts.products.list
メソッドで、次の操作を行います。
parent
フィールドにアカウントのリソース名を入力します。
- [Credentials] で [Google OAuth 2.0] と [API] を選択します。
キーです。
- [実行] をクリックします。
- プロンプトが表示されたら、Google Merchant Center アカウントに関連付けられている Google アカウントでログインします。
販売アカウントが正しく設定されていれば、リクエストは成功し、結果が返されます。
HTTP レスポンス コード 200
。新しいアカウントを作成したばかりの場合、accounts.products.list
メソッドは商品を返しません。
次に
クライアント ライブラリを使用して他の販売アカウントへのアクセスをリクエストする
または
自分のアカウントへの API アクセスを、サービス アカウントを使用して承認する。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-23 UTC。
[null,null,["最終更新日 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"]]