ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Method: properties.rollupPropertySourceLinks.create
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างลิงก์แหล่งที่มาของพร็อพเพอร์ตี้ภาพรวม เฉพาะพร็อพเพอร์ตี้ภาพรวมเท่านั้นที่สามารถมีลิงก์แหล่งที่มาได้ ดังนั้นวิธีการนี้จะแสดงข้อผิดพลาดหากใช้ในพร็อพเพอร์ตี้ประเภทอื่นๆ
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/rollupPropertySourceLinks
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ รูปแบบ: พร็อพเพอร์ตี้/{property_id} ตัวอย่าง: พร็อพเพอร์ตี้/1234
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ RollupPropertySourceLink
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ 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\u003eCreates a source link for roll-up properties to link with original properties.\u003c/p\u003e\n"],["\u003cp\u003eUses an HTTP POST request with specific path and request body parameters.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return a newly created \u003ccode\u003eRollupPropertySourceLink\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003eanalytics.edit\u003c/code\u003e authorization scope for execution.\u003c/p\u003e\n"]]],["This document details how to create a roll-up property source link via a `POST` request to the specified URL: `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/rollupPropertySourceLinks`. The `parent` path parameter, formatted as `properties/{property_id}`, is required. The request body should contain a `RollupPropertySourceLink` instance, and a successful response will return a newly created `RollupPropertySourceLink`. This action is only for roll-up properties and requires the `analytics.edit` OAuth scope.\n"],null,["# Method: properties.rollupPropertySourceLinks.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.\n\n### HTTP request\n\n`POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/rollupPropertySourceLinks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------|\n| `parent` | `string` Required. Format: properties/{property_id} Example: properties/1234 |\n\n### Request body\n\nThe request body contains an instance of [RollupPropertySourceLink](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.rollupPropertySourceLinks#RollupPropertySourceLink).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [RollupPropertySourceLink](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.rollupPropertySourceLinks#RollupPropertySourceLink).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.edit`"]]