250-Point Audit Engine — Documentation

Complete reference for setup, usage, MCP configuration, scoring methodology, and export formats.

Quick Start

The audit engine is a single HTML file with zero dependencies. No build step, no backend, no npm install.

# Run locally
git clone https://github.com/itallstartedwithaidea/google-ai-agent-audit-engine.git
cd google-ai-agent-audit-engine
open app.html

# Or use the hosted version
https://googleadsagent.ai/tools/audit-engine/app.html

Architecture

The tool runs entirely in the browser. API keys are stored in your browser's localStorage — they never leave your machine and are never sent to any server except the API endpoints you configure.

Data Flow

┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│  Service APIs   │───▶│  Audit Engine    │───▶│  Strategy Gen   │
│  (via MCP/Keys) │    │  (250 Scoring)   │    │  (30/60/90)     │
└─────────────────┘    └──────────────────┘    └─────────────────┘
       ▲                       │                       │
       │                       ▼                       ▼
┌──────┴──────────┐    ┌──────────────────┐    ┌─────────────────┐
│  MCP Servers    │    │  Local Storage   │    │  Export (JSON/   │
│  (Claude Code)  │    │  (Browser)       │    │  CSV/MD/HTML)   │
└─────────────────┘    └──────────────────┘    └─────────────────┘

Service Connectors

Each connector unlocks specific audit categories. The tool works with any combination — you can run a full manual audit with zero connections.

ConnectorAudit Categories UnlockedAPI Required
Google Ads APIFoundation, Architecture, Keywords, Creative, Bidding, Audiences, Competitive, Cross-ChannelDeveloper Token + OAuth
GA4 Admin APIAudiences, Tracking, Cross-ChannelProperty ID + OAuth
GTM APITracking & MeasurementAccount/Container ID + OAuth
Search ConsoleKeywords, Competitive, Cross-ChannelSite URL + OAuth
PageSpeed InsightsLanding PagesFree API Key
Merchant CenterArchitecture, Cross-ChannelMerchant ID + OAuth
Meta MarketingCross-ChannelAccess Token + Ad Account ID
Microsoft AdsCross-ChannelCustomer ID + OAuth
Semrush / SpyFuCompetitive IntelligenceAPI Key

MCP Server Configuration

MCP (Model Context Protocol) servers allow Claude Code, Claude Desktop, and other AI agents to run the audit autonomously. Each server exposes tools that map directly to audit categories.

Claude Desktop Setup

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "google-ads-audit": {
      "command": "npx",
      "args": ["-y", "@googleadsagent/google-ads-mcp-server"],
      "env": {
        "GOOGLE_ADS_DEV_TOKEN": "your-dev-token",
        "GOOGLE_ADS_CLIENT_ID": "your-client-id",
        "GOOGLE_ADS_CLIENT_SECRET": "your-secret",
        "GOOGLE_ADS_REFRESH_TOKEN": "your-refresh-token",
        "GOOGLE_ADS_CUSTOMER_ID": "123-456-7890"
      }
    },
    "ga4-audit": {
      "command": "npx",
      "args": ["-y", "@googleadsagent/ga4-mcp-server"],
      "env": {
        "GA4_PROPERTY_ID": "properties/123456789",
        "GOOGLE_ACCESS_TOKEN": "your-access-token"
      }
    },
    "pagespeed-audit": {
      "command": "npx",
      "args": ["-y", "@googleadsagent/pagespeed-mcp-server"],
      "env": {
        "PAGESPEED_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Code Setup

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "google-ads-audit": {
      "command": "npx",
      "args": ["-y", "@googleadsagent/google-ads-mcp-server"]
    }
  }
}

MCP Tools Reference

ServerToolDescription
google-adsget_account_settingsAccount config, linking, auto-apply settings
google-adsget_conversion_actionsAll conversions with configuration
google-adsget_campaign_structureFull hierarchy with settings, budgets, bids
google-adsget_keyword_reportKeywords with QS, match types, metrics
google-adsget_search_termsSearch terms with waste identification
google-adsget_audience_listsAll segments with sizes and recency
google-adsget_ad_creativeRSAs, extensions, PMax assets + strength
google-adsget_auction_insightsCompetitive metrics across campaigns
google-adsget_recommendationsRecommendations with auto-apply status
google-adsget_change_historyRecent changes with attribution
google-adsget_bidding_diagnosticsSmart bidding signals and learning
google-adsget_budget_reportBudget utilization, pacing, IS data
ga4get_property_configProperty settings and linking
ga4get_event_mappingEvent config and conversion status
ga4get_audience_definitionsGA4 audiences for import
pagespeedrun_pagespeed_auditCore Web Vitals + Lighthouse
pagespeedget_mobile_usabilityMobile performance metrics

Scoring Methodology

Each of the 250 audit points is scored on a 0-4 scale with a weight multiplier (1-3).

ScoreRatingCriteriaStrategy Phase
0Critical FailNot implemented; causing harm or data lossDays 1-7 emergency
1Below StandardPartially implemented; significant gapsDays 1-30 foundation
2Meets BaselineImplemented but not optimizedDays 31-60 optimization
3Best PracticeFully optimized per current standardsDays 61-90 maintain
4Industry LeadingAdvanced implementation exceeding standardsDays 61-90 iterate

Account Health Index = (Sum of weighted scores) / (Sum of maximum weighted scores) × 100

Vertical Calibration: Every audit point includes a vertical-specific note that adjusts expectations. A 2% CTR means something different for B2B SaaS than for local services. Use these notes to contextualize your scoring.

Audit Categories

#CategoryPointsPrimary Connector
1Account Foundation & Settings25 points (1-25)Google Ads
2Campaign Architecture & Structure30 points (26-55)Google Ads
3Keyword & Search Term Strategy30 points (56-85)Google Ads + Search Console
4Ad Creative & Messaging30 points (86-115)Google Ads
5Bidding & Budget Strategy25 points (116-140)Google Ads
6Audience Strategy & Data30 points (141-170)Google Ads + GA4
7Landing Pages & Post-Click25 points (171-195)PageSpeed + Google Ads
8Tracking & Measurement30 points (196-225)GA4 + GTM + Google Ads
9Competitive & Market Intelligence15 points (226-240)Google Ads + Semrush
10Cross-Channel Integration10 points (241-250)All platforms
Recommended Execution Order: Start with Category 8 (Tracking) — everything else depends on data integrity. Then Category 1 (Foundation), then proceed through the remaining categories in numerical order.

Export Formats

JSON (Full Data)

Complete audit data including scores, notes, auto-detected findings, and metadata. Use for importing into other tools, tracking progress over time, or programmatic analysis.

CSV (Spreadsheet)

All 250 items with scores, weights, categories, and notes. Opens directly in Excel, Google Sheets, or any spreadsheet tool for further analysis.

Markdown (Report)

Formatted report with category scores, item-level findings, and strategy. Paste into Notion, Confluence, or any Markdown-compatible system.

Strategy Generation

The 30/60/90 strategy is auto-generated from audit scores:

Days 1-30 (Foundation): All items scored 0-1 (Critical Fail and Below Standard). These represent foundational issues that must be fixed before optimization work can be effective.

Days 31-60 (Optimization): All items scored 2 (Meets Baseline). These represent areas meeting minimum standards but leaving performance on the table.

Days 61-90 (Accelerate): All items scored 3-4 (Best Practice and Leading). These shift to maintenance, iteration, and expansion.

Every strategy action traces back to a specific audit item number, making the recommendation fully accountable and verifiable.

Analysis Protocols

The audit engine follows enterprise-grade analysis protocols from the Google Ads Agent v10.0 architecture:

Context Efficiency Protocol (CEP)

Before deep analysis, the AI asks targeted questions to minimize unnecessary data pulls and focus on what matters:

TierQuestionsWhen
1. IdentityWhich account? Which campaigns? Which ad groups?Always
2. ScopeENABLED only? Date range? Min spend threshold?Analysis tasks
3. AdvisoryWhat KPIs drive decisions? Conservative or aggressive? Constraints?Recommendations

6-Tier Filter Priority System

Every data query applies filters in strict order for maximum efficiency:

TIER 1: IDENTITY  → customer_id / account name
TIER 2: STATUS    → ENABLED, PAUSED (exclude REMOVED)
TIER 3: TYPE      → campaign type, match type, device
TIER 4: DATE      → date range (default LAST_30_DAYS)
TIER 5: METRICS   → cost_min, conversions_min (dollars)
TIER 6: SHAPING   → limit, sort_by, detail_level

Top-Down Reporting

Analysis always starts at the account level and drills down on request — never starting with details:

Account Summary → Offer drill-down options → Apply filters → Validate completeness
"These 10 campaigns represent 85% of total spend."

Performance Benchmarks

MetricCriticalNeeds WorkGoodExcellent
Search CTR<1%1-3%3-6%>6%
Quality Score<44-56-78-10
Search IS<20%20-50%50-80%>80%
Conversion Rate<1%1-3%3-5%>5%
Budget Lost IS>30%15-30%5-15%<5%
Wasted Spend>30%15-30%5-15%<5%

Anomaly Detection Thresholds

SignalThresholdAction
Spend spike>50% WoWInvestigate immediately
CTR crash>40% drop WoWCheck ads and keywords
CPA 3x above target300% of goalConversion tracking or targeting issue
IS drop>20% declineBudget or competition shift
QS drop to <4Below 4Landing page or ad relevance issue

Safety Rules

The engine follows strict safety protocols for any recommendations:

• Never recommend budget increases >20% without validated conversion tracking

• Never recommend Smart Bidding without 30+ monthly conversions (tCPA) or 50+ (tROAS)

• Never recommend enabling paused campaigns without fixing root cause first

• Always show current vs. proposed values for any change recommendation

• Always quantify impact in dollars

Beyond the Audit — Meet Buddy

The audit engine scores and diagnoses. When you're ready to take action, Buddy — your AI ads agent can help. Buddy connects directly to Google Ads API v22 for:
CapabilityAudit EngineBuddy
Score 250 audit points
Generate strategy document
Pull live Google Ads data
Ongoing strategic conversations
Pause/enable campaigns live
Update budgets live
Multi-account management
Scan pages for tracking
Web search for intelligence
Write ad copy
Competitor analysisVia SearchAPI✅ (real-time)

Talk to Buddy →

Privacy & Security

All data stays in your browser. API keys are stored in localStorage on your device. The audit engine makes direct API calls from your browser to the services you configure — no data passes through any intermediary server. When you close the tab, only what you explicitly saved persists.

Contributing

This is an open-source project. Contributions welcome:

Vertical experts: Add industry-specific scoring profiles and calibration data

Platform specialists: Update audit items as Google Ads features evolve

Developers: Extend connectors for additional platforms

Practitioners: Share anonymized benchmark data to improve scoring

View on GitHub →