建議

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();
  }
}