Method: properties.acknowledgeUserDataCollection
Menyatakan persyaratan pengumpulan data pengguna untuk properti yang ditentukan.
Persetujuan ini harus diselesaikan (baik di UI Google Analytics atau melalui API ini) sebelum resource MeasurementProtocolSecret dapat dibuat.
Permintaan HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{property=properties/*}:acknowledgeUserDataCollection
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
property |
string
Wajib. Properti yang akan menerima pengumpulan data pengguna.
|
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON |
{
"acknowledgement": string
} |
Kolom |
acknowledgement |
string
Wajib. Konfirmasi bahwa pemanggil metode ini memahami persyaratan pengumpulan data pengguna. Kolom ini harus berisi nilai persis: "Saya menyatakan bahwa saya memiliki hak dan pengungkapan privasi yang diperlukan dari pengguna akhir untuk pengumpulan dan pemrosesan data mereka, termasuk pengaitan data tersebut dengan informasi kunjungan yang dikumpulkan Google Analytics dari properti situs dan/atau aplikasi saya".
|
Isi respons
Jika berhasil, isi respons akan kosong.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/analytics.edit
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-08 UTC.
[null,null,["Terakhir diperbarui pada 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"]]