Bulk rename Google AdWords Campaigns – a handy script

Find the updated version of this script (MCC-level) at Adsscripts.com

Last week I had the honour to work at some accounts for Groupe PSA. Part of the job was changing the campaign names according to very specific naming conventions for correct tracking in Doubleclick. To make this easy I’ve created a simple, but efficient script to rename AdWords Campaigns in bulk.

Challenge

Usually the AdWords Editor does the trick. However, since the campaign is used as an identifier to connect a campaign to new info, using the AdWord Editor is not possible. Another option is via Bulk Edits in Doubleclick Search. However, I did not have access to DS so I had create a workaround.

Script

It’s really simple to use the script. Just create a new Google Spreadsheet with two columns: old and new (or any column name you like). Place the old campaign names in the “old” column and the new campaign names in the – you guessed it – “new” column.

Then install the script and replace the spreadsheet URL in line 14 with the URL of the Google Spreadsheet you’ve created. Save, authorize and preview the script. If all is fine, you can run it. Enjoy!

156 thoughts on “Bulk rename Google AdWords Campaigns – a handy script

  1. Marc Reply

    Could this be adapted to run at the MCC level so that 50 different accounts campaigns could be updated at once from a single google spreadsheet?

    Thanks!

    • martijn Post authorReply

      Hi Marc,

      That is possible. Just e-mail me with additional info and I will see what I can do!

  2. Charly Mayaud Reply

    Hello! Thank you very much for the original post.
    I’m also interested in running such a script at the MCC level. Were you able to develope that code?

    Thanks!

  3. Jake Adams Reply

    Hello mate I am getting an error when trying to do this script

    Error: script has multiple “main” functions. (file Code.gs, line 1; file Changing Campaign Names .gs, line 8)

    Can’t seem to understand why?

    CHeers

    Jake

    • martijn Post authorReply

      Hi Jake,

      Try to remove the existing “sample script” when setting up a new script. Then copy and paste the provided script and you should be fine!

  4. Daniel Zrust Reply

    I have a finding – when you try to rename Universal App Campaigns with bulk upload or with this script, it just does not work. Nothing happens, no errors are thrown.

    When I try to rename search campaigns, it works.

    • martijn Post authorReply

      Hi Daniel,

      Thanks for the feedback! Unfortunately, Universal App Campaigns are not supported yet by Google Ads Scripts.

  5. Dhruv Menon Reply

    Hi, Could you help us with a script to do this across multiple campaigns under multiple accounts at the MCC level?

  6. Andrew Einspanier Reply

    Hey Martjin,

    When I try to run this script, it will only do the first 47 lines even though I need it to make 650 changes. Do you know what might be going wrong?

    Thanks,
    Andrew

    • martijn Post authorReply

      Hi Andrew,
      Is it possible your campaign name online line 48 contains a single quote -> ‘? That could cause the script to stop editing the campaign names.

  7. Kaitlyn Reply

    This worked for my Google account, but how can I modify the script where it will work for Bing?

    Thanks!

    • martijn Post authorReply

      Hi Kaitlyn, rewriting the script for Bing/Microsoft Ads is unfortunately not very simple because of the Google Sheet connection. However, I will try to create a Bing version of this script in the near future.

  8. Stephanie Reply

    Hi Martijn,
    I tried but this is not working with Smart Shopping campaign! Any other script I can use?

  9. Pranit Surve Reply

    Can we replace the Keyword Final URLs similarly?
    What should be edited in the above script?

  10. Werner Pattum Reply

    The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention.

  11. wasmachine monteur Reply

    I’ve been surfing online more than 3 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my view, if all website owners and bloggers made good content as you did, the internet will be much more useful than ever before.

  12. maseczki z filtrem Reply

    I’m extremely pleased to discover this website. I wanted to thank you for ones time just for this fantastic read!! I absolutely enjoyed every part of it and i also have you bookmarked to see new stuff in your site.

  13. Mobiele car wash Reply

    I’ve been browsing on-line more than 3 hours today, but I by no means found any interesting article like yours. It’s pretty worth sufficient for me. In my opinion, if all webmasters and bloggers made excellent content material as you probably did, the net can be much more useful than ever before.

  14. taxi antwerpen Reply

    This is the fitting blog for anyone who desires to seek out out about this topic. You realize so much its almost arduous to argue with you (not that I really would want…HaHa). You positively put a new spin on a subject thats been written about for years. Nice stuff, just nice!

  15. Medion Reply

    Hi there, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam comments? If so how do you stop it, any plugin or anything you can suggest? I get so much lately it’s driving me mad so any help is very much appreciated.

  16. new renault key card Reply

    Some really great info, Gladiola I detected this. I’m not spaming. I’m just saying your website is AWSOME! Thank you so much! Please vist also my website.

  17. Webdesign budel Reply

    I really like your writing style, wonderful information, thank you for posting :D. “Every moment of one’s existence one is growing into more or retreating into less.” by Norman Mailer.

  18. Mobiele car wash Reply

    This web site is really a walk-through for all of the info you wanted about this and didn’t know who to ask. Glimpse here, and you’ll definitely discover it.

  19. synthetic wigs Reply

    Hello, you used to write great, but the last few posts have been kinda boringK I miss your great writings. Past several posts are just a little out of track! come on!

  20. 2dehands Reply

    After study a few of the blog posts on your website now, and I truly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls check out my web site as well and let me know what you think.

Leave a Reply

Your email address will not be published. Required fields are marked *