Method: accountSummaries.list

返回调用方可访问的所有帐号的摘要。

HTTP 请求

GET https://analyticsadmin.googleapis.com/v1beta/accountSummaries

网址采用 gRPC 转码语法。

查询参数

参数
pageSize

integer

要返回的 AccountSummary 资源数量上限。即使还有其他网页,该服务返回的页面数可能少于此值。如果未指定,则最多返回 50 项资源。最大值为 200;(较高的值将被强制转换为最大值)

pageToken

string

从之前的 accountSummaries.list 调用接收的页面令牌。提供此令牌以检索后续页面。进行分页时,提供给 accountSummaries.list 的所有其他参数必须与提供页面令牌的调用匹配。

请求正文

请求正文必须为空。

响应正文

accountSummaries.list RPC 的响应消息。

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

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

object (AccountSummary)

来电者有权访问的所有帐号的帐号摘要。

nextPageToken

string

可作为 pageToken 发送并用于检索下一页的令牌。如果省略此字段,则不存在后续页面。

授权范围

需要以下 OAuth 范围之一:

  • https://www.googleapis.com/auth/analytics.readonly
  • https://www.googleapis.com/auth/analytics.edit

AccountSummary

一种虚拟资源,表示帐号及其所有子级 GA4 媒体资源的概览。

JSON 表示法
{
  "name": string,
  "account": string,
  "displayName": string,
  "propertySummaries": [
    {
      object (PropertySummary)
    }
  ]
}
字段
name

string

此帐号摘要的资源名称。格式:accountSummaries/{account_id}示例:“accountSummaries/1000”

account

string

此帐号摘要所引用帐号的资源名称。格式:accounts/{account_id} 示例:“accounts/1000”

displayName

string

此帐号摘要中提及的帐号的显示名。

propertySummaries[]

object (PropertySummary)

此账号的子账号的摘要列表。

PropertySummary

表示 GA4 媒体资源元数据的虚拟资源。

JSON 表示法
{
  "property": string,
  "displayName": string,
  "propertyType": enum (PropertyType),
  "parent": string
}
字段
property

string

此属性摘要所引用的媒体资源的资源名称。格式:properties/{property_id},示例:“properties/1000”

displayName

string

此媒体资源摘要中引用的媒体资源的显示名称。

propertyType

enum (PropertyType)

属性的属性类型。

parent

string

此属性的逻辑父项的资源名称。

注意:Property-Moving 界面可用于更改父级。格式:accounts/{account}、properties/{property}。示例:“accounts/100”、“properties/200”