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?
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