rocket
Meet
Merchant API
– oficjalny następca interfejsu Content API for Shopping.
update
Najnowsze informacje
o nowych funkcjach, poprawkach błędów i aktualizacjach interfejsu Merchant API.
Konfigurowanie dostępu do interfejsu Content API
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Podsumowanie
Aby korzystać z interfejsu Content API for Shopping na danym koncie Merchant Center, musisz skonfigurować projekt w Konsoli interfejsów API. Projekty w Konsoli interfejsów API ułatwiają zarządzanie dostępem do interfejsu API i uwierzytelnianiem w przypadku rozwiązania Content API.
Kroki ręczne
Istnieją 2 sposoby uwierzytelniania w interfejsie Content API for Shopping, w zależności od tego, do których kont sprzedawców musisz mieć dostęp:
- Uzyskaj dostęp do własnego konta Merchant Center
- Jeśli potrzebujesz tylko dostępu do swojego konta (i subkont, jeśli używasz multikonta klientów), zalecamy korzystanie z kont usługi. Instrukcje tworzenia konta usługi w Merchant Center znajdziesz w przewodniku dotyczącym kont usługi.
- Dostęp do kont innych sprzedawców
- Jeśli planujesz zarządzać innymi kontami Merchant Center jako firma zewnętrzna, zapoznaj się z przewodnikiem dotyczącym OAuth.
Po uzyskaniu odpowiednich tokenów uwierzytelniania możesz przetestować konfigurację uwierzytelniania za pomocą przykładów zakupów, które obsługują uwierzytelnianie zarówno konta usługi, jak i klienta OAuth2. W tych przykładach wykorzystywane są biblioteki klienta Content API, których zalecamy używanie we własnych aplikacjach, jeśli używasz obsługiwanego języka. W przeciwnym razie możesz użyć bezpośrednio interfejsu API REST.
Automatyczne kroki
Niedostępne dla tego procesu.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-31 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-31 UTC."],[[["\u003cp\u003eTo use the Content API for Shopping, you need to set up an API Console project for API access and authentication.\u003c/p\u003e\n"],["\u003cp\u003eYou can authenticate using service accounts for accessing your own Merchant Center account or OAuth for managing other merchants' accounts.\u003c/p\u003e\n"],["\u003cp\u003eFor testing and development, Google provides Shopping samples and client libraries for easier integration with the Content API.\u003c/p\u003e\n"],["\u003cp\u003eIf your programming language isn't supported by the client libraries, you can directly use the REST API.\u003c/p\u003e\n"]]],[],null,["# Set up Content API access\n\nSummary\n-------\n\nTo use the Content API for Shopping with a given Merchant Center account, you\nmust set up an [API Console](https://console.developers.google.com) project. API Console projects help you manage API\naccess and authentication for your Content API solution.\n\nManual steps\n------------\n\nThere are two ways you can authenticate to use the Content API for Shopping\ndepending on whose merchant accounts you need to access:\n\nAccess your own Merchant Center account\n: If you only need to access your account (and sub-accounts, if using a\n multi-client account), then we suggest using service accounts. See the\n [Service accounts](/shopping-content/guides/how-tos/service-accounts) guide for the steps to create a service account from the\n [Merchant Center](https://merchants.google.com).\n\nAccess other merchants' accounts\n: If you plan to manage other Merchant Center accounts as a third-party, see the\n [OAuth](/shopping-content/guides/how-tos/authorizing) guide.\n\nOnce you have the appropriate authentication tokens, you can test your\nauthentication setup with the [Shopping samples](https://github.com/googleads/googleads-shopping-samples), which support both service\naccount and OAuth2 client authentication. These samples use the\n[Content API client libraries](/shopping-content/guides/libraries), which we recommend using in your own\napplications if you're using a supported language. Otherwise, you can use the\n[REST API](/shopping-content/reference/rest/v2.1) directly.\n\nAutomatic steps\n---------------\n\nNot available for this process."]]