All docs
Reference

AdSense tools: every read and write tool the agent and MCP can call

TL;DR

13 read and 5 write tools. Read and write support for the operations listed.

Support and limitations

  • Read and write support for the operations listed.
  • 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.

Read tools (13)

ToolWhat it does
adsense__detect_anomaliesDetect earnings/traffic anomalies (spikes/drops vs weekday-aware baseline) — ESTIMATED_EARNINGS/PAGE_VIEWS/IMPRESSIONS/CLICKS daily.
adsense__query_reportAdSense earnings report (estimated earnings, page views, impressions, clicks, RPM, CTR) by date/dimension incl.…
adsense__list_accountsList AdSense publisher accounts the login can access
adsense__list_ad_unitsList the AdSense ad units (per ad client): display name, state, type, size
adsense__raw_getRAW AdSense Management API v2 read — for anything the typed tools above do not cover.
adsense__list_policy_issuesAdSense POLICY CENTER issues — per issue: site/uri, entityType (SITE/SITE_SECTION/PAGE), action (WARNED / AD_SERVING_RESTRICTED / AD_SERVING_DISABLED /…
adsense__list_paymentsAdSense PAYMENTS: the current UNPAID balance plus completed payment history (newest first).
adsense__list_sitesAdSense SITES with their review state: READY (serving) / REQUIRES_REVIEW (NOT serving — waits on the publisher to request review) / GETTING_READY /…
adsense__list_alertsAdSense account ALERTS (payment holds, invalid-traffic notices, verification prompts): severity (SEVERE/WARNING/INFO), type, message.
adsense__get_account_healthAccount health in ONE read: account state (READY / NEEDS_ATTENTION / GETTING_READY) + pendingTasks, the alerts AdSense raises (payment hold, PIN / tax /…
adsense__list_custom_channelsAdSense CUSTOM CHANNELS of an ad client (name, displayName, active, reportingDimensionId for the CUSTOM_CHANNEL_ID report filter).
adsense__list_url_channelsAdSense URL CHANNELS (read-only in v2 — created in the UI): uriPattern + reportingDimensionId.
adsense__get_ad_codeThe ad TAG (adCode + AMP head/body) for one ad unit — the snippet that goes on the page.

Write tools (5)

A write marked “Person approves” waits for a person on every lane; the others follow the approval setting of the app or the credential.

ToolApprovalWhat it does
adsense__create_ad_unitApproval settingCreate an AdSense ad unit (created ACTIVE): displayName, size?
adsense__update_ad_unitApproval settingEdit an AdSense ad unit: adUnit (full name), displayName?, state?
adsense__create_custom_channelApproval settingCreate an AdSense custom channel (a reporting group): displayName, active?
adsense__update_custom_channelApproval settingRename or (de)activate a custom channel: customChannel (full name), displayName?, active?.
adsense__delete_custom_channelPerson approvesDESTRUCTIVE (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.

Frequently asked questions

How many AdSense tools are there?
18: 13 read and 5 write, of which 1 always wait for a person. The list on this page is the complete catalog for AdSense.
Can an agent call the AdSense API directly?
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.
Use the AdSense tools

Run them through the in-app agent, or call them from Claude, ChatGPT, Codex or Cursor over the hosted MCP server.