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