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