videoAgeBuilder Multiple Age Ranges

11 views
Skip to first unread message

Guillaume Aubert

unread,
Mar 9, 2020, 1:19:35 PM3/9/20
to AdWords API and Google Ads API Forum
Hello everyone,

I have a script that is creating Video Ad Groups, and I'd like to define my Age targetting after creating the ad group.
Issue is, I don't manage to add multiple age groups at once.

Here is my piece of code:

 var videoAgeBuilder = videoAdGroup.videoTargeting().newAgeBuilder();
             var videoAgeOperation = videoAgeBuilder
               .withAgeRange('AGE_RANGE_18_24')
               .withAgeRange('AGE_RANGE_25_34')    // required
               .withAgeRange('AGE_RANGE_UNDETERMINED')     // required
               .build();    

Tried multiple ways (using "+" or "&") and it never seems to work.

Thanks in advance for your help. 

Google Ads API Forum Advisor Prod

unread,
Mar 9, 2020, 4:40:07 PM3/9/20
to guia...@gmail.com, adwor...@googlegroups.com
Hi Guillaume,

This issue is related to Google Ads Scripts, not API. You will need to reach out to their team via their forum.

Regards,
Anthony
Google Ads API Team 

ref:_00D1U1174p._5001UXUZui:ref
Reply all
Reply to author
Forward
0 new messages