Content API, Google Merchant Center ile programatik olarak etkileşim kurmanıza olanak tanır. Bu nedenle, Content API'yi kullanmanın ilk adımı Merchant Center hesabınızı oluşturmak ve test etmektir.
Merchant Center hesabınızı oluşturup test etmek için aşağıdaki adımları tamamlayın:
Merchant Center'da, hesabınızın benzersiz tanımlayıcısını bulun. Bu tanımlayıcı, sayfanın sağ üst köşesinde, hesap e-posta adresinin üzerinde yer alan sayıdır.
Kimlik bilgileri bölümünde Google OAuth 2.0 ve API anahtarı'nı seçin.
Yürüt'ü tıklayın.
İstenirse Merchant Center hesabınızla ilişkili Google Hesabı ile oturum açın.
Merchant Center hesabınız doğru şekilde yapılandırılmışsa istek başarılı olur ve 200 HTTP yanıt kodu döndürülür. Ancak yeni bir hesap oluşturduğunuz için products.list yöntemi hiçbir ürün döndürmeyebilir. Bu kılavuzun ilerleyen bölümlerinde bir ürün ekleyecek ve ardından işlemin başarılı olduğunu onaylamak için products.list işlevini tekrar çağıracaksınız.
[null,null,["Son güncelleme tarihi: 2024-11-20 UTC."],[[["The Merchant API beta is now available, offering a new and improved way to interact with Google Merchant Center."],["This API is the future of the Content API for Shopping, providing enhanced integration capabilities."],["To utilize the Merchant API, you need a Merchant Center account; detailed setup instructions are provided if you don't already have one."],["You can test your Merchant Center account and API integration using the `products.list` request with your unique Merchant Center ID."]]],["The Merchant API beta, the new version of the Content API for Shopping, is introduced. To use it, set up a Merchant Center account: sign up, verify and claim your website URL (unless using a third-party CSS), and set US tax settings. Locate your account's unique identifier. Test the setup by executing a `products.list` request via the API Explorer, entering your account ID, and authenticating with OAuth 2.0 and API key credentials. A successful setup yields a 200 HTTP response.\n"]]