במדריך הזה נסביר איך להגדיר את OAuth2 לגישה ל-API באמצעות פרטי הכניסה שלכם בחשבונות שירות.
צריך לבצע את השלבים האלה רק פעם אחת, אלא אם מבטלים או מוחקים את פרוטוקול OAuth2
פרטי הכניסה.
מגדירים את הנתיב לקובץ ה-JSON של המפתח הפרטי ואת כתובת האימייל להתחזות בהגדרות.
אם משתמשים בקובץ google-ads.yaml, במחרוזת YAML או ב-dict, יש להוסיף את
הבאים:
[null,null,["עדכון אחרון: 2024-11-24 (שעון 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."]]],[]]