Method: properties.acknowledgeUserDataCollection
Xác nhận các điều khoản về việc thu thập dữ liệu người dùng cho tài sản đã chỉ định.
Bạn phải hoàn tất quy trình xác nhận này (trong giao diện người dùng Google Analytics hoặc thông qua API này) trước khi có thể tạo các tài nguyên Measurement ProtocolSecret.
Yêu cầu HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{property=properties/*}:acknowledgeUserDataCollection
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
property |
string
Bắt buộc. Tài sản cần xác nhận việc thu thập dữ liệu người dùng.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"acknowledgement": string
} |
Trường |
acknowledgement |
string
Bắt buộc. Thông báo xác nhận rằng phương thức gọi của phương thức này hiểu các điều khoản về việc thu thập dữ liệu người dùng. Trường này phải chứa giá trị chính xác: "Tôi xác nhận rằng tôi có thông tin công bố cần thiết về quyền riêng tư và các quyền từ người dùng cuối đối với việc thu thập và xử lý dữ liệu của họ, bao gồm cả mối liên kết của dữ liệu đó với thông tin về những lượt truy cập mà Google Analytics thu thập từ trang web và/hoặc thuộc tính ứng dụng của tôi".
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ trống.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/analytics.edit
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-08 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]