ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Method: accounts.accessBindings.create
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างการเชื่อมโยงการเข้าถึงในบัญชีหรือพร็อพเพอร์ตี้
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ รูปแบบ: - accounts/{account} - พร็อพเพอร์ตี้/{property}
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ AccessBinding
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ AccessBinding
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.manage.users
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eConnected Site Tag configuration uses JSON format for data representation.\u003c/p\u003e\n"],["\u003cp\u003eThis configuration requires a user-friendly display name (under 256 characters) and a unique Tag ID for event forwarding.\u003c/p\u003e\n"],["\u003cp\u003eThe Tag ID is essential for identifying the destination for event data and is also known as Measurement ID or G-ID.\u003c/p\u003e\n"]]],["This outlines creating an access binding for an account or property via a `POST` request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings`. The `parent` path parameter, formatted as `accounts/{account}` or `properties/{property}`, is required. The request body should contain an `AccessBinding` instance, and a successful response will also contain a new `AccessBinding` instance. This operation requires the `https://www.googleapis.com/auth/analytics.manage.users` authorization scope.\n"],null,["# Method: accounts.accessBindings.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 an access binding on an account or property.\n\n### HTTP request\n\n`POST https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------|\n| `parent` | `string` Required. Formats: - accounts/{account} - properties/{property} |\n\n### Request body\n\nThe request body contains an instance of [AccessBinding](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings#AccessBinding).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AccessBinding](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings#AccessBinding).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.manage.users`"]]