Why do most ad changes go unmeasured?
An agent can edit a budget in seconds. The evidence that the edit helped usually arrives weeks later, if anyone looks.
Weekdays and noise hide the answer.
A budget change lands on a Tuesday. By Friday, cost per lead looks better because weekends are cheaper anyway. Without a baseline, the agent and the owner read the same chart and disagree. Nothing records what the account looked like before the edit, or what the untouched campaigns did at the same time.
The fix is a record, not a hunch.
The honest question is narrower: given the controls and the weekday pattern, did this campaign move more than expected?
- History plus timeline. The store keeps daily numbers and a timeline of every committed ad change. selftest: metrics.store
What does the daily history store?
One local file. Numbers only. The owner keeps it on their machine.
Daily facts, not a dashboard.
- Location. One local SQLite file,
metrics.sqlite, beside the config. Nothing is sent to AdRails. selftest: metrics_tools - Google Ads. Campaign days and search-term days: cost, clicks, impressions, conversions, conversion value. selftest: metrics.store
- Search Console. Site, query and page days: clicks, impressions, impression-weighted position. selftest: metrics.gsc
- AI visibility. Panel runs with answers, mentioned and cited counts per engine. selftest: metrics.store
- Leads. Counts per source per day. Never names, phones or emails. selftest: metrics_tools
- Change timeline. Every committed ad change, read from the audit log. selftest: metrics.store
- Pull behaviour. Idempotent: missing days plus the last days Google still revises (7 for Ads, 4 for Search Console). First run backfills 90 days by default, up to 480; Search Console keeps 16 months. Read-only towards Google. selftest: metrics_tools
Run it from cron: python3 -m adsops.metrics_tools --config X pull.
How does AdRails decide if a change worked?
Compare what happened with what would likely have happened without the change. The method follows Google's CausalImpact idea, simplified to standard-library Python.
- Counterfactual first. Untouched campaigns act as controls, least-squares fitted on the 28 days before the change. Controls that were themselves changed are excluded; only controls with correlation >= 0.3 are used. If none qualify, AdRails uses the weekday pattern before the change. selftest: metrics.impact
- Effect and range. Actual vs expected, the effect with a 90% range from a residual bootstrap. selftest: metrics.impact
- Placebo test. How often a fake change inside the quiet period moved the number by this much. It is a sanity check, not a guarantee. selftest: metrics.impact
- Verdict. Helped, hurt or no clear effect, plus a one-sentence summary. Cost per result (cost per conversion) is tested as a ratio: its own 90% range and its own placebo test, so a bigger budget at the same cost per lead is not mistaken for an improvement.
- Refusal. Under 14 days before or 7 days after the change, it says how long to wait. selftest: metrics.impact
Illustration, with made-up numbers. A campaign budget moves from $50 to $60 a day. In the next 14 days it spends $840 and gets 42 conversions. The counterfactual expects $700 and 35 conversions. The effect is +$140 spend and +7 conversions, with a 90% range for conversions of +1 to +13. None of the 15 fake changes the placebo test replays inside the quiet month moved conversions that much. Verdict: helped. That is the shape of the output; your numbers decide it.
What are the cheapest organic wins in Search Console?
The ranking already exists. The cheapest work is improving the title, the page or the paid split.
One ranked list, in plain English.
- Striking distance. Queries where a page already ranks 4-20. selftest: metrics.gsc
- CTR gaps. Titles earning under half the clicks expected at their position. selftest: metrics.gsc
- Paid/organic overlap. Search terms you pay for in Google Ads while already ranking top-3 organically, with “test pausing” or “keep” advice based on whether paid converts there. selftest: metrics.gsc
- Winners and losers. Period-over-period winners, losers, new and lost queries or pages. selftest: metrics.gsc
All of it is read-only and live from Google Search Console.
How does it fit the weekly routine?
The agent does the boring part on a schedule. The owner reviews decisions, not spreadsheets.
- Morning. The morning prompt runs
adsops_metrics_pull, so yesterday is in the history before anyone asks. selftest: metrics_tools - Weekly. The weekly prompt runs
adsops_search_consoleopportunities andadsops_impacton every change with 7+ days behind it. selftest: metrics.impact - Monthly.
adsops_resultsgives a before-and-after view of leads, jobs won, cost per lead by channel, first-response time, AI share of answer and reviews. Missing data is a named gap, never a zero. selftest: qa_local_suite
What was verified live?
The first live pull found a real bug before release, and an independent code review found eight more; all were fixed and turned into tests. That is why the limit below stays on the page.
One live run, including what it caught.
LIVE VERIFICATION: on 2026-11-09 the pull ran against our own live accounts (a property-management client's Google Ads account and Search Console for two sites): 2,880 Ads rows and 4,364 Search Console rows in 7 seconds, 10 committed changes found in the audit log. Daily cost in the store matched Google Ads' own reporting to the cent for 5 of 5 days checked. That run caught and fixed a double-count (account totals had added search-term rows to campaign rows) before release. Honest limit seen live: with about one conversion a week, impact on conversions or cost per conversion returns "no clear effect" rather than a guess; low-volume accounts should measure clicks, cost or leads.
What are the limits?
Measurement is evidence, not a courtroom verdict. These are the edges of the evidence.
- History is required. The first run backfills 90 days by default, but a brand-new change still needs 14 days before and 7 days after. Impact refuses before that. selftest: metrics.impact
- Low conversion volume. With about one conversion a week, conversions and cost per conversion return no clear effect. Measure clicks, cost or leads instead. selftest: metrics.impact
- Search Console is revised. Recent Search Console days are refetched because Google revises them. Older history goes back 16 months. selftest: metrics_tools
- Correlation is not proof. The counterfactual and placebo test reduce obvious mistakes; they do not prove causation. Measured on synthetic data with no real change, it calls a false helped or hurt in about 7% of cases (12% when daily numbers run in streaks), and catches a real 30% move 95% to 100% of the time. selftest: metrics.impact
Run everything offline with python3 -m adsops --selftest. Measurement tools are documented with the other tools in the tools reference.
Straight answers.
Can Claude tell me if my Google Ads change worked?
Yes, if the change is in the local history and enough days have passed. Claude calls adsops_impact, which compares the period after the change with a counterfactual built from untouched campaigns or the weekday pattern. It returns actual vs expected, an effect with a 90% range, a placebo check and a verdict: helped, hurt or no clear effect. Under 14 days before or 7 days after, it says how long to wait.
Does AdRails connect to Google Search Console?
Yes. adsops_search_console reads Search Console live and read-only: properties, a ranked opportunities list and period-over-period winners, losers, new and lost queries or pages. The daily pull also stores site, query and page days with clicks, impressions and impression-weighted position in the local history. adsops-mcp connect now asks for read-only Search Console access during the same Google sign-in.
Where is my data stored?
In one local SQLite file, metrics.sqlite, beside your AdRails config on your machine. It holds numbers: Ads campaign and search-term days, Search Console days, AI-visibility panel counts, lead counts by source and a timeline of committed changes. It never stores lead names, phones or emails, and nothing is sent to AdRails.
How long before a change can be measured?
adsops_impact refuses to guess before 14 days of history before the change and 7 days after it; it tells you how long to wait. After that it compares actual results with a counterfactual and reports a 90% range. Low-volume accounts may still get no clear effect, especially on conversions, and should measure clicks, cost or leads.
Is this like Google CausalImpact?
The idea is the same: compare what happened with what would likely have happened without the change. AdRails simplifies it to standard-library Python. It fits untouched campaigns over the 28 days before the change, falls back to the weekday pattern, and reports a 90% range plus a placebo test. The placebo test is a sanity check, not proof of causation.