המלצות

ההמלצות נוצרות באופן אוטומטי על ידי 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();
  }
}