没有观众保留数据,只有来自 YouTube 分析的列标题 API
No audience retention data but columnHeaders from YouTube Analytics API
我无法从 https://developers.google.com/youtube/analytics/sample-requests#channel-audience-retention-reports
的示例请求中获取任何数据
我做错了什么 - 我正在关注 API 资源管理器 https://developers.google.com/apis-explorer/#p/youtubeAnalytics/v1/youtubeAnalytics.reports.query?metrics=audienceWatchRatio%252CrelativeRetentionPerformance&dimensions=elapsedVideoTimeRatio&filters=video%253D%253DMY_VIDEO_ID%253BaudienceType%253D%253DORGANIC&start-date=2014-05-01&end-date=2014-06-30&&ids=channel%253D%253DMY_CHANNEL_ID 中的示例,在我的频道上请求并过滤特定视频。我确实得到了成功的回应,但它基本上只是 columnHeaders
:
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": "elapsedVideoTimeRatio",
"columnType": "DIMENSION",
"dataType": "FLOAT"
},
{
"name": "audienceWatchRatio",
"columnType": "METRIC",
"dataType": "FLOAT"
},
{
"name": "relativeRetentionPerformance",
"columnType": "METRIC",
"dataType": "FLOAT"
}
]
}
试试这个。
假设您已经在 link you've provided 中提供了您的 channelID,因为您能够获取 ColumnHeaders 结果。
你可能错过了这个:
- 在过滤器文本字段中提供您上传的视频的视频 ID。例如 J78o42MAQhc.
- 将开始日期更改为您上传视频的实际日期。
然后验证并执行。
这是我得到的。
200
- Show headers -
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": "elapsedVideoTimeRatio",
"columnType": "DIMENSION",
"dataType": "FLOAT"
},
{
"name": "audienceWatchRatio",
"columnType": "METRIC",
"dataType": "FLOAT"
},
{
"name": "relativeRetentionPerformance",
"columnType": "METRIC",
"dataType": "FLOAT"
}
],
"rows": [
[
0.01,
1,
0.2780657051338946
],
[
0.02,
0.821917808219178,
0.22789225435683402
],
[
0.03,
0.7123287671232876,
0.1979482394027498
],
[
0.04,
0.5753424657534246,
0.19664082667236166
],
[
0.05,
0.4931506849315068,
0.21083662779019507
]
(more results)
...
我无法从 https://developers.google.com/youtube/analytics/sample-requests#channel-audience-retention-reports
的示例请求中获取任何数据我做错了什么 - 我正在关注 API 资源管理器 https://developers.google.com/apis-explorer/#p/youtubeAnalytics/v1/youtubeAnalytics.reports.query?metrics=audienceWatchRatio%252CrelativeRetentionPerformance&dimensions=elapsedVideoTimeRatio&filters=video%253D%253DMY_VIDEO_ID%253BaudienceType%253D%253DORGANIC&start-date=2014-05-01&end-date=2014-06-30&&ids=channel%253D%253DMY_CHANNEL_ID 中的示例,在我的频道上请求并过滤特定视频。我确实得到了成功的回应,但它基本上只是 columnHeaders
:
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": "elapsedVideoTimeRatio",
"columnType": "DIMENSION",
"dataType": "FLOAT"
},
{
"name": "audienceWatchRatio",
"columnType": "METRIC",
"dataType": "FLOAT"
},
{
"name": "relativeRetentionPerformance",
"columnType": "METRIC",
"dataType": "FLOAT"
}
]
}
试试这个。
假设您已经在 link you've provided 中提供了您的 channelID,因为您能够获取 ColumnHeaders 结果。
你可能错过了这个:
- 在过滤器文本字段中提供您上传的视频的视频 ID。例如 J78o42MAQhc.
- 将开始日期更改为您上传视频的实际日期。
然后验证并执行。
这是我得到的。
200
- Show headers -
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": "elapsedVideoTimeRatio",
"columnType": "DIMENSION",
"dataType": "FLOAT"
},
{
"name": "audienceWatchRatio",
"columnType": "METRIC",
"dataType": "FLOAT"
},
{
"name": "relativeRetentionPerformance",
"columnType": "METRIC",
"dataType": "FLOAT"
}
],
"rows": [
[
0.01,
1,
0.2780657051338946
],
[
0.02,
0.821917808219178,
0.22789225435683402
],
[
0.03,
0.7123287671232876,
0.1979482394027498
],
[
0.04,
0.5753424657534246,
0.19664082667236166
],
[
0.05,
0.4931506849315068,
0.21083662779019507
]
(more results)
...