列出广告来源。
HTTP 请求
GET https://admob.googleapis.com/v1beta/{parent=accounts/*}/adSources
网址采用 gRPC 转码语法。
路径参数
| 参数 | |
|---|---|
| parent | 
 必需。拥有此广告来源集合的父级。格式:accounts/{publisherId} | 
查询参数
| 参数 | |
|---|---|
| pageSize | 
 要返回的广告来源的数量上限。如果未指定或 0,则最多返回 10,000 个广告来源。最大值为 20,000;高于 10,000 的值将被强制转换为 20,000。 | 
| pageToken | 
 从之前的  | 
请求正文
请求正文必须为空。
响应正文
对 ListAdSourcesRequest 的响应。
如果成功,响应正文将包含结构如下的数据:
| JSON 表示法 | 
|---|
| {
  "adSources": [
    {
      object ( | 
| 字段 | |
|---|---|
| adSources[] | 
 广告来源。 | 
| nextPageToken | 
 用于在  | 
授权范围
需要以下 OAuth 范围之一:
- https://www.googleapis.com/auth/admob.readonly
- https://www.googleapis.com/auth/admob.report
如需了解详情,请参阅 OAuth 2.0 概览。
AdSource
中介广告来源的定义。
| JSON 表示法 | 
|---|
| { "name": string, "adSourceId": string, "title": string } | 
| 字段 | |
|---|---|
| name | 
 此广告来源的资源名称。 格式为:accounts/{publisherId}/adSources/{adSourceId} | 
| adSourceId | 
 此广告来源的 ID。 | 
| title | 
 此广告来源的显示名称。 |