תצורת ספריית לקוח Java
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הספרייה מחפשת קובץ תצורה ב-System.getProperty("user.home") + "/searchads360.properties".
הפורמט של קובץ התצורה הוא של קובץ Properties של Java, שמכיל צמדי מפתח/ערך. המפתחות הנתמכים משתנים בהתאם לתהליך האימות שנבחר.
מפתחות נתמכים לתהליכים של אפליקציות למחשב ולאינטרנט
אם אתם משתמשים בתהליך האפליקציה למחשב או לאינטרנט, המפתחות הנתמכים הם:
# Credential for accessing Google's OAuth servers.# Provided by console.cloud.google.com.
api.searchads360.clientId=INSERT_CLIENT_ID_HERE
# Credential for accessing Google's OAuth servers.# Provided by console.cloud.google.com.
api.searchads360.clientSecret=INSERT_CLIENT_SECRET_HERE
# Renewable OAuth credential associated with 1 or more Search Ads accounts.
api.searchads360.refreshToken=INSERT_REFRESH_TOKEN_HERE
# Required for manager accounts only: Specify the login customer ID used to# authenticate API calls. This will be the customer ID of the authenticated# manager account. You can also specify this later in code if your application# uses multiple manager account + OAuth pairs.## api.searchads360.loginCustomerId=INSERT_LOGIN_CUSTOMER_ID_HERE
שילוב של גישות להגדרה
SearchAds360Client וה-builder שלו תומכים בשילוב של אסטרטגיות הגדרה שונות. לדוגמה, אפשר להשתמש בקובץ מאפיינים כדי להגדיר את פרטי הכניסה של המכונה ואת המאפיינים האחרים באמצעות קטע הקוד הבא.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2026-04-22 (שעון UTC)."],[],["The library utilizes a configuration file located at `user.home/searchads360.properties`, formatted as key-value pairs. For desktop/web flows, required keys include `api.searchads360.clientId`, `api.searchads360.clientSecret`, and `api.searchads360.refreshToken`. Manager accounts also need `api.searchads360.loginCustomerId`. An OAuth refresh token can be generated via a provided script or the OAuth Playground. Configurations can be combined using the `SearchAds360Client` builder, which allows file-based configuration and runtime modifications.\n"]]