ההמלצות נוצרות באופן אוטומטי על ידי Google Ads ומספקות רעיונות לדרכים שבהן אפשר לבצע אופטימיזציה של החשבון, למשל על ידי הגדלת תקציב הקמפיין לקמפיין מוגבל או על ידי הוספת מילות מפתח רלוונטיות. הרשימה המלאה של סוגי ההמלצות מופיעה במאמרי העזרה של Google Ads API.
אחזור המלצות
כדי לאחזר המלצות, משתמשים בבורר AdsApp.recommendations(), שפועל באופן דומה לבוררים אחרים ומאפשר לציין תנאים לגבי סוגי ההמלצות שיוחזרו:
const selector = AdsApp.recommendations()
.withCondition('recommendation.type IN (CAMPAIGN_BUDGET)');
const recommendations = selector.get();
יישום ההמלצות
אחרי שאחזרתם את ההמלצות, אתם יכולים ליישם אותן כך:
for (const recommendation of recommendations) {
// Perform whatever check here that works for your use case.
// You can also potentially skip this step if you've sufficiently narrowed
// down what recommendations you're selecting initially with customized
// withCondition clauses in the previous step.
if (shouldApply(recommendation)) {
recommendation.apply();
}
}