Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Z tego przewodnika dowiesz się, jak skonfigurować OAuth2 na potrzeby dostępu do interfejsu API za pomocą własnych danych logowania przy użyciu kont usług.
Te czynności wystarczy wykonać tylko raz, chyba że cofniesz lub usuniesz dane logowania OAuth2.
W konfiguracji ustaw ścieżkę pliku JSON klucza prywatnego i identyfikator konta delegowanego. Jeśli używasz pliku googleads.properties, dodaj te informacje:
[[["Ł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-07-13 UTC."],[[["This guide explains how to set up OAuth2 for API access using service accounts, requiring a Google Workspace domain and domain-wide delegation access."],["You need to generate a service account ID and JSON file before configuring the client library for service account authentication."],["The client library setup involves providing the private key JSON file path and delegate account ID in your configuration file or environment variables."],["Ensure no OAuth2 desktop or web app flow credentials are present in your configuration to prioritize Service Account authentication."]]],[]]