• Search Engine Land
  • Sections
    • SEO
    • SEM
    • Local
    • Retail
    • Google
    • Bing
    • Social
    • Resources
    • More
    • Home
  • Search Engine Land
  • SEO
  • SEM
  • Local
  • Retail
  • Google
  • Bing
  • Social
  • Resources
  • Live
  • More
  • Events
  • SUBSCRIBE

Search Engine Land

Search Engine Land
  • SEO
  • SEM
  • Local
  • Retail
  • Google
  • Bing
  • Social
  • Resources
  • More
  • Newsletters
  • Home
SEM

Stop running out of budget with this Google Ads script

This script takes preventative measures when you're on a limited budget to avoid letting Google spend more of your daily budget than you want.

Daniel Gilbert on March 4, 2019 at 7:48 am
  • More

Do you need to know exactly when your campaigns are starting to run out of budget?

Not after they’ve overspent when it’s already too late, but when you’re getting alarmingly close?

This budget depletion warning script might just do the trick for you.

As you probably know, Google can spend twice your daily budget to help reach your goals. That’s all well and good, but sometimes you need to be a bit more restrictive with your spend and avoid overspending at all costs. I’ve already shared a script that can pause campaigns when spend goes too far over budget, but this one is a preventative measure if your budget is more limited.

For example, if your budget is close to getting exhausted, you might also want to figure out until when in the day it lasts, without manually looking at the reports every day (especially if you’ve got shared budgets across campaign). This will help you monitor overspending trends on a day to day basis.

How to use it?

In a nutshell, the script warns you when your spend has reached a certain percentage of your daily budget, as chosen by you.

First, you’ll need to copy the script below into your account (in Tools, under Bulk Actions in the Google Ads interface) and set an hourly run schedule.

Choose the campaigns that the script should look at by editing the CAMPAIGN_NAME_CONTAINS and CAMPAIGN_NAME_EXCLUDES settings, to include or exclude specific campaigns in your account (e.g. only checking brand campaigns). You can also leave those variables blank to include all campaigns.

Then, set a percentage cap in WARNING_PERCENTAGE_CAP to determine the percentage of the budget that needs to have been spent for the tool to warn you.

The tool will then email all the addresses provided in the EMAILS variable with a table of the campaigns that have exceeded the budget cap.

It looks a little something like this:

All that’s left to do is to make sure you actually check your inbox once in a while!


Opinions expressed in this article are those of the guest author and not necessarily Search Engine Land. Staff authors are listed here.



About The Author

Daniel Gilbert
Daniel Gilbert is the CEO at Brainlabs, the best paid media agency in the world (self-declared). He has started and invested in a number of big data and technology startups since leaving Google in 2010.

Related Topics

Channel: SEMGoogleGoogle: Ads ScriptsPaid Search Column

We're listening.

Have something to say about this article? Share it with us on Facebook, Twitter or our LinkedIn Group.

Get the daily newsletter search marketers rely on.

Processing...Please wait.

See terms.

ATTEND OUR EVENTS

Lorem ipsum doler this is promo text about SMX events.

April 13, 2021: SMX Create

May 18-19, 2021: SMX London

June 8-9, 2021: SMX Paris

June 15-16, 2021: SMX Advanced

June 21-22, 2021: SMX Advanced Europe

August 17, 2021: SMX Convert

November 9-10, 2021: SMX Next

December 14, 2021: SMX Code

Available On-Demand: SMX

Available On-Demand: SMX Report

×


Learn More About Our SMX Events

Discover actionable tactics that can help you overcome crucial marketing challenges. Our next conference will be held:

Next Event: Sept. 14-15, 2021

Available On-Demand: March 2021

Available On-Demand: October 2020

×

Attend MarTech - Click Here


Learn More About Our MarTech Events

White Papers

  • Nielsen Annual Marketing Report: Era of Adaptation
  • Global Social Media Advertising Trends Among Retailers in 2021
  • 2020 Hispanic Market Report
  • Delivering Audio Success: Industry Trends in Streaming Audio & Podcast Performance
  • Ten Tips for Acquisition Email Success
See More Whitepapers

Webinars

  • Drive Customer Engagement with the Power of Personalization
  • 7 Use Cases That Prove Why You Should Implement DAM
  • Accelerate Your SEO & Content Marketing Program with 4 Key Milestones
See More Webinars

Research Reports

  • Local Marketing Solutions for Multi-Location Businesses
  • Enterprise Digital Asset Management Platforms
  • Identity Resolution Platforms
  • Customer Data Platforms
  • B2B Marketing Automation Platforms
  • Call Analytics Platforms
See More Research

Attend SMX For Only $149

h
Receive daily search news and analysis.

Channels

  • SEO
  • SEM
  • Local
  • Retail
  • Google
  • Bing
  • Social

Our Events

  • SMX
  • MarTech

Resources

  • White Papers
  • Research
  • Webinars

About

  • About Us
  • Contact
  • Privacy
  • Marketing Opportunities
  • Staff

Follow Us

  • Facebook
  • Twitter
  • LinkedIn
  • Newsletters
  • RSS
  • Youtube

© 2021 Third Door Media, Inc. All rights reserved.

Your privacy means the world to us. We share your personal information only when you give us explicit permission to do so, and confirm we have your permission each time. Learn more by viewing our privacy policy.Ok