ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Method: properties.acknowledgeUserDataCollection
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รับทราบข้อกำหนดในการเก็บรวบรวมข้อมูลผู้ใช้สำหรับพร็อพเพอร์ตี้ที่ระบุ
โดยการรับทราบนี้ต้องเสร็จสมบูรณ์ (ใน UI ของ Google Analytics หรือผ่าน API นี้) ก่อนที่จะสร้างทรัพยากร MeasurementProtocolSecret
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{property=properties/*}:acknowledgeUserDataCollection
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
property |
string
ต้องระบุ พร็อพเพอร์ตี้ที่รับทราบการเก็บรวบรวมข้อมูลผู้ใช้
|
เนื้อหาของคำขอ
เนื้อหาของคำขอมีข้อมูลที่มีโครงสร้างต่อไปนี้
การแสดง JSON |
{
"acknowledgement": string
} |
ช่อง |
acknowledgement |
string
ต้องระบุ การรับทราบว่าผู้เรียกใช้วิธีการนี้เข้าใจข้อกําหนดในการเก็บรวบรวมข้อมูลผู้ใช้ ช่องนี้ต้องมีค่าที่แน่นอน "ฉันรับทราบว่าฉันได้รับสิทธิ์และการเปิดเผยข้อมูลความเป็นส่วนตัวที่จำเป็นจากผู้ใช้ปลายทางเพื่อเก็บรวบรวมและประมวลผลข้อมูลผู้ใช้ ซึ่งรวมถึงการเชื่อมโยงข้อมูลดังกล่าวกับข้อมูลการเข้าชมที่ Google Analytics เก็บรวบรวมจากพร็อพเพอร์ตี้เว็บไซต์และ/หรือแอปของฉัน"
|
เนื้อหาการตอบกลับ
หากสำเร็จ เนื้อหาการตอบกลับจะว่างเปล่า
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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 API endpoint is used to acknowledge the terms of user data collection for a specified Google Analytics property.\u003c/p\u003e\n"],["\u003cp\u003eAcknowledgement is required before creating MeasurementProtocolSecret resources and involves confirming understanding of data collection and user privacy.\u003c/p\u003e\n"],["\u003cp\u003eThe request must include a specific acknowledgement phrase stating the user understands the implications of data collection and has necessary user consent.\u003c/p\u003e\n"],["\u003cp\u003eThe API uses a POST request to a specific endpoint and includes the property ID in the path.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful acknowledgement, the response body will be empty.\u003c/p\u003e\n"]]],["The core content outlines the process for acknowledging user data collection terms via an API. A `POST` HTTP request to a specific URL is required, including the `property` path parameter. The request body must contain a JSON with the exact `acknowledgement` string confirming understanding of data collection terms. A successful request results in an empty response, requiring `analytics.edit` authorization scope. The acknowledgment must happen to allow resource creation.\n"],null,["# Method: properties.acknowledgeUserDataCollection\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nAcknowledges the terms of user data collection for the specified property.\n\nThis acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.\n\n### HTTP request\n\n`POST https://analyticsadmin.googleapis.com/v1alpha/{property=properties/*}:acknowledgeUserDataCollection`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|--------------------------------------------------------------------------------|\n| `property` | `string` Required. The property for which to acknowledge user data collection. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------|\n| ``` { \"acknowledgement\": string } ``` |\n\n| Fields ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `acknowledgement` | `string` Required. An acknowledgement that the caller of this method understands the terms of user data collection. This field must contain the exact value: \"I acknowledge that I have the necessary privacy disclosures and rights from my end users for the collection and processing of their data, including the association of such data with the visitation information Google Analytics collects from my site and/or app property.\" |\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.edit`"]]