建议

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