Skip to main content
Glama
admob-mcp

admob-mcp

by oleksandrtry

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ADMOB_CURRENCYNoDefault report currency (ISO 4217), e.g. `USD`. Defaults to the account currency.
ADMOB_CLIENT_IDNoUse this instead of the saved credentials file (CI, containers).
ADMOB_ACCOUNT_IDNoDefault publisher ID (`pub-…`) when the Google user has several accounts.
ADMOB_CONFIG_DIRNoDirectory holding `credentials.json` (default `~/.config/admob-mcp`, `%APPDATA%\admob-mcp` on Windows).
ADMOB_CLIENT_SECRETNoUse this instead of the saved credentials file (CI, containers).
ADMOB_REFRESH_TOKENNoUse this instead of the saved credentials file (CI, containers).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Read-only access to Google AdMob.

  • Start with get_earnings_summary for overviews, compare_periods for "why did it change", detect_anomalies for "what broke".

  • Use run_network_report / run_mediation_report / run_campaign_report for custom breakdowns.

  • Money values are already converted from micros to the account currency. Ratios (CTR, match rate) are fractions shown as %.

  • Dates are in the account's reporting time zone; last_N_days presets exclude today. The last 1-2 days may still be updating.

  • If a call fails with an authentication error, tell the user to run admob-mcp auth in a terminal.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_accountsA

Lists the AdMob publisher accounts the signed-in Google user can access, with their currency and reporting time zone. Call this first if you are unsure which account_id to use.

list_appsA

Lists apps in an AdMob account with their app IDs (ca-app-pub-…~…), platform, store ID and approval state. App IDs can be used as APP filter values in reports.

list_ad_unitsA

Lists ad units (ca-app-pub-…/…) with their app and format. Ad unit IDs can be used as AD_UNIT filter values in reports.

list_ad_sourcesA

Lists the mediation ad sources (ad networks) available to the account, e.g. AdMob Network, Meta Audience Network. IDs match the AD_SOURCE dimension of mediation reports.

run_network_reportA

Runs an AdMob Network report: earnings and performance of ads served by the AdMob Network, broken down by any dimensions (date, app, ad unit, country, format, platform, versions…). Use for most revenue questions. Money is in currency units (not micros); eCPM = IMPRESSION_RPM.

run_mediation_reportA

Runs an AdMob Mediation report: performance per ad source (network), ad source instance and mediation group, alongside app / ad unit / country breakdowns. Use to compare networks in your waterfall/bidding setup. OBSERVED_ECPM is the third-party network's estimated eCPM.

run_campaign_reportA

Runs an AdMob Campaign report for house-ad / cross-promotion campaigns (impressions, clicks, installs, cost). Date range is limited to 30 days. Filtering and sorting are applied after fetching.

get_earnings_summaryA

One-call overview of AdMob Network performance for a period: KPI totals (earnings, impressions, eCPM, requests, match rate, show rate, CTR), a daily (or weekly, for ranges over 35 days) trend, and the top contributors by app, ad unit, country, format or platform. Best starting point for 'how are we doing?' questions.

compare_periodsA

Compares AdMob Network KPIs between a period and a baseline (previous period, same period last year, or custom), overall and per app / ad unit / country / format / platform / version. Rows are ranked by their absolute contribution to the change, and show whether it came from volume (impressions) or price (eCPM). Use for 'why did revenue change?'.

detect_anomaliesA

Finds apps / ad units / countries / formats / platforms whose recent daily performance deviates sharply from their own baseline. Method: mean of the last recent_days days vs the MEDIAN daily value of the preceding baseline_days days; flagged when the change is at least threshold_pct. Low-volume groups are skipped. Today is excluded by default because its data is incomplete.

Prompts

Interactive templates invoked by user choice

NameDescription
weekly_revenue_reviewReview last week's AdMob revenue: KPIs, trend, top apps, week-over-week changes and anomalies.
investigate_revenue_dropDrill down into why AdMob earnings dropped: which apps, countries, formats or versions, and whether volume or eCPM fell.
mediation_performance_auditCompare ad sources (networks) by earnings, eCPM, fill and latency to spot under-performers.
country_breakdownWhere the money comes from: earnings, eCPM and growth by country.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 10 tools

Disambiguation4/5

The four list_* tools target clearly separate resources, and the three run_*_report tools map to distinct report types (network, mediation, campaign). The only real overlap is get_earnings_summary versus run_network_report, which both cover AdMob Network performance, though the descriptions differentiate them as a quick overview versus a customizable breakdown.

Naming Consistency5/5

All ten tools follow a consistent snake_case verb_noun pattern (list_accounts, run_network_report, get_earnings_summary, compare_periods, detect_anomalies). The verbs are meaningful and predictably paired with the resource or operation they act on.

Tool Count5/5

Ten tools is well within the ideal range and each one earns its place: four discovery/list tools, three report runners, and three analysis helpers. Nothing appears redundant or padding.

Completeness4/5

The reporting surface is thorough, covering network, mediation, and campaign reports plus summary, comparison, and anomaly detection. Minor gaps exist: there is no listing of mediation groups or ad source instances, and no per-app or per-ad-unit detail lookup beyond the bulk list tools.