资源面覆盖 accounts 到 adunits 的完整链路
这是 Host 运营接口,不是面向普通 AdSense 站长的通用管理面
先准备 adsensehost scope 的 OAuth 令牌,按 accounts → adclients → adunits 的顺序验证资源层级,再测试 reports 和 adcode 生成路径。
可用率 · 30 天窗口
关于这个 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
你可以做什么
- 1枚举 host account 下的 ad clients
- 2为 ad unit 生成 ad code
- 3拉取 reports、custom channels 与 url channels 数据
优劣对比
优点
- 资源面覆盖 accounts 到 adunits 的完整链路
- adcode 端点很具体
- scope 只有 adsensehost,权限模型简单
注意事项
- 这是 Host 运营接口,不是面向普通 AdSense 站长的通用管理面
- 接口版本较老,为 v4.1
示例请求
curl https://google.com/<endpoint> \
-H "Authorization: Bearer $ACCESS_TOKEN"快速开始
先准备 adsensehost scope 的 OAuth 令牌,按 accounts → adclients → adunits 的顺序验证资源层级,再测试 reports 和 adcode 生成路径。
技术细节
- 认证方式
- oauth
- 计费
- unknown
- 协议
- REST
- 响应时间
- 321 ms
- 上次巡检
- 2026/5/12 07:37:30
更多来自 Google 的 API
Google Workspace Admin SDK API 程序化管理 Workspace 组织:用户、组、设备、域名、审计日志、组织单元。
AdMob API 可读取 accounts、apps、adUnits 与 adSources,并生成 mediation 与 network 报表。
Apigee API 可管理 API proxy、deployments、attributes 与 organizations,适合把 API 网关运维接入自动化流程。
Google BigQuery API 是 GCP 旗舰数据仓库的 REST 接口:执行 SQL 查询、管理 datasets/tables、流式插入、ML 内置。
Binary Authorization API 用于管理 attestors、IAM policy 与镜像验证流程,面向 GKE 和 Anthos 的发布门禁。
Business Profile Performance API 能拉取 location 指标时间序列和 search keyword impressions,服务 Google 商家资料分析。
Google Calendar API 让应用程序化创建、读取、更新日历事件,是日程类应用最常用的集成。
Chrome Management API 管理企业 Chrome 浏览器和 Chrome OS 设备:策略下发、扩展程序管控、用户活动报告。
