Hi,
I am running a very basic script to get all the campaigns, however, the script is only giving me 44 campaigns and all of them are paused. I am not able to figure out why. For context, my account has 258 campaigns of which 45 are actives. The script is not even giving us all paused campaigns, it is just showing some paused campaigns. I tried running it on multiple accounts, but it does not work.
function main() {
var campaignIterator = AdWordsApp.campaigns().get();
Logger.log('Total campaigns found : ' +
campaignIterator.totalNumEntities());
while (campaignIterator.hasNext()) {
var campaign = campaignIterator.next();
Logger.log(campaign.getName());
}
}