AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

4K members online now
4K members online now
Dive into advanced features like Remarketing, Flexible Bid Strategies, AdWords Editor, and AdWords Scripts
Guide Me

SQR Script Rollup

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Need help with this script from this article


Can't get it to work. Can't figure out why. Keep getting this error....

Could not find any campaigns with impressions and the specified options.



Thank you!














Re: SQR Script Rollup

Explorer ✭ ☆ ☆
# 2
Explorer ✭ ☆ ☆

Hi @Caitlin M

The "error" you get is not generated from Adwords Scripts engine but rather from the script itself (line 112):



  if (activeCampaignIds.length == 0) {
    Logger.log("Could not find any campaigns with impressions and the specified options.");    return;



It happens when activeCampaignIds.length == 0, meaning the combination you entered of the fields campaignNameContains, campaignNameDoesNotContain, ignorePausedCampaigns, ignorePausedAdGroups, along with your specified dateRange, simply produced 0 campaigns matching ALL those conditions.

Try changing some of the conditions values and see if you get any results, for example increase the dateRange or remove any value from campaignNameContains, just to see if you get anything.

Hope that helps.