Skip to main content

OpenPPC: Google Ads audits, made simple. Free forever, open source, runs in your browser.

Read-only Google Ads audits where every number is traced back to your own export. For PPC freelancers and agencies who use AI on client accounts but won't hand it the keys, or trust its math.

Why

AI will happily audit a Google Ads account. When we tested language models on real accounts, they read trends backwards and invented dollar figures, even after fine-tuning. So this tool splits the job: code computes every number, and a checker traces each figure in the report back to your data. It never connects to your account, never changes anything, and makes no network calls.

Two things it does

Audit. Run a template on a report you exported from Google Ads. You get a markdown report where every figure is computed from your file, and the report checks itself before you see it.

Check. Point it at any audit, from ChatGPT, Claude, a colleague or another tool, plus your export. Every number comes back marked:

  • traced: it matches your data, at the precision it was written
  • wrong number: it doesn't match your files, and the flag says what the figure really is ("no: the cost of 'pipe repair' is $296.40")
  • wrong label: right number, wrong metric or row ("22 conversions" when 22 is that search term's clicks)
  • can't check: a target, threshold, comparison ("8% more"), forecast or what-if, or the audit's own working over rows an export can't rebuild (brand against non-brand, "the other $3,690"). Listed apart with a prompt to ask for the working, never counted against the audit

A number is only flagged when the checker knows what it claims to be: a row, match type or campaign type the text names, the rows it names together, the terms that never converted, or the whole account. Anything else it can't confirm is "can't check", because calling the audit's own arithmetic wrong would be a guess.

Besides each row and the account totals, it checks what audits usually work out: the sums, rates and shares of the rows a sentence names together, of a match type ("broad", "exact/phrase"), of a campaign type ("Performance Max spent $1,240") and of the rows under a heading. It also flags sentences that contradict their own numbers ("fell from 9% to 14%").

See it

Check any audit against your export. Every number comes back marked traced, wrong number or wrong label, with the line it came from.

The number check: 4 of 11 numbers in an AI-written audit don't hold up against the export

Run a free audit. Code computes every figure in the report, from wasted spend to the negatives worth adding.

A search-term waste audit of the sample export

Hand it to a client. Export a branded PDF whose numbers are all traced.

The branded PDF builder

All screens use the made-up Acme Plumbing sample in examples/.

Quick start

pip install openppc        # or: uv tool install openppc

openppc audit search-term-waste --sample
openppc check --sample

--sample runs on a made-up plumbing company's account that ships with OpenPPC, so this works with no account and no API keys. For your own data, export a report from Google Ads and pass its path:

openppc audit search-term-waste search_terms.csv --brand "Your Brand"
openppc check --audit their_audit.md --data search_terms.csv

To work on OpenPPC itself, clone it (git clone https://github.com/secondsteplabs/openppc) and run uv venv && uv pip install -e . inside it. Keep your own exports in exports/, which git ignores.

Run it in your browser

The web app in web/ runs the same engine inside the browser tab (Python compiled to WebAssembly with Pyodide). Your export and the audit stay on your machine: the page's security policy only lets it download its runtime, libraries and fonts from one pinned CDN (each checked against a fingerprint), so it has no way to send your files anywhere.

python3 -m http.server 8765 --directory web
# open http://localhost:8765 and click "Try the sample account"

What it has:

  • Check: paste any AI's audit next to the export it was written from, and see each number marked traced, wrong number or wrong label.
  • Audit: run a free template on your export. The search-term waste audit comes back as cards: the headline numbers, what to do, and the wasted terms with the chance each one is bad, ready to copy as exact-match negatives or download as a .csv.
  • Templates: every free template, with a link to its code.
  • Branded PDF: a client-ready report under your agency's name, logo and brand color: a cover with the headline, then what we found, what we recommend, how the account compares with its industry, and how the report was made (the export's name, dates and SHA-256 fingerprint). Pages are laid out at Letter or A4 size exactly as they print: a block that does not fit moves to the next page, and long tables continue there under their own header, so nothing is cut. Before you can save, the checker reads the text of every page and confirms each number traces to the export. Save it from the browser's print dialog (Chrome and Edge keep the layout exactly). The logo stays in the browser.
  • Rules (coming soon): turn a rulebook rule into a Google Ads Script you install yourself. Nothing is built for it yet.

The first visit downloads about 6 MB of runtime, which your browser then keeps. After changing anything in openppc/ or examples/, rebuild the bundle the page loads (a test fails if you forget):

python tools/build_web.py

Website

The site at openppc.si is built from site/ together with the app, which it serves at /app/:

python tools/build_site.py
python3 -m http.server 8766 --directory dist

Pages are HTML fragments in site/pages/ wrapped in site/layout.html. The build fails on any broken internal link, and the pages load nothing from other sites.

Templates

Template Reads You get
search-term-waste Search terms report (.csv) Zero-conversion search terms ranked by cost (Search and Performance Max apart), each with the chance it is genuinely bad, the words behind the long tail, expensive converters, terms worth adding as keywords
keyword-audit Keywords report (.csv) Keywords spending without converting, budget by match type, spend on low Quality Scores
account-structure Account snapshot (.json); Google Ads Editor export next How the account is built: broad match without Smart Bidding, brand mixed with non-brand, duplicate keywords, negatives that block your own keywords, thin or pinned ads, missing sitelinks, retired bidding. Where Google and practitioners disagree, it shows both
account-read Two-period totals (.json) What changed and why it matters: efficiency win, over-expansion, broken tracking and more

Add --industry to compare against published industry averages. openppc industries lists them.

Add --brand "Your Brand, Short Name" so brand searches, and close misspellings of them, are never flagged as waste or suggested as negatives:

openppc audit search-term-waste exports/search_terms.csv --brand "Acme Plumbing, Acme"

Premium templates are planned as a paid add-on: a full account audit, Performance Max, a branded client-ready PDF, and multi-account triage. Everything in this repository stays free under the MIT license.

Playbook: how to fix each finding

The Playbook turns an audit into a fix plan. For every finding: what the audit found (its own sentence, so every number is one the audit computed and checked), why it matters, the steps in Google Ads, what to check first and how to tell it worked. Each step cites the rulebook rule and source behind it, and the guides promise no results.

openppc playbook search-term-waste exports/search_terms.csv --brand "Acme Plumbing, Acme"
openppc playbook account-structure --sample

The guides live in openppc/playbook/guides/, one per kind of finding, and every fix plan passes the number check against its export in the tests. Read them all at openppc.si/docs/playbook. The MCP server offers the same as fix_plan_for_account (local) and fix_plan_for_export (web).

Use it inside Claude, Cursor and ChatGPT

OpenPPC is an MCP server: your assistant writes the words, and OpenPPC computes and checks the numbers.

On your computer (Claude Code, Claude Desktop, Cursor). It reads your exports where they are:

claude mcp add openppc -- uvx --from "openppc[mcp]" openppc-mcp

For Claude Desktop or Cursor, add the same server to claude_desktop_config.json or ~/.cursor/mcp.json:

{ "mcpServers": { "openppc": { "command": "uvx", "args": ["--from", "openppc[mcp]", "openppc-mcp"] } } }

uv fetches OpenPPC from PyPI the first time it runs.

As a web connector (ChatGPT, claude.ai), over streamable HTTP at /mcp:

openppc-mcp --http --host 0.0.0.0 --port 8000

Put it behind HTTPS and add https://your-host/mcp in ChatGPT (Developer mode) or claude.ai (Connectors). A hosted connector at https://mcp.openppc.si/mcp is coming soon. The connector's tools take the export's contents instead of a path, work in a temporary folder that is deleted when the call ends, and keep nothing. To keep an export on your computer while using ChatGPT, run OpenPPC locally and connect it through OpenAI's Secure MCP Tunnel.

Every tool is read-only: list_templates everywhere; audit_account and check_numbers on your computer; audit_export and check_audit on the connector. From a clone, uv pip install -e ".[mcp]" and then claude mcp add openppc -- openppc-mcp.

How it works

your export (.csv)
  -> parse      skips Google's title, date and Total lines; recomputes every total from the rows
  -> template   computes each figure in code and registers it as a labeled fact
  -> report     prints registered facts only
  -> check      traces every number in the report back to a fact before you see it

The checker compares numbers at the precision they were written: "$1.4k" matches 1,361.04 because both round to 1,400, and "$1,500" does not. It reads the words around a number, and the table column it sits in, to catch a right number attached to the wrong metric or row.

How sure is a waste flag?

A search term with no conversions might be bad, or just unlucky. A fixed rule ("no conversions after $20") can't tell the difference. OpenPPC's waste model learns how much your account's search terms differ in conversion rate, then gives each term the chance that it truly converts at less than half your account's rate. Only terms at 90% or more are marked as negatives to add; the rest are too early to judge, and the words they share are listed instead.

We backtested this on live accounts, excluding terms that people had already added as negatives. Terms the model was 90% sure about kept converting at a small fraction of their account's rate over the next five months. Terms flagged by a fixed dollar threshold went on to convert at close to the normal rate. The sample is still small, and the method is in openppc/engine/waste_model.py.

The rulebook

Every rule the tool applies is a row in rulebook/rules.csv: what it checks, the formula, the threshold, where the idea comes from (Google's own guidance, practitioners, or our reasoning) and the line of code that runs it. A test fails if a threshold in the code and its row ever disagree, so the rulebook is always what the tool actually does. Planned rules sit in the same file. Argue with any of them in an issue or a pull request.

What it is not

  • Not connected to your account. It reads a file you exported.
  • Not an autopilot. It never changes a campaign.
  • Not a strategy checker. It checks numbers and their direction, not whether the advice is good.

Known limits

  • With thousands of figures in a file, a number can match one by coincidence. Every trace names the fact it matched, so read the "traced to" column instead of just counting.
  • "Wrong number" means it doesn't match the files you provided. The figure may come from another report or date range.
  • Benchmarks are the public WordStream / LocaliQ 2026 US averages: a ballpark, not a target.
  • Google renames export columns from time to time. If a file won't load, open an issue with its header row.

Roadmap

  • An optional writer that turns the facts into prose with your own model key, while every number still comes from code
  • A public eval: can an AI read a Google Ads account correctly?
  • More exports: campaigns, Performance Max, Search Console, Meta

Configuration

None. No API keys, no .env.

Contributing

Issues and pull requests are welcome. Read CONTRIBUTING.md first, and never attach a client's export.

Security

To report a vulnerability, see SECURITY.md.

License

MIT. See LICENSE.


labs.secondstep

Built by labs.secondstep, the open-source side of Second Step.

Metadata

Release files for openppc 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openppc 0.2.0
File Size Uploaded Provenance Actions
openppc-0.2.0.tar.gz 127.9 kB With provenance Details for openppc-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openppc 0.2.0
File Interpreter ABI Platform Actions
openppc-0.2.0-py3-none-any.whl Python 3 none any Details for openppc-0.2.0-py3-none-any.whl

Total release size: 254.6 kB

Release files / openppc-0.2.0.tar.gz

Download URL openppc-0.2.0.tar.gz
Size 127.9 kB
Tags Source
SHA-256 checksum
How to use checksums
65366c0d0aff04dfe3d6d1275f0969839618e34e31ecd4dc232019016d6703c2
BLAKE2b-256 checksum
How to use checksums
12f746ccf71517ac91bb1f2397afd8da44d4c7d1d59847c59e899ae607fe3bc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / openppc-0.2.0-py3-none-any.whl

Download URL openppc-0.2.0-py3-none-any.whl
Size 126.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd60a2f1ddfc2966b5bb79d99b5cc60377136acdaa980c4239687fa32c04f812
BLAKE2b-256 checksum
How to use checksums
e49728c695bb781a0396ddf391946b19ae785d45451c2ea6fb6aa230ed644745
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Security for openppc 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openppc-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page