๐Ÿค– AI Project

Google Ads - Real-Time Anomaly Detection Agent

An AI monitoring system that watches a live Google Ads account every hour, detects campaign anomalies the moment they happen, and sends an instant Telegram alert with a plain-English explanation and a specific fix. On its first live run it caught a 540% CPC spike before any manual review.

540%
CPC spike caught
before anyone noticed
60 Min
Worst case detection
time vs 5 days manually
24/7
Monitoring runs without human input

See It In Action

Project Demo

The Problem

What problem does this solve?

Here's a scenario every performance marketer has lived: you open Google Ads on Thursday and notice a campaign has been overspending since Monday. Four days of wasted budget. The client calls before you do.

The problem isn't that the data wasn't there โ€” it was. The problem is nobody was watching at 2am on Tuesday when the CPC started climbing. This agent watches every hour, every day, while you sleep. When something breaks it sends you a message in plain English โ€” not a dashboard to log into, not a report to run, just: here's what happened, here's why it matters, here's what to check first.

The Solution

How AI solves it

An automated Python script connects to Google Ads via MCP and runs every hour via Windows Task Scheduler. The moment it detects an anomaly it fires a Telegram alert โ€” no dashboards, no manual checks, no delays.

1

Connects to Google Ads via MCP every hour and pulls today's live campaign data โ€” spend, impressions, clicks, CTR, CPC, conversions โ€” then automatically calculates a 7-day average baseline for every metric across every active campaign

2

Runs 5 detection rules against the baseline โ€” CPC spike above 30%, CTR drop below 25%, daily overspend above 120%, daily underspend below 60% after 3pm, zero conversions on a campaign that normally converts โ€” flags every breach instantly

3

Sends each flagged anomaly to Claude API which writes a 3-line plain-English alert โ€” what is happening, why it matters, and the first specific thing to check โ€” then fires it as a Telegram message to your phone within seconds

The Impact

Results & Key Metrics

540%
CPC spike detected on first live run
60 Min
Maximum detection time vs 5-day manual cycle
24/7
Zero human input required after setup

Project Visual

Screenshots & Design

Tools & Stack

Claude Code Google Ads API Claude API (Sonnet) Telegram Bot API Python Windows Task Scheduler

Want real-time monitoring on your ad account? like this?

This agent can be configured for any Google Ads account in under an hour โ€” custom anomaly thresholds, your campaigns, your Telegram. Problems caught before they cost you.

Start a Conversation โ†’