此 API 功能按资源类型组织。每个资源类型包含一个或多个表示和一个或多个方法。
标准参数中描述了适用于所有 AdSense Host API v4(及更高版本)操作的查询参数。
资源类型
- Accounts
- Accounts.adclients
- Accounts.adunits
- Accounts.reports
- Adclients
- Associationsessions
- Customchannels
- Reports
- Urlchannels
Accounts
有关 Accounts 资源的详细信息,请参阅资源表示页面。
方法 | HTTP 请求 | 说明 |
---|---|---|
与 https://www.googleapis.com/adsensehost/v4.1 相关的 URI | ||
get |
GET /accounts/accountId
|
获取选定的关联 AdSense 帐户的相关信息。 |
list |
GET /accounts
|
按广告客户 ID 列出与此 AdSense 帐户关联的托管帐户。 |
Accounts.adclients
有关 Accounts.adclients 资源的详细信息,请参阅资源表示页面。
方法 | HTTP 请求 | 说明 |
---|---|---|
与 https://www.googleapis.com/adsensehost/v4.1 相关的 URI | ||
get |
GET /accounts/accountId/adclients/adClientId
|
获取指定发布商 AdSense 帐户中某个广告客户的相关信息。 |
list |
GET /accounts/accountId/adclients
|
列出指定托管帐户中的所有托管广告客户。 |
Accounts.adunits
有关 Accounts.adunits 资源的详细信息,请参阅资源表示页面。
方法 | HTTP 请求 | 说明 |
---|---|---|
与 https://www.googleapis.com/adsensehost/v4.1 相关的 URI | ||
delete |
DELETE /accounts/accountId/adclients/adClientId/adunits/adUnitId
|
删除指定发布商 AdSense 帐户中的指定广告单元。 |
get |
GET /accounts/accountId/adclients/adClientId/adunits/adUnitId
|
获取此 AdSense 帐户中的指定托管广告单元。 |
getAdCode |
GET /accounts/accountId/adclients/adClientId/adunits/adUnitId/adcode
|
获取指定广告单元的广告代码,随附指定的托管自定义渠道。 |
insert |
POST /accounts/accountId/adclients/adClientId/adunits
|
将提供的广告单元插入指定的发布商 AdSense 帐户。 |
list |
GET /accounts/accountId/adclients/adClientId/adunits
|
列出指定发布商 AdSense 帐户中的所有广告单元。 |
patch |
PATCH /accounts/accountId/adclients/adClientId/adunits
|
在指定的发布商 AdSense 帐户中更新提供的广告单元。此方法支持补丁语义。 |
update |
PUT /accounts/accountId/adclients/adClientId/adunits
|
在指定的发布商 AdSense 帐户中更新提供的广告单元。 |
Accounts.reports
有关 Accounts.reports 资源的详细信息,请参阅资源表示页面。
方法 | HTTP 请求 | 说明 |
---|---|---|
与 https://www.googleapis.com/adsensehost/v4.1 相关的 URI | ||
generate |
GET /accounts/accountId/reports
|
根据查询参数中发送的报告请求生成 AdSense 报告。返回 JSON 作为结果;要获取 CSV 格式的输出,请将“alt=csv”指定为查询参数。 |
Adclients
有关 Adclients 资源的详细信息,请参阅资源表示页面。
方法 | HTTP 请求 | 说明 |
---|---|---|
与 https://www.googleapis.com/adsensehost/v4.1 相关的 URI | ||
get |
GET /adclients/adClientId
|
获取托管 AdSense 帐户中某个广告客户的相关信息。 |
list |
GET /adclients
|
列出此 AdSense 帐户中的所有托管广告客户。 |
Associationsessions
有关 Associationsessions 资源的详细信息,请参阅资源表示页面。
方法 | HTTP 请求 | 说明 |
---|---|---|
与 https://www.googleapis.com/adsensehost/v4.1 相关的 URI | ||
start |
GET /associationsessions/start
|
创建关联会话以启动与 AdSense 用户的关联。 |
verify |
GET /associationsessions/verify
|
当关联回调从 AdSense 注册返回后,确认关联会话。 |
Customchannels
有关 Customchannels 资源的详细信息,请参阅资源表示页面。
方法 | HTTP 请求 | 说明 |
---|---|---|
与 https://www.googleapis.com/adsensehost/v4.1 相关的 URI | ||
delete |
DELETE /adclients/adClientId/customchannels/customChannelId
|
删除托管 AdSense 帐户中的特定自定义渠道。 |
get |
GET /adclients/adClientId/customchannels/customChannelId
|
获取来自托管 AdSense 帐户的特定自定义渠道。 |
insert |
POST /adclients/adClientId/customchannels
|
在托管 AdSense 帐户中添加新的自定义渠道。 |
list |
GET /adclients/adClientId/customchannels
|
列出此 AdSense 帐户中的所有托管自定义渠道。 |
patch |
PATCH /adclients/adClientId/customchannels
|
更新托管 AdSense 帐户中的自定义渠道。此方法支持补丁语义。 |
update |
PUT /adclients/adClientId/customchannels
|
更新托管 AdSense 帐户中的自定义渠道。 |
Reports
有关 Reports 资源的详细信息,请参阅资源表示页面。
方法 | HTTP 请求 | 说明 |
---|---|---|
与 https://www.googleapis.com/adsensehost/v4.1 相关的 URI | ||
generate |
GET /reports
|
根据查询参数中发送的报告请求生成 AdSense 报告。返回 JSON 作为结果;要获取 CSV 格式的输出,请将“alt=csv”指定为查询参数。 |
Urlchannels
有关 Urlchannels 资源的详细信息,请参阅资源表示页面。
方法 | HTTP 请求 | 说明 |
---|---|---|
与 https://www.googleapis.com/adsensehost/v4.1 相关的 URI | ||
delete |
DELETE /adclients/adClientId/urlchannels/urlChannelId
|
删除托管 AdSense 帐户中的网址渠道。 |
insert |
POST /adclients/adClientId/urlchannels
|
在托管 AdSense 帐户中添加新的网址渠道。 |
list |
GET /adclients/adClientId/urlchannels
|
列出此托管 AdSense 帐户中的所有托管网址渠道。 |