We all know that we should spend more time optimising our campaigns for Google Ads to help get the best return on investment, but the truth for most advertisers is that you simply don’t have the time to devote yourself to this task. Fortunately, in this post, we will look at how you can use scripts for Google Advertising to boost results. From broken URLs and low output ratings to poor results to poor performing keywords and wasted advertising spend, Google Ads scripts can help you streamline your PPC campaign and supercharge performance.

Getting started with scripts

Worried that a programming language has to be mastered to start using scripts? Well. Don’t be. There are some great free scripts for Google Ads that are easy to use and only need a few quick edits to make them work for you. No coding knowledge is required, and as you become more familiar with scripts, you will be able to use them to save you time for more and more repetitive tasks.

Setting up your first script

When it comes to running your first script it really couldn’t be easier to do by following the instructions below:

  1. Sign into your Google Ads account
  2. Click the Tools icon and go to Scripts under BULK ACTIONS
  3. Press the + icon to add your first script
  4. Copy and paste the following code into the editor area:

function main() {
  var keywords = AdsApp.keywords()
      .orderBy(“Impressions DESC”)

  Logger.log(“10 keywords with most impressions yesterday”);
  while (keywords.hasNext()) {
    var keyword = keywords.next();
    Logger.log(keyword.getText() + “: ” +

  1. When prompted, click AUTHORIZE which will allow the script to access your account
  2. Click PREVIEW to run the script in preview mode, results will appear in the CHANGES/LOGS panel.

If the script has been successful you should see a keyword report to show the top 10 keywords by number of impressions for yesterday.

Script uses

Now that you’ve grasped the fundamentals of developing and running a script for Google Advertising, we will start looking at some of the ways you can use them to boost your campaigns’ results. Google Advertising scripts can be used in a range of areas, from monitoring and bid management to labelling and budget management, to help enhance and maximize the efficiency of your ad campaigns.


For custom reports that clearly show you the measures that matter most to your business, and that dig down into the specifics quickly. There are a wealth of analyses that can be run using scripts to help you assess your accounts’ results and make data-based decisions.

To help get you started, Google has a range of free reporting scripts that can be found here.

Broken URLs

Running a big e-commerce company? Or have custom parameters in your URLs? Updating your Google Ad URLs can be easy to forget, especially when updating items on your website in bulk or adding new monitoring and campaign parameters. Fortunately, you can review all of your ads instantly and conveniently using Google Developers’ Broken URL/Link Checker script.

This script can be configured simply and has a variety of uses that can be managed in the included spreadsheet. The effects of the script are stored in a spreadsheet and errors can be sent to you after the script has been finished.

Keyword performance

Do you want a quick way to pause keywords that just don’t perform? This script immediately pauses all zero-impression keywords in your account. A handy script that can be performed occasionally to cut the dead weight of your campaigns to keep them from hurting your success ratings. The script for Pause All Keywords With No Experiences can be downloaded and copied from here which comes courtesy of Free AdWords Scripts.

Bid testing

Do you want to know which bids for keywords function well to help accomplish your goals? Scripts from Google Ads will help you change your bidding systematically and help you find the right bids for your keywords. The script changes the keyword bids over time and catalogues the performance to let you see which bids are the most successful for your keywords.

Using bid multipliers that can be set to raise or decrease the keyword bids, are automatically changed. To suit the promotions, the script may then be programmed to run weekly or at other intervals. The script will record this until the bid testing is complete, and subsequent executions will not make further modifications. You can find this script at Google Developers section by clicking here.

Chat with us

Get More Out of Your Business

Before you go! See how Macbeth Designs can transform your business. We have worked with many types of businesses over the years and we would love to hear from you!