My Activity 架构参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
导出的对象:活动记录
导出的对象表示:您在不同 Google 产品中的活动记录(带时间戳)
对象以以下格式导出:HTML JSON
导出的对象包含以下字段:
* 上述字段代表用于解析和提取相关数据导出内容的关键数据字段。导出操作中生成的数据字段因服务和用户操作而异,有些服务或操作不会生成上述每个数据字段。
|
数据字段 * |
字段定义 |
数据字段类型 |
header |
卡片标题,通常为应用名称、域名或产品名称。
示例: YouTube:YouTube 搜索:域名 广告:广告 我的广告中心:我的广告中心 地图:Google 地图 Google Play:Google Play
|
字符串 |
title |
用户活动的概要摘要。
示例: YouTube:观看了...
订阅了...访问过 ... 搜索:搜索过 ...、查看过 ...、访问过 ... 广告:访问过、查看过 我的广告中心:选择了多展示某广告主投放的广告、选择了少展示某广告主投放的广告、屏蔽了某广告主投放的广告、赞过某广告主投放的广告 Google 地图:查看过...周边区域、查询了...、特定地址的路线、搜索了... Google Play:访问了...、搜索过...
已安装..., 阅读...
|
字符串 |
titleUrl |
标题中使用的网址。
示例: YouTube:YouTube 网址 搜索:搜索过、访问过、查看过的网址 广告:着陆页网址、商家名称 我的广告中心:主题 Google 地图:包含位置坐标的网址 Google Play:Play 商店实体网址
|
字符串 |
字幕 |
标题下方显示的详细用户活动。
示例: YouTube:
频道信息名称和网址、...
|
字符串 |
说明 |
有助于说明用户执行的活动的额外信息。 |
字符串 |
时间 |
用户执行活动的时间和日期。
示例: Google 地图:
2023-08-23T03:49:28.734Z
|
字符串 |
产品 |
这些数据所属的产品。
示例: YouTube:YouTube 搜索:搜索 广告:Google Ads 我的广告中心:广告 Google 地图:Google 地图 Google Play:Google Play 商店/游戏/图书
|
list |
详细信息 |
用于显示与用户活动来源相关的信息,例如用户活动是否是用户与广告或应用互动的结果。
示例: YouTube:
“来自 Google Ads”
|
字符串 |
activityControls |
显示会将数据保存到导出数据所属的用户 Google 账号中的 Google 数据收集设置(例如“位置记录”和“网络与应用活动记录”)。
示例: YouTube:YouTube 观看记录、YouTube 搜索记录 搜索:网络与应用活动记录 地图:网络与应用活动记录 Google Play:Google Play 活动
|
字符串 |
locationInfos |
与此活动相关联的地点。 |
字符串 |
imageFile |
图片附件的本地文件名。 |
字符串 |
audioFiles |
音频附件的本地文件名列表。 |
list |
attachedFiles |
附件本地文件名的列表。 |
list |
导出的对象:图片附件
导出的对象表示:与您的活动记录相关的图片
对象以以下格式导出:JPEG PNG WEBP
* 上述字段代表用于解析和提取相关数据导出内容的关键数据字段。导出操作中生成的数据字段因服务和用户操作而异,有些服务或操作不会生成上述每个数据字段。
|
|
|
|
导出的对象:音频附件
导出的对象表示:与您的活动记录相关的音频文件
对象以以下格式导出:MPEG
* 上述字段代表用于解析和提取相关数据导出内容的关键数据字段。导出操作中生成的数据字段因服务和用户操作而异,有些服务或操作不会生成上述每个数据字段。
|
|
|
|
导出的对象:CSV 附件
导出的对象表示:与您的活动记录相关的 CSV 文件
对象以以下格式导出:CSV
* 上述字段代表用于解析和提取相关数据导出内容的关键数据字段。导出操作中生成的数据字段因服务和用户操作而异,有些服务或操作不会生成上述每个数据字段。
|
|
|
|
一个表,表示资源组及其随附导出的对象。
资源组 * |
说明 |
导出的对象 |
时间过滤条件说明 |
myactivity.youtube |
此资源组包含 YouTube 活动数据,包括 YouTube 上的广告互动数据。
|
活动记录 图片附件 音频附件 CSV 附件
|
用户执行活动的时间戳。 |
myactivity.maps |
此资源组包含 Google 地图活动的数据,包括 Google 地图上的广告互动数据。
|
活动记录 图片附件 音频附件 CSV 附件
|
用户执行活动的时间戳。 |
myactivity.search |
此资源组包含 Google 搜索活动的数据,包括 Google 搜索上的广告互动。
|
活动记录 图片附件 音频附件 CSV 附件
|
用户执行活动的时间戳。 |
myactivity.myadcenter |
此资源组包含“我的广告中心”活动记录。 |
活动记录 图片附件 音频附件 CSV 附件
|
用户执行活动的时间戳。 |
myactivity.shopping |
此资源组包含购物活动的数据,包括 Google 购物上的广告互动数据。
|
活动记录 图片附件 音频附件 CSV 附件
|
用户执行活动的时间戳。 |
myactivity.play |
此资源组包含 Google Play 活动数据,包括 Google Play 上的广告互动数据。
|
活动记录 图片附件 音频附件 CSV 附件
|
用户执行活动的时间戳。 |
* 如需获取特定资源组的 OAuth 范围名称,请将“https://www.googleapis.com/auth/dataportability”附加到资源组。例如,“myactivity.search”资源组的 OAuth 范围名称为“https://www.googleapis.com/auth/dataportability.myactivity.search”。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eTakeout exports Google product activity data in HTML or JSON formats, such as YouTube watch history or Google Maps searches.\u003c/p\u003e\n"],["\u003cp\u003eThis data includes activity records with details like timestamps, descriptions, and related images or audio.\u003c/p\u003e\n"],["\u003cp\u003eUsers can access their activity records categorized by product, such as YouTube, Maps, Search, My Ad Center, Shopping and Play.\u003c/p\u003e\n"],["\u003cp\u003eExported data may also include CSV attachments related to user activity.\u003c/p\u003e\n"],["\u003cp\u003eThe data is organized into resource groups accessible through OAuth scopes, offering granular control over data sharing.\u003c/p\u003e\n"]]],[],null,["# My Activity Schema Reference\n\n| Data Field \\* | Field Definition | Data Field Type |\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|\n| header | The card title that will typically be either an app name, domain name, or product name. Examples: YouTube: YouTube Search: Domain name Ads: Ads My Ad Center: My Ad Center Maps: Maps Google Play: Google Play | string |\n| title | High level summary of the user activity. Examples: YouTube: Watched..., Subscribed to..., Visited ... Search: Searched for ..., Viewed ..., Visited ... Ads: Visited, Viewed My Ad Center: Chose to see more ads from, Chose to see fewer ads from, Blocked an ad from, Liked an add from Maps: Viewed area around..., Directions to..., a specific address, Searched for... Google Play: Visited..., Searched..., Installed..., Read... | string |\n| titleUrl | Url used in the title. Examples: YouTube: youtube url Search: Searched, Visited, Viewed url Ads: landing site url, business name My Ad Center: topic Maps: url with location coordinates Google Play: Play Store entities url | string |\n| subtitles | Detailed user activity shown underneath the title. Examples: YouTube: Channel information name and url, ... | string |\n| description | Extra information that helps explain the activity taken by the user. | string |\n| time | Time and date the user did the activity. Examples: Maps: 2023-08-23T03:49:28.734Z | string |\n| products | The Products that this data is a part of. Examples: YouTube: Youtube Search: Search Ads: Google Ads My Ad Center: Ads Maps: Maps Google Play: Google Play Store/Games/Books | list |\n| details | Used to display information about where the user activity comes from, such as if the user activity was the result of the user interacting with an ad or app. Examples: YouTube: \"From Google Ads\" | string |\n| activityControls | Shows the Google data collection settings (like Location History and Web \\& App Activity) that save data in a user's Google account that the exported data is part of. Examples: YouTube: YouTube watch history, YouTube search history Search: Web App Activity Maps: Web App Activity Google Play: Google Play activities | string |\n| locationInfos | The location(s) associated with this activity. | string |\n| imageFile | The local file name for the image attachment. | string |\n| audioFiles | The list of local file names for the audio attachments. | list |\n| attachedFiles | The list of local file names for the attached files. | list |\n[Exported Object: Activity records\nExported Object represents: Timestamped records of your activity across different\nGoogle Products\nObject is exported in these formats: HTML JSON\nExported object has the following fields:]\n\n| | | |\n|---|---|---|\n[Exported Object: Image attachments\nExported Object represents: Images related to your activity records\nObject is exported in these formats: JPEG PNG WEBP]\n\n| | | |\n|---|---|---|\n[Exported Object: Audio attachments\nExported Object represents: Audio files related to your activity records\nObject is exported in these formats: MPEG]\n\n| | | |\n|---|---|---|\n[Exported Object: CSV attachments\nExported Object represents: CSV files related to your activity records\nObject is exported in these formats: CSV]\n\n| Resource Group \\* | Description | Exported Objects | Time Filter Description |\n|-----------------------|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|-----------------------------------------------|\n| myactivity.youtube | This resource group contains data for YouTube activity, including ad interactions on YouTube. | Activity records Image attachments Audio attachments CSV attachments | The timestamp when the user did the activity. |\n| myactivity.maps | This resource group contains data for Maps activity, including ad interactions on Maps. | Activity records Image attachments Audio attachments CSV attachments | The timestamp when the user did the activity. |\n| myactivity.search | This resource group contains data for Google Search activity, including ad interactions on Google Search. | Activity records Image attachments Audio attachments CSV attachments | The timestamp when the user did the activity. |\n| myactivity.myadcenter | This resource group contains My Ad Center activity. | Activity records Image attachments Audio attachments CSV attachments | The timestamp when the user did the activity. |\n| myactivity.shopping | This resource group contains data for Shopping activity, including ad interactions on Shopping. | Activity records Image attachments Audio attachments CSV attachments | The timestamp when the user did the activity. |\n| myactivity.play | This resource group contains data for Google Play activity, including ad interactions on Google Play. | Activity records Image attachments Audio attachments CSV attachments | The timestamp when the user did the activity. |\n[A table representing Resource Groups and the objects that are exported with it.]"]]