AdSense Host API logo

AdSense Host API

AdSense Host API

Work with AdSense Host accounts, ad clients, ad units, reports, and ad code generation from one API surface.

Visit site ↗Health checked 9h ago
Use it when

Covers the path from accounts down to ad units

Watch for

This is a Host integration API, not the generic publisher UI surface

First check

Use an OAuth token with the adsensehost scope. Walk the hierarchy from accounts to adclients to adunits first, then test reports and adcode generation.

Auth
oauth
CORS
No
HTTPS
Yes
Signup
Required
Latency
321 ms
Protocol
REST
Pricing

Uptime · 30-day window

Probes: 1Uptime: 100%Avg latency: 321ms
01

About this API

This API is the operational surface for AdSense Host workflows, covering accounts, ad clients, ad units, reports, and ad code generation. In the published OpenAPI surface, the most concrete handles are "/accounts", "/accounts/{accountId}", and "/accounts/{accountId}/adclients", backed by tags such as "accounts", "adclients", and "associationsessions".

That makes the API practical for list ad clients under a host account, generate ad code for a specific ad unit, and pull reports, custom channels, and url channel data. The spec lists scopes such as "https://www.googleapis.com/auth/adsensehost".

This is a Host integration API, not the generic publisher UI surface The exposed version is older, at v4.1

02

What you can build

  • 1List ad clients under a host account
  • 2Generate ad code for a specific ad unit
  • 3Pull reports, custom channels, and URL channel data
03

Strengths & limitations

Strengths

  • Covers the path from accounts down to ad units
  • Includes a concrete adcode generation endpoint
  • Uses a single adsensehost OAuth scope

Limitations

  • This is a Host integration API, not the generic publisher UI surface
  • The exposed version is older, at v4.1
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://google.com/<endpoint> \
  -H "Authorization: Bearer $ACCESS_TOKEN"
05

Getting started

Use an OAuth token with the adsensehost scope. Walk the hierarchy from accounts to adclients to adunits first, then test reports and adcode generation.

06

Technical details

CORS: NoHTTPS: YesSignup: YesOpen source: No
Auth type
oauth
Pricing
unknown
Protocols
REST
Response time
321 ms
Last health check
5/12/2026, 7:37:30 AM
07

Tags

08

More from Google