Content API for Shopping'i kullanan kodu test etmek için yalnızca test amaçlı ayrı bir Merchant Center hesabı oluşturmanızı öneririz. Bu sayede, etkin feed'leri veya Alışveriş kampanyalarını etkilemeden Content API for Shopping kullanan kod için hem manuel hem de otomatik testler çalıştırabilirsiniz.
Test ortamınızı ayarlama
Merchant Center hesabıyla ilişkilendirilecek yeni bir Google Hesabı oluşturun. Aşağıdaki adımlar için yeni Google Hesabı'nda oturum açın ve bu hesabı kullanın.
Yeni bir Merchant Center hesabı oluşturmak için Başlangıç bölümündeki adımları uygulayın. Test hesabı için web sitesi URL'sini doğrulamanız gerekmez.
Test etmeyi planladığınız kod için uygun kimlik bilgilerini oluşturun. Test kodu için izin, erişim jetonları ve yenileme jetonları istemek zorunda kalmamak amacıyla test çerçeveniz için Hizmet Hesapları kılavuzunda açıklanan hizmet hesabı akışını kullanmanızı öneririz.
Yeni Merchant Center hesabınız ve kimlik bilgilerinizle, kodunuzu Alışveriş için Content API ile test etmeye hazırsınız demektir. Content API'yi kullanmaya yeni başladıysanız test ortamınızı Python istemci kitaplığıyla nasıl kullanacağınızı öğrenmek için Başlangıç Kılavuzu'nu okuyun veya yeni test ortamınızı test edebileceğiniz kod örneklerini bulabileceğiniz Örnekler ve Kitaplıklar sayfamızı ziyaret edin.
API yine de doğrulama kontrolleri gerçekleştirmeye devam eder. Bu kontroller, zorunlu alanların eksik olması gibi yaygın hatalar için geri bildirim sağlar. Ancak yüklenen ürünler otomatik olarak reddedileceği için veri kalitesi kontrolleri yapılmaz.
[null,null,["Son güncelleme tarihi: 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"]]