Method: properties.acknowledgeUserDataCollection
Potwierdza warunki zbierania danych użytkownika w przypadku określonej usługi.
Musisz to potwierdzić (w interfejsie Google Analytics lub za pomocą tego interfejsu API), zanim będzie można utworzyć zasoby MeasurementProtocolSecret.
Żądanie HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{property=properties/*}:acknowledgeUserDataCollection
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
property |
string
Wymagane. Usługa, w której przypadku potwierdzasz zbieranie danych użytkownika.
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Zapis JSON |
{
"acknowledgement": string
} |
Pola |
acknowledgement |
string
Wymagane. Potwierdzenie, że osoba wywołująca tę metodę rozumie warunki zbierania danych użytkownika. To pole musi zawierać dokładną wartość: „Potwierdzam uzyskanie od użytkowników niezbędnych zgód i uprawnień w zakresie zbierania i przetwarzania ich danych, w tym zgody na powiązanie takich danych ze zbieranymi przez Google Analytics informacjami o wizytach w mojej witrynie lub aplikacji”.
|
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie pusta.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/analytics.edit
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-08 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]