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 และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-08 UTC
[null,null,["อัปเดตล่าสุด 2024-09-08 UTC"],[[["This API endpoint is used to acknowledge the terms of user data collection for a specified Google Analytics property."],["Acknowledgement is required before creating MeasurementProtocolSecret resources and involves confirming understanding of data collection and user privacy."],["The request must include a specific acknowledgement phrase stating the user understands the implications of data collection and has necessary user consent."],["The API uses a POST request to a specific endpoint and includes the property ID in the path."],["Upon successful acknowledgement, the response body will be empty."]]],["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"]]