Hello everybody,
I'm trying to run 2 scripts: one that enable a campaign when it rains and another script that pauses it when it's sunny. The "sunny" script works fine, but for the rain one I keep on having this error "Cannot retrieve the next object: iterator has reached the end. (line 73)".
I'm using the Adwords weather script
if (nyWeather.weather.status.summary === 'Rain') {
var campaign = AdWordsApp.campaigns()
.withCondition("CampaignName = 'londonweather'")
.get()
.next();
campaign.enable();
}
Can anybody help?
Thanks