Facebook Marketing API Get Campaigns per date

做~自己de王妃 提交于 2019-12-10 11:18:15

问题


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).

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 format I use: &time_range={'since':'2016-06-13','until':'2016-06-13'}

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?


回答1:


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)



来源:https://stackoverflow.com/questions/37843593/facebook-marketing-api-get-campaigns-per-date

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!