rocket
Content API for Shopping の正式な後継である
Merchant API をご紹介します。
update
Merchant API の新機能、バグの修正、リリース更新に関する
最新情報を入手します。
Content API アクセスを設定する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
概要
特定の Merchant Center アカウントで Content API for Shopping を使用するには、API Console プロジェクトを設定する必要があります。API Console プロジェクトは、Content API ソリューションの API アクセスと認証を管理するのに役立ちます。
手動で行う場合の手順
Content API for Shopping を使用する際の認証方法は、アクセスする販売アカウントに応じて 2 つあります。
- ご自身の Merchant Center アカウントにアクセス
- アカウント(マルチクライアント アカウントを使用している場合はサブアカウントも含む)にアクセスするだけでよい場合は、サービス アカウントを使用することをおすすめします。Merchant Center からサービス アカウントを作成する手順については、サービス アカウント ガイドをご覧ください。
- 他の販売者のアカウントにアクセス
- 他の Merchant Center アカウントをサードパーティとして管理する予定がある場合は、OAuth ガイドをご覧ください。
適切な認証トークンを取得したら、サービス アカウントと OAuth2 クライアント認証の両方に対応しているショッピング サンプルを使用して、認証の設定をテストできます。以下のサンプルでは、Content API クライアント ライブラリを使用しています。サポートされている言語を使用している場合は、このライブラリを独自のアプリケーションで使用することをおすすめします。それ以外の場合は、REST API を直接使用できます。
自動ステップ
このプロセスでは使用できません。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[[["\u003cp\u003eTo use the Content API for Shopping, you need to set up an API Console project for API access and authentication.\u003c/p\u003e\n"],["\u003cp\u003eYou can authenticate using service accounts for accessing your own Merchant Center account or OAuth for managing other merchants' accounts.\u003c/p\u003e\n"],["\u003cp\u003eFor testing and development, Google provides Shopping samples and client libraries for easier integration with the Content API.\u003c/p\u003e\n"],["\u003cp\u003eIf your programming language isn't supported by the client libraries, you can directly use the REST API.\u003c/p\u003e\n"]]],[],null,["# Set up Content API access\n\nSummary\n-------\n\nTo use the Content API for Shopping with a given Merchant Center account, you\nmust set up an [API Console](https://console.developers.google.com) project. API Console projects help you manage API\naccess and authentication for your Content API solution.\n\nManual steps\n------------\n\nThere are two ways you can authenticate to use the Content API for Shopping\ndepending on whose merchant accounts you need to access:\n\nAccess your own Merchant Center account\n: If you only need to access your account (and sub-accounts, if using a\n multi-client account), then we suggest using service accounts. See the\n [Service accounts](/shopping-content/guides/how-tos/service-accounts) guide for the steps to create a service account from the\n [Merchant Center](https://merchants.google.com).\n\nAccess other merchants' accounts\n: If you plan to manage other Merchant Center accounts as a third-party, see the\n [OAuth](/shopping-content/guides/how-tos/authorizing) guide.\n\nOnce you have the appropriate authentication tokens, you can test your\nauthentication setup with the [Shopping samples](https://github.com/googleads/googleads-shopping-samples), which support both service\naccount and OAuth2 client authentication. These samples use the\n[Content API client libraries](/shopping-content/guides/libraries), which we recommend using in your own\napplications if you're using a supported language. Otherwise, you can use the\n[REST API](/shopping-content/reference/rest/v2.1) directly.\n\nAutomatic steps\n---------------\n\nNot available for this process."]]