Issue
I am trying to figure out how to query my Facebook Campaigns to filter out Active, Deleted, etc...
I use this, and it loads ALL of my campaigns, and doesn't matter based upon my status selected. I am hoping that it's something basic, but I have tried all variations with not change in my results.
Obviously I have removed the access_token on purpose.
In Short: How do I get campaigns based upon their status'.
Solution
You need to specify a filtering
object as specified on this API page:
https://developers.facebook.com/docs/marketing-api/insights/parameters
Here is an example provided on the API page: https://developers.facebook.com/docs/marketing-api/insights/
curl -G \
-d "level=ad" \
-d "filtering=[{'field':'ad.effective_status','operator':'IN','value':['ARCHIVED']}]" \
-d "access_token=<ACCESS_TOKEN>" \
"https://graph.facebook.com/<API_VERSION>/act_<AD_ACCOUNT_ID>/insights/"
Answered By - neuromatter
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.