קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הגדרת מסך ההסכמה של OAuth
כשמשתמשים ב-OAuth 2.0 לאימות, Google מציגה למשתמש מסך הסכמה שכולל סיכום של הפרויקט, המדיניות שלו והיקפי ההרשאות המבוקשים לגישה. הגדרת מסך ההסכמה ל-OAuth של האפליקציה קובעת מה מוצג למשתמשים ולבודקי האפליקציה, ורושמת את האפליקציה כדי שתוכלו לפרסם אותה בהמשך.
פועלים לפי ההוראות כדי להגדיר מסך הסכמה ל-OAuth עבור האפליקציה ולהוסיף את https://www.googleapis.com/auth/adwords כהיקף OAuth.
יצירת מזהה לקוח וסוד לקוח
אפשר לדלג על השלב הזה אם אתם משתמשים בפרויקט קיים ב-Google API Console שכבר יש לו Client-ID וסוד לקוח שנוצרו. אחרת, יוצרים מזהה לקוח וסוד לקוח לפי ההוראות.
אפשר לבחור באפשרות Desktop app או באפשרות Web application בתור סוג האפליקציה. אחרי שיוצרים את לקוח OAuth 2.0, מורידים את קובץ ה-JSON של הלקוח. לשם כך, קודם לוחצים על הסמל הורדת לקוח OAuth ואז על הלחצן הורדת JSON במסך הבא.
[null,null,["עדכון אחרון: 2025-09-05 (שעון UTC)."],[],[],null,["# Configure the Google API Console project\n\n**Note:** The current step of this tutorial depends on the [type of application](/google-ads/api/docs/get-started/choose-application-type) you are building. We strongly recommend using a service account to make API calls. However, the user authentication option is also provided as an alternative. The rest of this tutorial will be customized based on your choice. \nService accounts User authentication\n\nCreate a service account and key\n--------------------------------\n\n| **Note:** If you are already using another Google API and have created an OAuth 2.0 service account and key, you can skip this step and reuse the existing credentials.\n\nStart by [creating a service account and credentials](/google-ads/api/docs/get-started/choose-application-type).\nNext, [create credentials for the service account](/workspace/guides/create-credentials#service-account).\nDownload the service account key in JSON format and note the service account ID\nand email."]]