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