通过API获取日期和小时数据 [英] Getting data with both date and hour via API

查看:277
本文介绍了通过API获取日期和小时数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



通过在网页界面下载广告系列报告,我可以通过*格里高利日期和小时获取数据小时作为时间单位。
 如何从API获取此类数据?



据我所知(至少在V9),你只能有一个TimePeriod列和一个聚合类型。

Hello all,

I am able to get data segmented by *both* Gregorian Date and Hour by downloading a Campaign report in the web interface with Hour as the time unit.  How can I get data like this from the API?

As far as I can tell (at least in V9), you can only have a single TimePeriod column and a single Aggregation type.

我们想要通过DayOfWeek和HourOfDay分割数据很长一段时间,但这将是一个如果该数据不可用,那就是不错的替代。

We have wanted to get data segmented by both DayOfWeek and HourOfDay for a long time, but this would be a decent substitute if that data is not available.

谢谢!

推荐答案

你好。

请您澄清一下如何在Web UI中提取所需的报告?在API中,对于单个报告,您可以选择一个聚合粒度或详细程度。下载的报告中的列标签取决于您在报告请求中指定的
的聚合级别。例如,如果聚合级别为DayOfWeek,则报告使用DayOfWeek作为列标签。有关详细信息,请参阅

TimePeriod专栏
。您可以运行第二个报告来获取由HourOfDay汇总的效果数据。

Will you please clarify how you are pulling the desired report in the Web UI? In the API, for a single report you can choose one aggregation grain, or level of detail. The column label in the downloaded report depends on the aggregation level that you specify in the report request. For example, if the aggregation level is DayOfWeek, the report uses DayOfWeek as the column label. For more information, please see TimePeriod Column. You could run a second report to get performance data aggregated by HourOfDay.

我希望这有帮助!


这篇关于通过API获取日期和小时数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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