Script for adding negative keyword list to new campaigns?
808 views
Skip to first unread message
Vy Nguyen
unread,
Mar 10, 2017, 5:41:02 AM3/10/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords Scripts Forum
I'm currently managing 60+ campaigns on AdWords. So for every new campaign I launch, I have to manually copy & paste keywords from an excel sheet to the campaign's negative keywords list. I would like to implement a script that does this automatically for me every time I create a new campaign. Can someone show me a snippet that does this?
Anthony Madrigal
unread,
Mar 10, 2017, 9:34:14 AM3/10/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords Scripts Forum
Hi Vy,
You can use the Master Negative List script, which adds a negative keyword and/or placement list automatically to your campaigns. You can either schedule the script to run Hourly or Daily to make sure that new campaigns are up to date with these lists.
Cheers,
Anthony
AdWords Scripts Team
Vy Nguyen
unread,
Mar 10, 2017, 5:49:26 PM3/10/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords Scripts Forum
So I'm looking at the template spreadsheet for the Master Negative Keyword List. It says for Bulk Negatives, "Leave this field empty to process all the campaigns in an account." - How can I edit this to apply to only new campaigns (meaning campaigns that don't actually exist in the account yet!).
Thanks,
Vy
Anthony Madrigal
unread,
Mar 13, 2017, 9:34:25 AM3/13/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords Scripts Forum
Hi Vy,
If you want to apply the lists to only newly created campaigns, you should create a label and apply it to all those campaigns upon creation of the campaigns. Then on your spreadsheet, put the name of the label in the column next to Label for campaigns to be processed.
Vy Nguyen
unread,
Mar 15, 2017, 12:09:47 PM3/15/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords Scripts Forum
So I tried running the script which worked, but not for every campaign in my account. Here's the log:
Not completed:Timeout Processing spreadsheet Exceeded maximum execution time Exceeded maximum execution time
Anthony Madrigal
unread,
Mar 15, 2017, 12:35:23 PM3/15/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords Scripts Forum
Hi Vy,
AdWords Scripts have a 30 minute execution time limit. As a workaround, I suggest creating two versions of the script with two different campaign labels. You can have one script apply the lists to one group of campaigns and one with another.