I have a script that I am using to pause the campaigns in an account to help control cost, and once it reaches the requirements the script sends me an email to let me know that the campaigns have been paused. That works great. I have it set to run hourly.
The only problem is that it keeps sending me an email every hour to let me know that the campaigns are paused.
What I would like it to do is first check to see if any campaign in the account is enabled, and if so, then run the rest of the script, if none are enabled stop, and not run the rest of the script.
I'm not a programmer by any stretch of the imagination, but I think it has something to do with the AdsApp.CampaignIterator to see if a campaign is enabled, but I'm not sure, and not exactly sure where to start, so any assistance would be greatly appreciated!