Skip to content

Monitoring Scripts

John Williams edited this page Mar 13, 2026 · 1 revision

Monitoring Scripts

Original Scripts ★

anomaly-detection.js

Lines: 1,124 | Level: Single Account

The most comprehensive anomaly detection script in this collection. Monitors multiple metric dimensions simultaneously with configurable thresholds, exclusion lists, trend analysis, and a full Google Sheets dashboard.

Metrics Monitored: Impressions, clicks, conversions, spend, bids, budgets, impression share, quality score, device performance, and more.

Output:

  • Separate sheets per anomaly type (Impression Anomalies, Click Anomalies, etc.)
  • Summary sheet with severity scores
  • Charts sheet with visualizations
  • Trends sheet tracking improving/worsening patterns
  • Email alerts

impression-share-tracker.js

Lines: 505 | Level: Single Account

Calculates weighted impression share metrics using the same methodology as the Google Ads interface. Supports Search, Shopping, Display, Video, and Performance Max campaigns.

Metrics tracked: Search IS, Exact Match IS, Click Share, Top IS, Absolute Top IS.

budget-projection.js

Lines: 126 | Level: Single Account

Simple but powerful: projects month-end spend, clicks, impressions, conversions, and CTR based on current pacing. Suggests incremental budget increases (+5%, +10%) with projected impact on conversions.

out-of-stock-scanner.js

Lines: 41 | Level: Google Apps Script (not Google Ads Scripts)

Note: This script runs in Google Apps Script, not Google Ads Scripts. It crawls specified website URLs, detects out-of-stock items using Cheerio, and logs results to a Google Sheet.


Community Scripts

14 additional monitoring scripts covering broken URLs, budget depletion, capacity control, spend alerts, quality score drops, GMC disapprovals, and more. See Monitoring README.

Clone this wiki locally