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
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.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["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"]]