frequency cap for a video campaign

39 views
Skip to first unread message

Krishnadas D

unread,
Apr 27, 2021, 3:27:29 AM4/27/21
to Google Ads Scripts Forum
Hi , i am iterating through campaign by this code  
var campaignIterator = AdsApp.videoCampaigns()
    .withCondition("CampaignName CONTAINS '" + campaignName + "'")
    .get();
    while (campaignIterator.hasNext()) {
      var videoCampaign = campaignIterator.next();
   }

i want to set frequency capping for videoCampaign .
but for my videoCampaign variable i was not able to see the option in this documentation .

how can i set frequency capping for video campaign ?
Settings-Test-account-Automation-Google-Ads.png

Google Ads Scripts Forum Advisor

unread,
Apr 27, 2021, 6:03:27 AM4/27/21
to adwords...@googlegroups.com
Hi Krishnadas,

Thanks for reaching out. I am Harry from the Google Ads Scripts Team.

You may retrieve current frequency caps set for video campaigns by using the getFrequencyCaps method. This will return the FrequencyCaps entity and offers the newFrequencyCapBuilder and removeFrequencyCapFor methods to manage your video campaigns' frequency caps.

Let me know if you have further questions on this.

Thanks,
Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
 


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