Method: accountSummaries.list

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

HTTP 请求

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

网址采用 gRPC 转码语法。

查询参数

参数
pageSize

integer

要返回的 AccountSummary 资源数上限。即使返回更多网页,服务返回的值也可能少于此值。如果未指定,则最多返回 50 个资源。最大值为 200;(大于此值将强制转换为最大值)

pageToken

string

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

请求正文

请求正文必须为空。

响应正文

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

ListAccountSummaries 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

帐号摘要

一种虚拟资源,代表帐号及其所有子级 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)

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

属性摘要

表示 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

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

注意:属性移动界面可用于更改父项。格式:accounts/{account}、properties/{property}