这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
但是,每个日期的值都大不相同。
/周给
{value:635756,end_time:“ 2014-01-01”} ,, {value:479251,end_time:“ 2014-01-02”},{value:396633,end_time:“ 2014-01-03”} .. 。
/天给
{值:110598,结束时间:“ 2014-01-01”}},{值:458,结束时间:“ 2014-01-02”},{值:4,结束时间:“ 2014-01-03”}} ...
/ days_28给
{值:411634,结束时间:“ 2014-01-01”}},{值:407725,结束时间:“ 2014-01-02”},{值:403430,结束时间:“ 2014-01-03”}} ...
这些日期段应该总计多少?从什么时候到什么时候?
我很确定给出的值是结束日期的总数,具体取决于您的细分。
例如,段/ week返回:
{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
细分/天返回:
{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请求施加的since&until限制有关。
如果您想要一个月的真实数字,最好按天计算并获取各个值,并使用分页的下一个/上一个值作为结果的一部分返回,以帮助您向后导航,直到达到第一个月。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句