Ponieważ interfejs Content API umożliwia interakcję z Google Merchant Center na poziomie programowym, pierwszym krokiem do korzystania z Content API jest skonfigurowanie i przetestowanie konta Merchant Center.
Aby utworzyć i przetestować konto Merchant Center, wykonaj te czynności:
W sekcji Dane logowania wybierz Google OAuth 2.0 i Klucz API.
Kliknij Wykonaj.
Jeśli pojawi się taka prośba, zaloguj się na konto Google powiązane z kontem Merchant Center.
Jeśli Twoje konto Merchant Center jest prawidłowo skonfigurowane, żądanie zostanie zrealizowane i zwróci kod odpowiedzi HTTP 200. Ponieważ masz nowe konto, metoda products.list może nie zwrócić żadnych produktów. W dalszej części tego przewodnika dodasz produkt, a następnie ponownie wywołasz funkcję products.list, aby potwierdzić, że operacja się powiodła.
[null,null,["Ostatnia aktualizacja: 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"]]