Method: accounts.list
HTTP 请求
GET https://admob.googleapis.com/v1/accounts
网址采用 gRPC 转码语法。
查询参数
参数 |
pageSize |
integer
要返回的账号数量上限。
|
pageToken |
string
最后一个 ListPublisherAccountsResponse 返回的值;表示这是先前 accounts.list 调用的延续,并且系统应返回下一页数据。
|
响应正文
对发布商账号列表请求的响应。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"account": [
{
object (PublisherAccount )
}
],
"nextPageToken": string
} |
字段 |
account[] |
object (PublisherAccount )
客户端凭据可以访问的发布商。
|
nextPageToken |
string
如果不为空,则表示可能还有更多账号可以处理该请求;则必须在新的 ListPublisherAccountsRequest 中传递此值。
|
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/admob.readonly
https://www.googleapis.com/auth/admob.report
如需了解详情,请参阅 OAuth 2.0 概览。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-14。
[null,null,["最后更新时间 (UTC):2024-10-14。"],[[["Lists the most recently signed-in AdMob publisher account and provides pagination for accessing more accounts."],["Request an account list with optional parameters to specify the maximum number of accounts and page tokens for continuation."],["The response includes an array of publisher accounts and a token for retrieving the next page if available."],["Requires authorization with specific OAuth scopes for read-only or report access to AdMob data."]]],["This document details how to retrieve a list of AdMob publisher accounts. Use a `GET` request to `https://admob.googleapis.com/v1/accounts`. The request body should be empty. Optional `pageSize` and `pageToken` query parameters control the number of accounts returned and pagination. The response body includes an array of account objects and an optional `nextPageToken` for further data retrieval. Access requires specific OAuth scopes: `admob.readonly` or `admob.report`.\n"]]