Google Ads Script - Include/ Exclude Campaigns

258 views
Skip to first unread message

Nick G

unread,
Mar 18, 2019, 10:15:46 AM3/18/19
to Google Ads Scripts Forum
Hi there, 

Hoping someone can assist me. I would like to double-check whether I've structured both the include & excludeCampaignNameContains variants correctly below? I'm pretty sure 'include' is correct, as when I run the script it's not returning any errors. However, I'm not confident about 'exclude' as I'm not receiving any feedback.

Just to give some context: I'm trying to assign 24/7 bid modifiers to a single campaign - "bwr | 35-54 | f | personal". I've included an article link below if more reference is needed. 

Do I then need to exclude ALL other campaigns that I don't want the bidding to apply? I'm concerned if I leave "excludeCampaignNameContains" blank that it will adjust bids across the account. Should I have to include all campaigns, is it possible to use terms generic across the campaigns (i.e brand, loan, invest, competitor), rather than the full campaign names?

Any direction would be appreciated.
  
Nick




function main() {

 
  var shoppingCampaigns = false;
 
  var runMobileBids = false;
      
  var excludeCampaignNameContains = ["bwr | 00 | g | personal", "bwr | 18-34 | f | personal", "bwr | 18-34 | m | personal", "bwr | 35-54 | m | personal", "bwr | 55+ | f | personal", "bwr | 55+ | m | personal","bwr | 00 | g | loans"];
  
  var includeCampaignNameContains = ["bwr | 35-54 | f | personal"]
 
  //When you want to stop running the ad scheduling for good, set the lastRun
  //variable to true to remove all ad schedules.
  var lastRun = false;
 
  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//

24-7 Bidding.txt

googleadsscrip...@google.com

unread,
Mar 18, 2019, 3:28:48 PM3/18/19
to Nick G via Google Ads Scripts Forum, Google Ads Scripts Forum
Hi Nick,

Since this is a third party script, I would recommend reaching out to the script author, since they will be in the best position to assist. 

Please note that the selector,

AdsApp.campaigns().withCondition("Name DOES_NOT_CONTAIN_IGNORE_CASE '' " ); //note that the characters following DOES_NOT_CONTAIN_IGNORE_CASE are two single quotes without a space

will contain zero entities.

However, the selector

AdsApp.campaigns().withCondition("Name DOES_NOT_CONTAIN_IGNORE_CASE ' ' " ); //note the space between the single quotes

Will return all campaigns that do not a space in their name. 

Regards,
Matt
Google Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
    https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/081fe6fc-dac1-4e24-98c8-44fbc64e7ca7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nick Galland

unread,
Mar 19, 2019, 6:51:33 AM3/19/19
to Google Ads Scripts Forum on behalf of googleadsscripts-forumadvisor, Nick G via Google Ads Scripts Forum
Ok. Thanks, Matt. I'll try and track down the script writer.

To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/nX1Tj7_em6Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/00d12js9lo0000018o6kte000js2ngz6kmjgc9h6so30c1g68qjechl%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--

Nick Galland
Performance Marketing Director  |  RateSetter Australia
14 Martin Place, Sydney
+61481279310

Find us here: Map
Follow us on: Twitter

The information contained in this email should not be taken as financial product advice and has been prepared as general information only without consideration for your particular investment objectives, financial circumstances or particular needs. You should read our Product Disclosure Statement before making any decision about your investment choices. RateSetter Australia RE Limited ABN 571 666 466 35 holds Australian financial services licence number 449176 and Australian credit licence number 449176, and is a member of the Australian Financial Complaints Authority (AFCA). RateSetter takes your privacy seriously. All information about you is held subject to our Privacy Policy.

Reply all
Reply to author
Forward
0 new messages