为什么FB Insights API返回不同的值,而在按days days_28 / nek / day / day /



这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"} ,, {value:479251,end_time:" 2014-01-02"},{value:396633,end_time,end_time:end_time:" 2014-01-01-03" 2014-01-03"} ...

  • /day给出

    {值:110598,end_time:" 2014-01-01"},{value:458,end_time:" 2014-01-02"},{value:4,end_time:" 2014-01-01-03"}...

  • /days_28给出

    {值:411634,end_time:" 2014-01-01"},{值:407725,end_time:" 2014-01-02"},{value:403430,end_time,end_time:" 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

细分/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请求的限制。

如果您想要一个月的真实数字,最好按一天来做并使用单个值并使用 paging next/next/以前的值作为结果的一部分返回您向后导航,直到到达一个月的第一个。

最新更新