YouTube Analytics API不返回任何人口统计查询行,但会返回观看次数 [英] YouTube Analytics API returns no rows for demographic query - but does return views

查看:120
本文介绍了YouTube Analytics API不返回任何人口统计查询行,但会返回观看次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在某些情况下,在YouTube分析API中查询1天范围内的频道的受众特征(指标:viewerPercentage,尺寸:ageGroup,性别)时,不会返回任何行. api是当天返回的视图.

When querying the YouTube Analytics API for demographics for a channel for a 1 day range (metric:viewerPercentage, dimensions:ageGroup,gender) in some cases no rows are returned. The api IS returning views for that day however.

想到这有两个原因: 1.数据尚不可用,因为它仍在处理中. 2.没有已知的人口统计信息(即未知用户的性别和年龄)?

2 reasons for this come to mind: 1. The data is not available yet because it is still being processed. 2. There is no known demographics for that (i.e. the gender and age of the user are not known)?

在这种情况下,我是否可以假设不是(1),因为对视图的查询确实返回了结果?如果不能确定,那么未处理"与已处理但所有用户的人口统计未知"之间的响应/结果是否没有区别?

Am I safe to assume it's not (1) in this case because a query for views did return results? If I can't assume on then is it true that there's no difference in the response/results between "not processed" and "processed but all users are of unknown demographics?"

换句话说,如果情况为(2),则API将针对每个受众人口返回一行全为0的行,这将使我们能够正确解释事物(但我很确定那不是API查询的方式)带有尺寸标注的作品).

In other words if, when (2) were the case, the API would return a row with all zero's 0 for each demographic, that would enable us to interpret things correctly (but I'm pretty sure that's not how API queries with a dimension work).

感谢您的指导!

推荐答案

我无法提供有关YouTube Analytics(分析)数据处理管道的任何严格的指导,即人口统计数据是否会一直 与报告中的观看次数数据完全同时可用.

I can't provide any hard-and-fast guidance about the YouTube Analytics data processing pipeline, i.e. whether the demographic data will always be available at exactly the same time that the view count data is available in a report.

要获得有关此类特定问题的更权威的答案,建议您转到YouTube Analytics(分析)网络界面(http://youtube.com/analytics),然后尝试从中运行相同的报告.如果您要请求依赖于尚不可用数据的报告,则Web界面通常会向您发出一些警告.

To get a more authoritative answer about this sort of specific question, I'd recommend going to the YouTube Analytics web interface (http://youtube.com/analytics) and try running an identical report from there. The web interface normally gives you some warning if you're requesting a report that relies on data that isn't yet available.

这篇关于YouTube Analytics API不返回任何人口统计查询行,但会返回观看次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆