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