Facebook Ads Api: Can you Get Timeseries of CPI in 15 minutes intervals? -
i've started playing api's first time , first attempt facebook ads api. i'm looking through documentation , can see how pull cost per action data. right i'm interested in cpi (cost per install) data specific campaign, ad set , ad in 15 minute intervals.
does know if possible current api?
you can reporting stats through ads insights api: https://developers.facebook.com/docs/marketing-api/insights/v2.5
as mentioned, can cost per install data requesting cost_per_action_type
field in request.
for instance, call v2.5/<ad_set_id>/insights?fields=['cost_per_action_type']
would have cost of mobile app installs part of response
{ "data": [ { "cost_per_action_type": [ { "action_type": "mobile_app_install", "value": ... } ], "date_start": ..., "date_stop": ... } }
you can make api calls @ discretion long you're within api rate limits: https://developers.facebook.com/docs/marketing-api/api-rate-limiting
Comments
Post a Comment