Czy chcesz podzielić się opinią na temat interfejsu Google Ads API? Zarejestruj się, aby otrzymać zaproszenie do udziału w badaniach opinii użytkowników.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
W tym przewodniku znajdziesz instrukcje konfigurowania OAuth2 w celu uzyskiwania dostępu do interfejsów API za pomocą własnych danych logowania za pomocą kont usługi.
Wystarczy, że wykonasz te czynności tylko raz, chyba że cofniesz lub usuniesz swoje poświadczenia OAuth2.
Jeśli używasz pliku ads.properties, dodaj te informacje:
api.googleads.serviceAccountSecretsPath=PRIVATE_KEY_FILE_PATH# Only add this key if you are using impersonation.api.googleads.serviceAccountUser=USER_TO_IMPERSONATE
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-06-04 UTC."],[[["This guide explains how to set up OAuth2 for API access using service accounts with your own credentials."],["The setup process involves generating a service account ID and a JSON file, and then configuring your client library with the necessary credentials."],["This setup needs to be done only once and requires a Google Workspace domain with domain-wide delegation access granted to the service account."]]],[]]