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

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

displayName

string

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

propertyType

enum (PropertyType)

属性的属性类型。

parent

string

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

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