Method: properties.acknowledgeUserDataCollection
确认指定媒体资源的用户数据收集条款。
您必须先完成此确认(在 Google Analytics [分析] 界面中或通过此 API),然后才能创建 MeasurementProtocolSecret 资源。
HTTP 请求
POST https://analyticsadmin.googleapis.com/v1beta/{property=properties/*}:acknowledgeUserDataCollection
网址采用 gRPC 转码语法。
路径参数
参数 |
property |
string
必需。要为其确认用户数据收集的媒体资源。
|
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"acknowledgement": string
} |
字段 |
acknowledgement |
string
必需。确认此方法的调用方了解用户数据收集条款。 此字段必须包含以下确切值:“我确认,我已进行了必要的隐私权披露声明并获得了最终用户的授权,可收集和处理最终用户的数据,包括将此类数据与 Google Analytics 从我的网站和/或应用媒体资源收集的访问信息相关联。”
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/analytics.edit
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
[null,null,["最后更新时间 (UTC):2024-11-08。"],[[["This API endpoint acknowledges user data collection for a specified Google Analytics property."],["It requires a specific acknowledgement phrase confirming the user's understanding of data collection terms."],["Users need the `analytics.edit` OAuth scope for authorization."],["A successful request results in an empty response body."],["The request body includes an `acknowledgement` field containing the required phrase."]]],["This API endpoint `acknowledgeUserDataCollection` requires a POST HTTP request to acknowledge user data collection for a specified property. The request URL includes a required `property` path parameter. The request body needs a JSON object with an `acknowledgement` field. This field must contain a specific string confirming understanding of data collection terms. Successful requests return an empty response. Authorization requires the `analytics.edit` scope. The action of acknowledgment is required before creating MeasurementProtocolSecret resources.\n"]]