September 18, 2026 · 7 min read
Playbooks

Automating AdSense ad units and custom channels with an AI agent

TL;DR

AdSense automation has a sharp boundary and the useful version of this article is about where it sits. Ad units and custom channels can be created and changed through the v2 API. Adding a site and blocking ads cannot — by anyone, with any tool — because those resources are read-only.

What the API actually allows

That last pair is worth internalising before you plan a workflow around it. An agent can tell you precisely which site has a policy problem and what the problem is, and it cannot act on it. The fix stays in the AdSense interface, and no tool can change that — the endpoints do not exist.

OperationAvailable?
Create an ad unitYes
Update an ad unitYes
Create, update or delete a custom channelYes
Read sites, policy issues, payments, alerts, ad codeYes
Add a siteNo — read-only in v2
Block ads or resolve a policy issueNo — read-only in v2
Availability is in preview while Google verifies the adsense scope, so this is currently reachable by organizations enrolled in that preview rather than by everyone.

The custom channel problem nobody schedules

Custom channels are how AdSense reporting gets segmented — by section, by template, by content type, by whatever dimension you actually make decisions on. They are also created one at a time in a web interface, which is why most publishers have three of them and wish they had thirty.

This is an unglamorous, genuinely automatable chore: describe the segmentation you want, have the agent draft the channel set, approve it as a batch. The value is not the minutes saved, it is that the reporting question you could not answer last quarter becomes answerable next quarter.

  1. 1Ask the agent to read your existing ad units and custom channels, so the plan starts from what is there rather than from a blank page.
  2. 2Describe the segmentation you want to report on — by section, by page type, by template.
  3. 3Review the drafted channel set and approve it as a batch rather than one at a time.
  4. 4Give it a period to accumulate data, then ask the reporting question that prompted this.

Ad unit work worth doing

  • Consistent naming across a site, which sounds trivial until you try to report across a hundred units named by four people over three years.
  • New placements for a new template, drafted from an existing unit rather than configured from scratch.
  • Retiring what earns nothing — the agent ranks units by contribution first, so the decision starts from evidence.
  • Ad code retrieval for the units you just made, which is the step that otherwise sends you back to the interface.

Where the real money usually is

Being honest about relative value: creating ad units is not what fixes publisher revenue. Understanding why revenue moved usually is, and that answer normally lives across AdSense, Ad Manager and AdMob at once, with a traffic change visible in GA4 or Search Console before it shows up in earnings.

One reviewer described exactly this workflow — checking Ad Manager, AdSense, AdMob and analytics separately before being able to understand what was affecting revenue. The write tools close a loop; the cross-platform read is what answers the question.

Configuring this from Claude or Codex rather than the app? The AdSense MCP server guide has the setup.

Frequently asked questions

Can an AI agent create AdSense ad units?
Yes — create and update ad units, and create, update or delete custom channels, each pausing for approval. It is in preview while Google verifies the adsense scope.
Can an agent add a site to my AdSense account?
No, and neither can any other tool. AdSense v2 makes sites read-only, so adding a site is an interface-only operation regardless of what you are automating with.
Can an agent block ads or fix a policy issue?
No. Policy issues are read-only in the v2 API — an agent can tell you exactly which site has which problem, and the fix stays in the AdSense interface.
What is actually worth automating in AdSense?
Custom channels, mostly. They are how reporting gets segmented, they are created one at a time in a web interface, and most publishers have far fewer than they need because of that friction.
Run your ad ops with an agent you can trust

Start free — 2,500 credits a month, no credit card. Every write waits for your approval.

Keep reading