【问题标题】:DatePeriod for Facebook Ads Insights APIFacebook 广告洞察 API 的 DatePeriod
【发布时间】:2016-11-14 17:26:34
【问题描述】:

我可以使用营销 API 获得 Facebook 广告系列洞察,但我只能在规定的时间段内获得它。下面的代码给出了过去 30 天的数据。如何获得下拉菜单以获取用户输入期间的数据(例如 60 天或 1 天或 1 周等)。请让我知道代码。 根据开发者网站,可用的预设: 日期预设 枚举{今天、昨天、last_3_days、this_week、last_week、last_7_days、last_14_days、last_28_days、last_30_days、last_90_days、this_month、last_month、this_quarter、last_3_months、lifetime}

$params = array (
    'date_preset'=>'last_30_days',
    'data_columns'=>"['adgroup_id','actions','reach']",
);

?>

【问题讨论】:

    标签: facebook api facebook-graph-api filter date-range


    【解决方案1】:

    您需要使用时间范围字段。例如time_range={"since":"2016‌​-03-15","until":"2016-03-15"} 按照this question

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-10
      • 1970-01-01
      • 1970-01-01
      • 2021-08-19
      • 1970-01-01
      相关资源
      最近更新 更多