TwoSquaresTwoSquares
ContactFree Audit
ENBG
  1. Home
  2. Scripts
  3. Campaign Underspending Alert
Back to scripts

Campaign Underspending Alert

Flags campaigns and shared budgets that are underspending against expected budget pace, with support for yesterday or intraday checks.

alertsbudgetpacingmccgoogle-sheets

Script Details

Name
Campaign Underspending Alert
Author
Kiril Ivanov
Updated
2026-03-19

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

  1. Set mode to YESTERDAY or INTRADAY based on how early you want to detect underdelivery.
  2. Adjust underspendThreshold and minBudgetFilter for your account scale.
  3. Decide whether shared budgets should be checked as aggregates.
  4. Run manually first and validate the flagged rows against your actual campaign pacing.
  5. Enable email and sheet output only after you trust the thresholds.

More Scripts In This Library

Previous Script

Campaign Spend Spike Monitor

Next Script

Conversion Action Mix Anomaly Monitor

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.

Dominate your market. Own your growth.

Let's build measurable growth together.

Get Free Audit
TwoSquares

Full-service digital growth agency. SEO, PPC, paid social, GEO and web development for UK brands ready to scale.

ENBG

Ask AI about TwoSquares

ChatGPT
Perplexity
Grok
Claude
Gemini

Services

  • SEO
  • GEO
  • PPC
  • Paid Social
  • Email Marketing
  • Web Design & Dev
  • CRO
  • Strategy & Planning
  • Consultancy
  • Custom Solutions

Solutions

  • AI Search Growth System
  • Demand Generation & Lifecycle
  • Pay-Monthly Websites

Audits

  • PPC Audit
  • SEO Audit
  • GEO Audit
  • Website Audit
  • Full Marketing Audit
Featured on Best in Britain

Company

  • About Us
  • Our Brands
  • Blog
  • Contact
  • Case Studies
  • Careers
  • Templates

Resources

  • Resources Hub
  • AI Readiness Toolkit
  • SEO Glossary
  • Free Tools

Industries

  • Hotels & Resorts
  • Property & Rentals
  • Restaurants & Bars
  • E‑commerce & DTC

Connect

[email protected]
SSL Secured
GDPR Compliant

© 2026 TwoSquares Limited (SC877356). All rights reserved.

Privacy PolicyTerms of ServiceCookie PolicySitemap

TWOSQUARES