Campaign Underspending Alert
Flags campaigns and shared budgets that are underspending against expected budget pace, with support for yesterday or intraday checks.
Script Code
Use this when you want a pacing alert focused on underdelivery rather than overspend, especially across multiple accounts or shared budgets.
Preview is public. Unlock full code with name and email.
/**
* ==========================================================
* Campaign Underspending Alert
* ==========================================================
* Description: Flags campaigns and shared budgets that are
* underspending versus expected pace.
*
* Copyright (c) 2026 TwoSquares. All Rights Reserved.
* Developed by Kiril Ivanov
*/
function main() {
var CONFIG = {
mode: "YESTERDAY",
underspendThreshold: 0.60
};
// ... preview shortened
}About This Script
Campaign Underspending Alert checks whether campaigns or shared budgets are spending materially below expected pace. It can run in yesterday mode for simpler daily checks or intraday mode for earlier warning signals while the day is still in progress.
This updated version keeps the original intent but corrects the MCC detection logic, cleans up reporting assumptions, and uses more reliable account branching. It also preserves spreadsheet output and shared-budget aggregation for operational review.
The script is best used as a pacing-monitoring layer. It does not tell you why a campaign is underspending, but it gives your team a reliable shortlist to investigate before underdelivery harms lead volume or spend targets.
Implementation Notes
- Set mode to YESTERDAY or INTRADAY based on how early you want to detect underdelivery.
- Adjust underspendThreshold and minBudgetFilter for your account scale.
- Decide whether shared budgets should be checked as aggregates.
- Run manually first and validate the flagged rows against your actual campaign pacing.
- Enable email and sheet output only after you trust the thresholds.
More Scripts In This Library
Google Ads Budget Tracker
Exports campaign spend for this month and last 7 days into Google Sheets so budget pacing is visible at a glance.
Account Anomaly Detector
Compares today’s account performance against the same weekday across previous weeks and alerts when impressions, clicks, conversions, or cost move outside expected bounds.
MCC Negative Keyword Conflict Checker
Runs across manager-account children, compares enabled keywords to campaign and ad group negatives, and exports likely conflicts into Google Sheets.
Missing Active Ads Ad Group Alert
Finds ad groups with no enabled ads and sends a simple alert, with optional spreadsheet logging and MCC support.
Campaign Underspending Alert FAQs
Common setup, usage, and troubleshooting questions for this script.