有了新的 Merchant Center 帳戶和憑證,您就可以使用 Content API for Shopping 測試程式碼。如果您剛開始使用 Content API,請參閱入門指南,瞭解如何使用 Python 用戶端程式庫的測試環境,或造訪範例和程式庫頁面,查看可用於測試新測試環境的程式碼範例。
API 仍會執行驗證檢查,提供常見錯誤的意見回饋,例如缺少必要欄位,但不會執行資料品質檢查,因為任何上傳的產品都會自動遭到拒絕。
[null,null,["上次更新時間:2024-11-08 (世界標準時間)。"],[[["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"]]