Get an email when a Google Ads campaign is heading over or under its monthly budget
A free, read-only Google Ads script that projects where each campaign and shared budget on a daily budget will finish the month, checks it against your targets and Google's own monthly spending limit, and emails you when something is off (a daily all-clear email is optional). Plus an AI prompt that turns the alert into a client-ready pacing note. From DetectivePPC.
By DetectivePPC · Written against the documented Google Ads scripts APIs (AdsApp.search with GAQL, MailApp, SpreadsheetApp), with every field checked against the Google Ads API v26 reference, December 1, 2026.
Logic-tested offline with mocked Google services on a fictional account. Not tested in a live Google Ads account: run Preview first. Projections are a simple run-rate estimate, not Google's forecast.
Get the script
We'll email you a zip with the script, the 5-page PDF setup guide and the AI prompt.
Why it matters
Google Ads Help: "On a given day, your campaign might spend up to twice your average daily budget... At the end of the month, you will have spent no more than 30.4 times your average daily budget" (support.google.com/google-ads/answer/2375423). After a budget change, "your spend for the rest of the month won't exceed your new average daily budget multiplied by the remaining number of calendar days in the month" (support.google.com/google-ads/answer/10487143). Pacing against a monthly number means doing that math for every campaign, every day.
Pairs with the calculator
The Google Ads Budget Pacing Calculator plans the month; this script watches it every day.
Plan the month with the Budget Pacing Calculator
How the projection works
This is a simple, transparent estimate, not Google's forecast. Every number is in the email and Logs so you can check it.
- Spend to dateCost (metrics.cost_micros) from the 1st of the month through yesterday, in the account time zone. Today's partial day is left out.
- Run rateAverage daily cost over the last 7 complete days (RECENT_DAYS), counted from the start date for newer campaigns. Or the daily budget, if you set PROJECTION_BASIS to 'BUDGET'. Never above 2x the daily budget.
- Days leftCalendar days left in the month, today included. Stops at the campaign's end date if it ends this month.
- Raw projectionSpend to date + run rate x days left.
- Monthly limitDaily budget x 30.4. If the budget changed this month: spend before the change day + new budget x calendar days left from the change day. If the campaign started this month: daily budget x days from its start to month end.
- Projected month-endThe smaller of the raw projection and the monthly limit. If the run rate would hit the limit early, the notes say in about how many days.
- Vs target(Projected - target) / target. Over the OVER threshold (default +10%) or under the UNDER threshold (default -15%) gets flagged.
- To land on target(Target - spend to date) / days left: the average daily spend that would land exactly on target.
Fictional sample
What the alert looks like
Everything in this table is made up: a fictional account run through the script offline with mocked Google services, not a live Google Ads account.
Sample output from a fictional account ("Juniper Lane Pet Supply", made-up campaigns run through the script with mocked Google services, on a fictional September 18: 17 of 30 days complete). Pacing tab, main columns, USD:
- OVERSearch - Dog Food Generic+30.3%4560350031001904560
- UNDERDisplay - Remarketing-92.6%56760 (limit)302760
- UNDERSearch - Cat Litter-64.8%6341800400181824
- UNDERShared budget: Shared - Accessories (Search - Leashes, Search - Toys)-22.8%185424001100582432
- ON TRACKSearch - Grooming Promo-10%855950 (limit)27045950
- ON TRACKPMax - All Products+4.9%5244500036843305244
- ON TRACKSearch - Brand+4%936900520321216
- ON TRACKSearch - Puppy Training-3.7%67470045028912
Campaigns in scope: spend to date 9764 USD, projected month-end 15023 USD vs account target 18000 (-16.5%, UNDER). Includes 210 already spent by paused/removed campaigns (Search - Summer Sale).
A script tells you where spend is heading.
DetectivePPC runs a read-only Google Ads audit across 50+ dimensions, gives you a scored case file with prioritized findings and a white-label PDF, and then monitors the account between audits, alerting you to anomalies like a CPA spike or a sharp spend drop.
7-day trial · 1 free audit · Read-only access
