Bulk rename Google AdWords Campaigns – a handy script

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.


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.


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!

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


    • 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?


  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?



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

Leave a Reply

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