המלצות

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