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

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....

15:24:50.627
Could not find any campaigns with impressions and the specified options.

 

 

Thank you!

 

 

 

 

 

 

 

 

 

 

 

 

 

1 Expert replyverified_user

Re: SQR Script Rollup

Rising Star
# 2
Rising Star

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.