skip to Main Content

Facebook marketing API insights (Destination url)

I'm trying to get data using Facebook Marketing API. $api = FacebookAds::init('TOKEN'); $start = Carbon::create(2018,11,16); $end = Carbon::create(2018,11,16); $period = Period::create($start,$end); $in = $api->insights($period,'act_ID', 'ad',[ 'fields' => ['impressions', 'objective', 'actions'....] ]); I'm getting each ad actions like this: "actions" =>…

VIEW QUESTION

Filtering by Gender on targeting_spec

How to set the gender in Facebook Marketing API targetting spec? I've tried setting the gender but i'm getting gender is not a valid target spec field error. targeting_spec = {"geo_locations": { "location_types": ["recent"], "custom_locations": [ { "latitude": 14.5764, "longitude":…

VIEW QUESTION

Facebook marketing api access non existing field

I am trying to access campaigns of the facebook account. Using python lib: https://github.com/facebook/facebook-python-ads-sdk Receive error: (#100) Tried accessing nonexisting field (campaigns) on node type (AdAccount) Url: https://graph.facebook.com/v2.11/{account_id}/campaigns Everything worked fine for months. Now, even facebook page for this url…

VIEW QUESTION
Back To Top
Search