Konfigurowanie biblioteki klienta do obsługi protokołu OAuth w interfejsie Google Ads API
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Po uzyskaniu wymagań dotyczących konfiguracji możesz skonfigurować bibliotekę klienta do obsługi wywołań interfejsu Google Ads API. Każda biblioteka klienta jest konfigurowana inaczej, dlatego postępuj zgodnie z instrukcjami dotyczącymi konkretnego języka programowania.
Weryfikacja konfiguracji
Po skonfigurowaniu OAuth wywołaj interfejs Google Ads API, korzystając z jednego z przykładowych kodów w bibliotece klienta. Aby sprawdzić konfigurację, wybierz prosty przykład, np. GetCampaigns
.
Jeśli napotkasz problemy, zapoznaj się z przewodnikiem rozwiązywania problemów, w którym znajdziesz wskazówki dotyczące debugowania typowych problemów.
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-27 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-27 UTC."],[[["\u003cp\u003eThis page provides instructions for setting up a client library to interact with the Google Ads API after completing configuration requirements.\u003c/p\u003e\n"],["\u003cp\u003eClient library setup varies depending on the programming language, with links provided for Java, .NET, PHP, Python, Ruby, and Perl.\u003c/p\u003e\n"],["\u003cp\u003eUsers should verify their setup by making a simple API call, such as GetCampaigns, and refer to the troubleshooting guide if any issues arise.\u003c/p\u003e\n"]]],[],null,["# Configure a Client Library for OAuth in the Google Ads API\n\nAfter you've obtained the [configuration\nrequirements](/google-ads/api/docs/get-started/introduction), you're ready to set up a\nclient library to handle Google Ads API calls. Since each client library is configured\ndifferently, follow the linked instructions for your particular programming\nlanguage. \n\n### Java\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/java/oauth-web)\n\n### .NET\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/dotnet/oauth-web)\n\n### PHP\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/php/oauth-web)\n\n### Python\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/python/oauth-web)\n\n### Ruby\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/ruby/oauth-web)\n\n### Perl\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/perl/oauth-web)\n\nVerify your configuration\n-------------------------\n\nWhen you've completed setting up OAuth, make a call to the Google Ads API using one of\nthe provided code examples in the client library. Choose a simple example, like\n[`GetCampaigns`](/google-ads/api/docs/get-started/make-first-call), to verify your setup.\n\nIf you encounter issues, consult the [troubleshooting\nguide](/google-ads/api/docs/best-practices/troubleshooting) for tips on debugging common\nissues."]]