Publisher

AI agent for AdSense: site monetization analysis

TL;DR

The agent reads AdSense earnings, RPM, CTR and impressions broken down by date, country, page or ad unit, so a publisher can monitor monetization health without exporting CSVs from the AdSense dashboard every week. Reads run on adsense.readonly; ad-unit and custom-channel writes pause for your approval.

Availability
Available
Connection method
Provider sign-in (OAuth)

Can an AI agent work with AdSense?

Yes. Agent Planners connects to AdSense through the official API and gives the agent 13 read tools and 5 write tools. Available changes depend on account permissions and the connection’s approval policy. You can use the same tools in the app or from Claude, ChatGPT and Codex over MCP.

Connect AdSense and check permissions

  1. 1Open Integrations and click Connect on the AdSense card.
  2. 2Sign in with the Google account that owns the AdSense account.
  3. 3Ask for the breakdown you want — by date, country, page or ad unit.
The authorization asks for adsense.readonly for reads. Ad-unit and custom-channel writes request a wider scope and arrive when you re-authorize. A first goal worth typing: RPM by country for the last 28 days, and flag anything that dropped more than 20%.

What the agent does with AdSense

  • Reads earnings, RPM, CTR and impressions by date, country, page and ad unit.
  • Flags revenue or RPM drops across a comparison window.
  • Cross-references content traffic (from Google Analytics or Search Console) with ad revenue to see which pages actually monetize well.

Example tasks for AdSense

Goal you'd typeWhat the agent does
"Which ad units have the worst RPM this month vs. last month?"Pulls per-unit RPM across both windows and ranks the biggest declines.
"Show me our top 10 pages by traffic and their AdSense RPM — are our highest-traffic pages actually our best earners?"Joins Google Analytics/Search Console traffic with AdSense per-page RPM to find high-traffic, low-monetization pages worth a placement test.
"Summarize earnings by country for the last quarter."Builds the country breakdown on demand.

Guardrails

Ad unit and custom channel writes are available to every organization and each pauses for approval. Adding a site and blocking ads are not possible for anyone — AdSense v2 makes sites and policy issues read-only.

Frequently asked questions

Can the agent change my AdSense ad units or settings?
Ad unit and custom channel writes exist for every organization, and each pauses for approval. Adding a site or blocking ads is not possible for any tool: AdSense v2 makes sites and policy issues read-only.
Can it tell me which content earns the most?
Yes — joining your traffic data (Google Analytics/Search Console) with AdSense's per-page RPM is one of the more useful goals for a content-driven site.
What's the setup?
Connect AdSense once via OAuth on the Integrations page — no configuration beyond that.

AdSense tools the agent can use

The tool catalog lists 13 read tools and 5 write tools for AdSense — the same names MCP clients, the REST API and the in-app agent call. Read and write support for the operations listed.

This is every AdSense tool in the catalog. See every tool for AdSense (18) or browse the complete tool catalog.

Read (13 of 13)

  • Readadsense__detect_anomalies

    Detect earnings/traffic anomalies (spikes/drops vs weekday-aware baseline) — ESTIMATED_EARNINGS/PAGE_VIEWS/IMPRESSIONS/CLICKS daily.

  • Readadsense__query_report

    AdSense earnings report (estimated earnings, page views, impressions, clicks, RPM, CTR) by date/dimension incl.…

  • Readadsense__list_accounts

    List AdSense publisher accounts the login can access

  • Readadsense__list_ad_units

    List the AdSense ad units (per ad client): display name, state, type, size

  • Readadsense__raw_get

    RAW AdSense Management API v2 read — for anything the typed tools above do not cover.

  • Readadsense__list_policy_issues

    AdSense POLICY CENTER issues — per issue: site/uri, entityType (SITE|SITE_SECTION|PAGE), action (WARNED | AD_SERVING_RESTRICTED | AD_SERVING_DISABLED |…

  • Readadsense__list_payments

    AdSense PAYMENTS: the current UNPAID balance plus completed payment history (newest first).

  • Readadsense__list_sites

    AdSense SITES with their review state: READY (serving) / REQUIRES_REVIEW (NOT serving — waits on the publisher to request review) / GETTING_READY /…

  • Readadsense__list_alerts

    AdSense account ALERTS (payment holds, invalid-traffic notices, verification prompts): severity (SEVERE|WARNING|INFO), type, message.

  • Readadsense__get_account_health

    Account health in ONE read: account state (READY / NEEDS_ATTENTION / GETTING_READY) + pendingTasks, the alerts AdSense raises (payment hold, PIN / tax /…

  • Readadsense__list_custom_channels

    AdSense CUSTOM CHANNELS of an ad client (name, displayName, active, reportingDimensionId for the CUSTOM_CHANNEL_ID report filter).

  • Readadsense__list_url_channels

    AdSense URL CHANNELS (read-only in v2 — created in the UI): uriPattern + reportingDimensionId.

  • Readadsense__get_ad_code

    The ad TAG (adCode + AMP head/body) for one ad unit — the snippet that goes on the page.

Write (5 of 5)

  • Writeadsense__create_ad_unit

    Create an AdSense ad unit (created ACTIVE): displayName, size?

  • Writeadsense__update_ad_unit

    Edit an AdSense ad unit: adUnit (full name), displayName?, state?

  • Writeadsense__create_custom_channel

    Create an AdSense custom channel (a reporting group): displayName, active?

  • Writeadsense__update_custom_channel

    Rename or (de)activate a custom channel: customChannel (full name), displayName?, active?.

  • WritePerson approvesadsense__delete_custom_channel

    DESTRUCTIVE (a person approves it on every lane): delete a custom channel — no undelete; historical rows stay, the grouping is lost.

Authorized raw requests

adsense__raw_request sends a request in AdSense's own API format, with the connection's credentials injected and the path bound to the connected account. It needs the tools:raw scope. Reads run at once; a change waits for a person unless the credential is an API key whose raw writes an admin pre-authorized, or the workspace's own OAuth app — except a permanent delete, which always waits for a person, and a call the platform's fences refuse, which is never sent.

Limitations

  • Permissions: the connected login's role and the permissions it granted decide what each tool can read or change. A tool the login cannot use answers with what is missing; it never works around it.
  • Approvals: in the app, changes wait for approval unless the task runs with auto-approve. Over MCP and REST they follow the credential's setting (an API key applies ordinary changes at once unless it is set to require approval; a third-party OAuth connection waits). 1 write is marked “Person approves”: it waits for a person on every lane — only the workspace's own OAuth app and an API key an admin set to apply changes you can't take back skip that wait. Forbidden Rules can block any of them.
  • Operations the platform's API does not offer, and operations not in the catalog, are not available through these tools.

At most 40 tools are listed on this page. Read more about how changes are approved.

Check access to AdSense

Use the setup guide to check account eligibility, permissions and available operations. 4,400 one-time free credits and plan details.

Related platforms

How the agent works