As recomendações são geradas automaticamente pelo Google Ads e oferecem ideias para otimizar sua conta, como aumentar o orçamento de uma campanha limitada ou adicionar palavras-chave relevantes. Confira a lista completa de
tipos de recomendação na
documentação da API Google Ads.
Recuperar recomendações
Para recuperar recomendações, use o seletor AdsApp.recommendations(),
que funciona de maneira semelhante a outros seletores, pois permite que você especifique condições em
que tipos de recomendações retornar:
constselector=AdsApp.recommendations().withCondition('recommendation.type IN (CAMPAIGN_BUDGET)');constrecommendations=selector.get();
Aplicar recomendações
Depois de buscar as recomendações, aplique-as assim:
for(constrecommendationofrecommendations){// 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();}}
[null,null,["Última atualização 2025-03-04 UTC."],[[["Google Ads automatically generates recommendations to optimize your account, including suggestions like budget increases and keyword additions."],["You can retrieve specific recommendations using the `AdsApp.recommendations()` selector and filtering by recommendation type."],["Before applying a recommendation, ensure it aligns with your campaign goals and advertising policies, especially when adding new keywords."],["Applying recommendations is done using the `apply()` method after fetching and potentially filtering them."]]],[]]