gdata python 分析指标和维度错误
我正在 python 中使用 gdata 模块,当使用此查询时,我收到“维度和指标的非法组合”错误。我查看了文档但没有找到原因。
data_query = gdata.analytics.client.DataFeedQuery({
'ids': tid,
'start-date': '2010-04-20',
'end-date': '2010-04-21',
'dimensions': 'ga:date,ga:hour,ga:medium,ga:source,ga:keyword',
'metrics': 'ga:visits',
'sort': 'ga:date,ga:hour',
'filters': 'ga:exitPagePath=@/blabla',
'max-results': '10000'})
短剑
I am using the gdata module in python, when using this query I get an 'Illegal combination of dimensions and metrics' error. I have looked at documentation but not found the reason.
data_query = gdata.analytics.client.DataFeedQuery({
'ids': tid,
'start-date': '2010-04-20',
'end-date': '2010-04-21',
'dimensions': 'ga:date,ga:hour,ga:medium,ga:source,ga:keyword',
'metrics': 'ga:visits',
'sort': 'ga:date,ga:hour',
'filters': 'ga:exitPagePath=@/blabla',
'max-results': '10000'})
Dirk
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议使用数据浏览器手动构建 uri第一的。
I would suggest using the data explorer to manually construct the uri first.