# 237 Cycles, No Rollback: How Hammad Yousuf's Claude Code agent runs Google Ads inside guardrails

Hammad Yousuf, an AI implementation specialist in Dubai, runs SARA, an autonomous Google Ads agent, on live client accounts. Every morning n8n pulls yesterday's Google Ads and GA4 data and hands it to a Claude Code agent playing a senior media buyer. The agent returns a list of decisions. Routine ones, such as budget shifts inside set limits and negative keywords, execute on their own with a rollback record. Structural ones, such as new campaigns or ad copy changes, wait for him. He says weekly optimisation time dropped from 9 hours to 2, ROAS rose 18% quarter over quarter, and the agent "ran 237 autonomous cycles in the first quarter without a single rollback trigger".

**Try this step:** <strong>Clean the account first.</strong> On the Printo account he spent 3 months cleaning attribution before any automation touched bids and budgets. "The agent is the last step, not the first."


| | |
|---|---|
| **Who** | Hammad Yousuf, an AI implementation specialist in Dubai who builds and runs AI agents for sales outreach, ad optimisation, quoting and SEO, verified 2026-11-24 |
| **Problem** | Serious Google Ads management meant 9+ hours a week of search term reviews, bid and budget pacing checks, ad asset reviews and GA4 cross-checks, and when it slipped, decisions ran on stale data |
| **Stack** | Claude Code (reasoning layer, senior media buyer role prompt); n8n (scheduling, API routing, approval gates); Google Ads API and GA4 exposed to the agent as typed tools through MCP; a guardrail layer; a change log with rollback payloads; a watchdog |
| **Confidence** | Medium (his own posts about client work; no client-side confirmation) |
| **Last verified** | 2026-11-24 |

## The problem
Before SARA, he writes, account management meant "9+ hours a week of recurring work": mining search terms for negatives and new keywords, checking bid and budget pacing, reviewing responsive search ad assets and cross-referencing GA4 to catch tracking drift. "None of it is intellectually hard", but it has to happen consistently. His starting insight was that the workload is "mostly interpretation of structured data".

## The blueprint (as he describes it)
1. **Clean the account first.** On the Printo account he spent 3 months cleaning attribution before any automation touched bids and budgets. "The agent is the last step, not the first."
2. **Pull the data every morning.** At 08:00 GST, n8n triggers the cycle. The agent gets yesterday's spend, impressions, clicks, conversions and CPA from the Google Ads API, cross-referenced with GA4, against a 7-day rolling baseline per campaign.
3. **Ask for decisions in a fixed format.** The prompt has three parts: the role, the current state and the output format, a JSON list of decisions with action type, target, magnitude, confidence and a plain-language reason. "The reason string on every decision is non-negotiable".
4. **Tier every action.** Each decision has a category, and each category is auto-execute, auto-execute-with-log or queue-for-approval. Budget shifts stay inside hard limits: no campaign budget moves more than 20% in a day, and the account's daily budget stays capped at AED 200. New campaigns, ad copy changes, pausing ad groups, conversion tracking changes and brand messaging always wait for him.
5. **Enforce limits outside the prompt.** A rules check sits between the agent's decisions and the API calls. The agent can see why a decision was rejected, "but it cannot override a guardrail by arguing."
6. **Make every change undoable.** Every change writes its prior state to a change log first. If 24-hour CPA rises more than 40% above the 7-day average after a cycle, a watchdog reverts that cycle and sends an alert.
7. **Start in shadow mode.** The agent first logged decisions without executing them. He reviewed 3 weeks of shadow decisions; they matched what he would have done in about 85% of cases, and the 15% it got wrong were structural decisions the escalation gate flagged anyway.

## Stated results
- **Time:** weekly optimisation time from 9 hours to 2. The remaining 2 are approvals, strategy and reading the agent's log.
- **ROAS:** up 18% quarter over quarter, mostly from the daily negative keyword loop.
- **Stability:** 237 autonomous cycles in the first quarter without a rollback trigger, which he credits to a deliberately narrow decision scope.
- **A caught mistake:** in testing, a conversion tracking glitch led the agent to propose a sharp budget cut on the account's best campaign; the anomaly check queued it and a human caught it in minutes.
- **Printo account (agent plus manual strategy):** AED 42K of spend produced 3,750 conversions, a blended CPA of AED 11.20. He says the attribution work, restructure and ad angle strategy were manual.

## Caveats
- These are his own posts about client accounts, with no client confirmation. The SARA post credits the ROAS gain to "the accounts it runs" and the walkthrough to "the account it runs".
- He sells this work: a free call, a $999/mo growth service and free demo agents on his site.
- The AED 11.20 CPA is a combined result. "This result was system plus strategist".
- He names a cost tradeoff to running a frontier model daily and says it is hard to justify on small accounts without enough conversion volume.
- His home page intro video is presented by an AI avatar with a clone of his voice, and the site says so.
- Handles: LinkedIn (withhammad), YouTube (@with.hammad), Instagram (withhammad.ai), TikTok (@withhammad) and GitHub (withhammad), all linked from withhammad.com. No X, Bluesky, Threads or Mastodon profile was verified.

## FAQ
### What does the agent change on its own?
Search term harvesting and negative keywords, bid and budget pacing inside set bands, ad asset rotation and anomaly alerts. No campaign budget moves more than 20% in a day.

### What always waits for him?
New campaign structures, ad copy changes, pausing ad groups, budget increases above a threshold, conversion tracking changes and anything touching brand messaging.

### What happens if a change goes wrong?
Every change is logged with its prior state. If 24-hour CPA rises more than 40% above the 7-day average after a cycle, a watchdog reverts that cycle and sends an alert.

### How much time does it save?
He says weekly optimisation time dropped from 9 hours to 2.

## Sources
- https://withhammad.com/blog/how-i-built-google-ads-autonomous-agent-walkthrough (primary walkthrough, 25 August 2026)
- https://withhammad.com/blog/how-i-built-an-autonomous-google-ads-optimization-system-sara (system breakdown, 9 August 2026)
- https://withhammad.com/blog/google-ads-cpa-aed-11-20-full-system (Printo account case study, 9 August 2026)
- https://withhammad.com/ (his site, links his profiles)

---
*Want agents like these working your distribution? [Get It Built](/get-it-built). Get new teardowns weekly: [subscribe](/subscribe) (double opt-in).*