ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Method: properties.createRollupProperty
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างพร็อพเพอร์ตี้ภาพรวมและลิงก์แหล่งที่มาของพร็อพเพอร์ตี้ภาพรวมทั้งหมด
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:createRollupProperty
URL ใช้ไวยากรณ์การแปลง gRPC
เนื้อหาของคำขอ
เนื้อหาของคำขอมีข้อมูลที่มีโครงสร้างต่อไปนี้
การแสดง JSON |
{
"rollupProperty": {
object (Property )
},
"sourceProperties": [
string
]
} |
ช่อง |
rollupProperty |
object (Property )
ต้องระบุ พร็อพเพอร์ตี้ภาพรวมที่จะสร้าง
|
sourceProperties[] |
string
ไม่บังคับ ชื่อทรัพยากรของพร็อพเพอร์ตี้ที่จะเป็นแหล่งที่มาของพร็อพเพอร์ตี้ภาพรวมที่สร้างขึ้น
|
เนื้อหาการตอบกลับ
ข้อความตอบกลับสำหรับ property.createRollupProperty RPC
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
rollupProperty |
object (Property )
พร็อพเพอร์ตี้ภาพรวมที่สร้างขึ้น
|
rollupPropertySourceLinks[] |
object (RollupPropertySourceLink )
ลิงก์แหล่งที่มาของพร็อพเพอร์ตี้ภาพรวมที่สร้าง
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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`"]]