这3个API调用都返回基本相同日期(1月1日 - 1月30日)的值。
/50813163906/insights/page_impressions_paid_unique/week?since=1388552400&until=1391144400
/50813163906/insights/page_impressions_paid_unique/day?since=1388552400&until=1391144400
/50813163906/insights/page_impressions_paid_unique/days_28?since=1388552400&until=1391144400
然而,每个日期的价值差异很大。
/周给出了
{值:635756,end_time:“2014-01-01”} ,, {值:479251,end_time:“2014-01-02”},{值:396633,end_time:“2014-01-03” } ...
/ day给出了
{值:110598,end_time:“2014-01-01”},{值:458,end_time:“2014-01-02”},{值:4,end_time:“2014-01-03”} ...
/ days_28给出了
{值:411634,end_time:“2014-01-01”},{值:407725,end_time:“2014-01-02”},{值:403430,end_time:“2014-01-03”} ...
这些日期段应该总计以及从何时开始?
答案 0 :(得分:4)
我很确定给出的值是结束日期的总和,取决于您的分段。
例如,细分 /周会返回:
{value: 635756,end_time: "2014-01-01"}
{value: 479251,end_time: "2014-01-02"}
{value: 396633,end_time: "2014-01-03"}
这意味着:
For the 7 days prior to & ending on *2014-01-01* there were 635756 impressions
For the 7 days prior to & ending on *2014-01-02* there were 479251 impressions
For the 7 days prior to & ending on *2014-01-03* there were 396633 impressions
/ day 段返回:
{value: 110598, end_time: "2014-01-01"}
{value: 458, end_time: "2014-01-02"}
{value: 4, end_time: "2014-01-03"}
这意味着:
For the day *2014-01-01* there were 110598 impressions
For the day *2014-01-02* there were 458 impressions
For the day *2014-01-03* there were 4 impressions
细分 / days_28 会返回:
{value: 411634, end_time: "2014-01-01"}
{value: 407725, end_time: "2014-01-02"}
{value: 403430, end_time: "2014-01-03"}
这意味着:
For the 28 days prior to & ending on *2014-01-01* there were 411634 impressions
For the 28 days prior to & ending on *2014-01-02* there were 407725 impressions
For the 28 days prior to & ending on *2014-01-03* there were 403430 impressions
这些数字看起来是正确的,但是你的28天数字似乎比你的周数小,这很奇怪。也许这与有关,因为& 直到限制您提出的GET请求。
如果你想要一个月的真实数字,最好是白天做,并采取个别值并使用分页下一个/上一个值作为结果的一部分返回以帮助你向后导航直到你到达本月的第一天。