בחירת סוג האפליקציה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מכיוון שחשבונות Google Ads מכילים נתוני משתמשים, האפליקציה שלכם צריכה לקבל הרשאה מהמשתמש כדי לגשת לנתונים האלה. יש שתי גישות כלליות, בהתאם לאופן שבו קיבלתם את ההרשאה הזו.
בחירת סוג האפליקציה
מכיוון שחשבונות Google Ads מכילים נתוני משתמשים, האפליקציה צריכה לקבל הרשאה מהמשתמש כדי לגשת לנתונים האלה. יש שתי גישות כלליות, בהתאם לאופן שבו קיבלתם את ההרשאה הזו.
|
חשבון שירות |
אימות משתמש |
סיכום |
מגדירים ידנית את חשבון Google Ads כדי לתת לחשבון שירות גישה לחשבון הזה. לאחר מכן, האפליקציה יכולה להשתמש בפרטי הכניסה של חשבון השירות כדי לבצע קריאות ל-API של חשבון Google Ads ללא אינטראקציה עם המשתמש. הקריאות ל-API פועלות כל עוד לחשבון השירות יש גישה לחשבון Google Ads. |
מקבלים הרשאת OAuth 2.0 חד-פעמית ממשתמש כדי לאפשר לאפליקציה לנהל את חשבון Google Ads שלו. לאחר מכן, האפליקציה יכולה להשתמש באסימון הרענון של OAuth 2.0 (שהונפק כחלק מתהליך ההרשאה של OAuth 2.0) כדי לבצע קריאות ל-API של חשבון Google Ads. הקריאות ל-API פועלות כל עוד המשתמש לא מבטל את ההרשאה, או עד שההרשאה פגה בגלל חוסר פעילות או סיבות אחרות. |
קלות השימוש |
נדרשים אישורים והגדרות מינימליים כי אין הרשאת משתמש באפליקציה. |
נדרשות הגדרות נרחבות ואישורים כי אימות המשתמשים הוא חלק מהאפליקציה. |
המלצה |
מומלץ מאוד כגישה המועדפת |
גישה מדור קודם. אפשר להשתמש באפשרות הזו כפתרון חלופי אם אי אפשר לתת לחשבון שירות את ההרשאות הנדרשות לחשבון Google Ads. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון UTC)."],[],[],null,["# Choose your application type\n\nSince Google Ads accounts contain user data, your application must obtain\nauthorization from the user to access this data. There are two broad approaches\nbased on how you obtain this authorization.\n\nChoose your app type\n--------------------\n\nSince Google Ads accounts contain user data, your app needs to obtain\nauthorization from the user to access this data. There are two broad approaches\nbased on how you obtain this authorization.\n\n| | **Service Account** | **User Authentication** |\n| Summary | Manually configure your Google Ads account to give a service account access to that account. Afterwards, your app can use the service account credentials to make API calls to the Google Ads account without any user interaction. The API calls work as long as the service account has access to the Google Ads account. | Obtain a one-time OAuth 2.0 authorization from a user to allow your app to manage their Google Ads account. Afterwards, your app can use the OAuth 2.0 refresh token (issued as part of the OAuth 2.0 authorization process) to make API calls to the Google Ads account. The API calls work as long as the user doesn't revoke the authorization, or until the authorization expires due to inactivity or other reasons. |\n| Ease of use | Minimal configuration and approvals required due to lack of user authorization in the app. | Extensive configuration and approvals required due to user authentication being part of the app. |\n| Recommendation | **Strongly recommended** as the preferred approach | Legacy approach. Use as a fallback option when you cannot give a service account the required permissions to your Google Ads account. |\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]