Facebook Ad insight GRAPH API边缘的日期范围

问题描述 投票:2回答:2

我正在尝试使用Facebook Graph API获取给定日期范围的Facebook Ad统计数据。它似乎不起作用。

https://graph.facebook.com/v2.5/6039003162091/insights?since=2016-03-14&until=2016-03-15&access_token= <>

知道我应该如何解决这个问题吗?

facebook facebook-graph-api facebook-ads-api
2个回答
4
投票

答案在上面的评论中并在此处添加,因此很清楚。问题在于time_range参数的格式,因为它需要

time_range={"since":"2016‌​-03-15","until":"2016-03-15"} 

-1
投票

https://graph.facebook.com/v2.5/act_id?fields=ads {insights.time_range({ “因为”: “2016年3月14日”, “直到”: “2016年4月15日”})}&=的access_token YOUR_ACCESS_TOKEN

如果你想要日复一日的数据,你可以改为

https://graph.facebook.com/v2.5/6039003162091?fields=ads {insights.time_range({ “因为”: “2016年3月14日”, “直到”: “2016年4月15日”})。time_increment(1)}&=的access_token YOUR_ACCESS_TOKEN

© www.soinside.com 2019 - 2024. All rights reserved.