gpt4 book ai didi

facebook - 为什么 FB Insights API 按 days_28/week/day/lifetime 分段时返回不同的值但返回相同的日期?

转载 作者:行者123 更新时间:2023-12-02 21:35:31 26 4
gpt4 key购买 nike

这 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 请求设置的 sinceuntil 限制有关。

如果您想要一个月的真实数字,最好按天进行,获取各个值并使用作为结果的一部分返回的分页下一个/上一个值来帮助您向后导航直到到达该月的第一天。

关于facebook - 为什么 FB Insights API 按 days_28/week/day/lifetime 分段时返回不同的值但返回相同的日期?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21483406/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com