AdSense Host API logo

AdSense Host API

AdSense Host API

AdSense Host API 支持 accounts、adclients、adunits、reports 和 adcode 生成,适合托管式广告平台集成。

访问站点 ↗健康巡检 9 小时前
适合什么时候用

资源面覆盖 accounts 到 adunits 的完整链路

先注意什么

这是 Host 运营接口,不是面向普通 AdSense 站长的通用管理面

第一步先查

先准备 adsensehost scope 的 OAuth 令牌,按 accounts → adclients → adunits 的顺序验证资源层级,再测试 reports 和 adcode 生成路径。

认证
oauth
CORS
不支持
HTTPS
注册
需要
延迟
321 ms
协议
REST
计费

可用率 · 30 天窗口

巡检: 1可用率: 100%平均延迟: 321ms
01

关于这个 API

这份接口是 AdSense Host 场景下的运营面,能够围绕 accounts、adclients、adunits、reports 和 adcode 做完整的程序化处理。 当前 OpenAPI 里最具体的抓手包括 "/accounts", "/accounts/{accountId}", and "/accounts/{accountId}/adclients",以及 "accounts", "adclients", and "associationsessions" 这些标签分组。

这让它很适合拿来枚举 host account 下的 ad clients、为 ad unit 生成 ad code,以及拉取 reports、custom channels 与 url channels 数据。spec 里能看到 "https://www.googleapis.com/auth/adsensehost" 这类 scope。

这是 Host 运营接口,不是面向普通 AdSense 站长的通用管理面 接口版本较老,为 v4.1

02

你可以做什么

  • 1枚举 host account 下的 ad clients
  • 2为 ad unit 生成 ad code
  • 3拉取 reports、custom channels 与 url channels 数据
03

优劣对比

优点

  • 资源面覆盖 accounts 到 adunits 的完整链路
  • adcode 端点很具体
  • scope 只有 adsensehost,权限模型简单

注意事项

  • 这是 Host 运营接口,不是面向普通 AdSense 站长的通用管理面
  • 接口版本较老,为 v4.1
04

示例请求

通用模板 — 实际 endpoint 请查阅文档替换 <endpoint>。
curl https://google.com/<endpoint> \
  -H "Authorization: Bearer $ACCESS_TOKEN"
05

快速开始

先准备 adsensehost scope 的 OAuth 令牌,按 accounts → adclients → adunits 的顺序验证资源层级,再测试 reports 和 adcode 生成路径。

06

技术细节

CORS: NoHTTPS: Yes注册: Yes开源: No
认证方式
oauth
计费
unknown
协议
REST
响应时间
321 ms
上次巡检
2026/5/12 07:37:30
07

标签

08

更多来自 Google 的 API