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