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 przy użyciu własnych danych logowania i kont usług.
Te czynności wystarczy wykonać tylko raz, chyba że cofniesz lub usuniesz dane logowania OAuth2.
Dodawanie do konfiguracji klucza prywatnego JSON i adresu e-mail do personifikacji
W konfiguracji ustaw ścieżkę pliku JSON klucza prywatnego i adres e-mail użytkownika, którego tożsamość ma być używana.
Jeśli używasz pliku google-ads.yaml, ciągu YAML lub dict, dodaj te elementy:
[[["Ł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, a one-time process unless credentials are revoked."],["The setup requires a Google Workspace domain and a service account with domain-wide delegation access granted by a super administrator."],["You need to generate a service account ID and a JSON file, then add the private key JSON file path and impersonated email to your configuration."],["Configuration can be set using a `google-ads.yaml` file, YAML string, `dict`, or environment variables."],["The library prioritizes credentials for desktop or web app flows, so ensure these are not present if you want to use Service Account authentication."]]],[]]