המלצות

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