Facebook营销API每个日期获取广告系列 [英] Facebook Marketing API Get Campaigns per date

查看:183
本文介绍了Facebook营销API每个日期获取广告系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个从Facebook的营销API申请的应用程序,将我所有的广告帐户以及所有广告系列的所有广告系列以及我所有的广告系列中的所有广告帐户归还给具体日期(或日期范围)的见解。
现在因为我的广告系列太多,我无法为一个帐户中的每个广告系列提出请求(即使我想要Facebook的扼制机制),我也试图找到一种方法来获得活动或有特定日期(日期范围)的数据。

I have created an application requesting from facebook's Marketing API, to return all my ad accounts, and from all my ad accounts all my ad campaigns, and from all my campaigns, get insights for a specific date(or date range). Now because my campaigns are too many and I can't make a request for every campaign in a account(even if I wanted the facebook's throttling mechanism kicks in) I am trying to find a way to get only the campaigns that were active or had data on my specific date(date range).

我添加了time_range参数作为下面的链接(Api手册)描述:
https://developers.facebook.com/docs/marketing- api / reference / ad-account / campaigns /

I added the 'time_range' parameter as the link below (Api manual) describes: https://developers.facebook.com/docs/marketing-api/reference/ad-account/campaigns/

time_range格式我使用:& time_range = {'since':'2016-06-13' ,'until':'06/6'}

time_range format I use: &time_range={'since':'2016-06-13','until':'2016-06-13'}

但我得到的结果完全相同。如果我没有使用'limit'参数(默认分页),我将所有的广告系列设置为一个较高的值或25个广告系列。
以前有人问过api吗?或者任何建议?

But I get exactly the same result. All my campaigns if I set the 'limit' parameter to a high value or 25 campaigns if I don't use a the 'limit' parameter(default paging). Anyone had any issues with the api before? Or any suggestions?

推荐答案

很可能您没有使用 time_range param正确。查看此答案:广告终端上的时间范围过滤器Facebook API)

It is likely that you are not using the time_range param correctly. Check out this answer: time range filter on ads endpoint (Facebook API)

这篇关于Facebook营销API每个日期获取广告系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆