upsert 方法会返回用户删除请求资源,并设置 deletionRequestTime 字段。deletionRequestTime 字段会显示 Google Analytics 收到删除请求的时间。
一旦请求删除,则与该用户 ID 关联的数据将在 72 小时内从“个人用户”报告中移除,然后在下一个删除流程中从 Google Analytics 服务器中删除。删除流程安排为每两个月进行一次。如果您已将用户数据导出到 Google Analytics 之外,我们建议您先在 Google Analytics 中将其删除。
[null,null,["最后更新时间 (UTC):2024-11-07。"],[[["The Google Analytics User Deletion API allows you to delete data associated with a specific user ID, helping safeguard user data."],["Data is removed from the Individual User Report within 72 hours of the request and permanently deleted from Analytics servers within two months."],["The API requires the `https://www.googleapis.com/auth/analytics.user.deletion` OAuth 2.0 scope and utilizes the `upsert` method for deletion requests."],["Supported user ID types for deletion include `CLIENT_ID`, `USER_ID`, and `APP_INSTANCE_ID`, requiring separate requests for each ID associated with a user."],["It's crucial to note that the API doesn't remove previously aggregated data or data exported to external platforms like BigQuery, requiring separate deletion processes."]]],["The Google Analytics User Deletion API allows deletion of user data using the `upsert` method with a `userDeletionRequest`. Specify the user's ID ( `CLIENT_ID`, `USER_ID`, or `APP_INSTANCE_ID`) and its type. Each ID requires a separate request. Data is removed from the Individual User Report within 72 hours and from Analytics servers within two months, but not from aggregated reports or external exports. OAuth 2.0 scope `https://www.googleapis.com/auth/analytics.user.deletion` is necessary.\n"]]