Method: accounts.adSources.list

列出广告来源。

HTTP 请求

GET https://admob.googleapis.com/v1beta/{parent=accounts/*}/adSources

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。拥有此广告来源集合的父级。格式:accounts/{publisherId}

查询参数

参数
pageSize

integer

要返回的广告来源数量上限。如果未指定或 0,则最多返回 10,000 个广告来源。最大值为 20,000;大于 10,000 的值将被强制转换为 20,000。

pageToken

string

从之前的 adSources.list 调用接收的页面令牌。利用其进行后续页面检索。

请求正文

请求正文必须为空。

响应正文

ListAdSourcesRequest 的响应。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "adSources": [
    {
      object (AdSource)
    }
  ],
  "nextPageToken": string
}
字段
adSources[]

object (AdSource)

广告来源。

nextPageToken

string

用于在 ListAdSourcesRequest 中设置 pageToken 以检索下一页。如果省略此字段,则不存在后续页面。

授权范围

需要以下 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

string

此广告来源的资源名称。

格式为:accounts/{publisherId}/adSources/{adSourceId}

adSourceId

string

此广告来源的 ID。

title

string

此广告来源的显示名称。