facebook - Why does FB Insights API return different values but the same dates when segmenting by days_28 / week / day / lifetime? -


these 3 api calls return values same dates (jan-1st - jan-30th).

/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 

however values each date hugely different.

  • /week gives

    {value: 635756,end_time:"2014-01-01"},,{value: 479251,end_time: "2014-01-02"},{value: 396633,end_time: "2014-01-03"}...

  • /day gives

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

  • /days_28 gives

    {value: 411634,end_time:"2014-01-01"},{value: 407725,end_time: "2014-01-02"},{value: 403430,end_time: "2014-01-03"}...

what these date segments supposed total , when when?

i'm pretty sure values given totals end date dependant on segmenting .

for example, segment /week returns:

{value: 635756,end_time: "2014-01-01"} {value: 479251,end_time: "2014-01-02"} {value: 396633,end_time: "2014-01-03"} 

which means:

for 7 days prior & ending on *2014-01-01* there 635756 impressions 7 days prior & ending on *2014-01-02* there 479251 impressions 7 days prior & ending on *2014-01-03* there 396633 impressions 

the segment /day returns:

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

which means:

for day *2014-01-01* there 110598 impressions day *2014-01-02* there 458    impressions day *2014-01-03* there 4      impressions 

the segment /days_28 returns:

{value: 411634, end_time: "2014-01-01"} {value: 407725, end_time: "2014-01-02"} {value: 403430, end_time: "2014-01-03"} 

which means:

for 28 days prior & ending on *2014-01-01* there 411634 impressions 28 days prior & ending on *2014-01-02* there 407725 impressions 28 days prior & ending on *2014-01-03* there 403430 impressions 

these numbers right, 28 days numbers seem smaller week numbers strange. maybe has since & until limits you're putting on request.

if want true numbers month, it's best day , take individual values , using paging next / previous values returned part of results navigate backwards until reach first of month.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -