Content API for Shopping を使用するコードをテストするには、テスト専用の Merchant Center アカウントを別途作成することをおすすめします。これにより、アクティブなフィードやショッピング キャンペーンに影響を与えることなく、Content API for Shopping を使用するコードの手動テストと自動テストの両方を実行できます。
テスト環境のセットアップ
Merchant Center アカウントに関連付ける新しい Google アカウントを作成します。次の手順では、新しい Google アカウントにログインして使用します。
スタートガイドの手順に沿って、新しい Merchant Center アカウントを設定します。テスト アカウントのウェブサイト URL を検証する必要はありません。
新しい Merchant Center アカウントと認証情報があれば、Content API for Shopping でコードをテストする準備が整います。Content API を初めて使用する場合は、スタートガイドで Python クライアント ライブラリを使用してテスト環境を使用する方法を確認するか、サンプルとライブラリのページで、新しいテスト環境をテストできるコード例をご覧ください。
API は引き続き検証チェックを実施し、必須フィールドの欠落などの一般的なエラーに関するフィードバックを提供しますが、アップロードされた商品はすべて自動的に不承認となるため、データ品質チェックは実施されません。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-29 UTC。"],[],["The Merchant API beta, the new version of the Content API for Shopping, is introduced. To test this API, create a separate Merchant Center test account. This includes creating a new Google account, setting up a new Merchant Center account without website validation, and creating a new developer project to enable the Content API. Generate credentials, ideally using service accounts, for testing. Note that the test account will likely be suspended for invalid products, but this will not impact the API testing.\n"]]