How to Enable Frequency cap for a video campaign

11 views
Skip to first unread message

Ashish Chaturvedi (Ashu)

unread,
Jul 5, 2023, 12:26:05 AM7/5/23
to Google Ads Scripts Forum
Hello Mate, 

I want to set the below setting via the Google Ads Script 


Screenshot 2023-07-03 at 4.27.10 PM.png

For the Above setting, after the campaign creation, I am using the below code but it is not working 

try {
            var getFrequencyCaps = campaignSelected.newFrequencyCapBuilder().withEventType('VIDEO_VIEW').withTimeUnit('DAY').withLimit('1').build();
             console.log(getFrequencyCaps);
             console.log(getFrequencyCaps.getTimeUnit());  
          } catch (getFrequencyCaps) {
            console.log('getFrequencyCaps ' + getFrequencyCaps.message);
           
          }
But it is not working, 

Any help will be appreciated

Reply all
Reply to author
Forward
0 new messages