Method: properties.acknowledgeUserDataCollection
指定したプロパティでのユーザーデータ収集の条件に同意します。
MeasurementProtocolSecret リソースを作成する前に、この確認応答を(Google アナリティクスの UI またはこの API で)完了する必要があります。
HTTP リクエスト
POST https://analyticsadmin.googleapis.com/v1alpha/{property=properties/*}:acknowledgeUserDataCollection
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
property |
string
必須。ユーザーデータの収集を承認するプロパティ。
|
リクエスト本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"acknowledgement": string
} |
フィールド |
acknowledgement |
string
必須。このメソッドの呼び出し元がユーザーデータの収集条件を理解していることを示す確認応答。 このフィールドには、次の値を指定する必要があります。「私は、エンドユーザーのデータの収集と処理に関して、私のサイトやアプリのプロパティから Google アナリティクスが収集したアクセス情報とこのようなデータとの関連付けを行うことを含め、エンドユーザーから必要なプライバシーの開示と権限を得ていることを了承します。」
|
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の 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"]]