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 は引き続き検証チェックを実行し、必須項目がないなどの一般的なエラーに関するフィードバックを返しますが、アップロードされた商品は自動的に不承認となるため、データ品質チェックは実行されません。
[null,null,["最終更新日 2024-11-08 UTC。"],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of the platform."],["Developers are encouraged to create a separate Merchant Center account solely for testing the API to avoid impacting live data."],["Setting up a test environment involves creating a new Google account, Merchant Center account, and developer project with the Content API enabled."],["While data quality checks aren't performed on test accounts, the API still conducts validation checks to provide feedback on errors."],["Testing accounts will eventually be suspended due to invalid product information, which is expected and won't affect Content API testing."]]],["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"]]