Hello Mate,
I want to set the below setting via the Google Ads Script

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