试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
Method: properties.createRollupProperty
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
POST https://analyticsadmin.googleapis.com/v1alpha/properties:createRollupProperty
网址采用 gRPC 转码语法。
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"rollupProperty": {
object (Property )
},
"sourceProperties": [
string
]
} |
字段 |
rollupProperty |
object (Property )
必需。要创建的总览媒体资源。
|
sourceProperties[] |
string
可选。媒体资源的资源名称,将作为所创建总览媒体资源的来源媒体资源。
|
响应正文
Properties.createRollupProperty RPC 的响应消息。
如果成功,响应正文将包含结构如下的数据:
字段 |
rollupProperty |
object (Property )
已创建的总览媒体资源。
|
rollupPropertySourceLinks[] |
object (RollupPropertySourceLink )
已创建的总览媒体资源来源关联。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/analytics.edit
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis documentation outlines the process for creating a roll-up property and its source links using the \u003ccode\u003ecreateRollupProperty\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires defining the roll-up property and optionally specifying source properties.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution returns the newly created roll-up property and its source links.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/analytics.edit\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document details how to create a roll-up property and its source links via a `POST` request to `https://analyticsadmin.googleapis.com/v1alpha/properties:createRollupProperty`. The request body includes a `rollupProperty` object and an optional array of `sourceProperties`. The successful response contains the created `rollupProperty` and an array of `rollupPropertySourceLinks`. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. The document provides the JSON structures for both request and response.\n"],null,["# Method: properties.createRollupProperty\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.CreateRollupPropertyResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreate a roll-up property and all roll-up property source links.\n\n### HTTP request\n\n`POST https://analyticsadmin.googleapis.com/v1alpha/properties:createRollupProperty`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"rollupProperty\": { object (/analytics/devguides/config/admin/v1/rest/v1alpha/properties#Property) }, \"sourceProperties\": [ string ] } ``` |\n\n| Fields ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| `rollupProperty` | `object (`[Property](/analytics/devguides/config/admin/v1/rest/v1alpha/properties#Property)`)` Required. The roll-up property to create. |\n| `sourceProperties[]` | `string` Optional. The resource names of properties that will be sources to the created roll-up property. |\n\n### Response body\n\nResponse message for properties.createRollupProperty RPC.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"rollupProperty\": { object (/analytics/devguides/config/admin/v1/rest/v1alpha/properties#Property) }, \"rollupPropertySourceLinks\": [ { object (/analytics/devguides/config/admin/v1/rest/v1alpha/properties.rollupPropertySourceLinks#RollupPropertySourceLink) } ] } ``` |\n\n| Fields ||\n|-------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `rollupProperty` | `object (`[Property](/analytics/devguides/config/admin/v1/rest/v1alpha/properties#Property)`)` The created roll-up property. |\n| `rollupPropertySourceLinks[]` | `object (`[RollupPropertySourceLink](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.rollupPropertySourceLinks#RollupPropertySourceLink)`)` The created roll-up property source links. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.edit`"]]