53736

Question:
i want to get only offiste conversions within this marketing api call:
https://graph.facebook.com/v2.8/<ad_id>/insights?fields=actions{"action_type":{"offsite_conversion"}}&access_token=<token>
but i get all fields in "actions". any idea what i'm doing wrong?
Answer1:You can use parameter:<strong>"filtering"</strong>
<a href="https://graph.facebook.com/v2.8/" rel="nofollow">https://graph.facebook.com/v2.8/</a><strong>ad_id</strong>/insights?<br /> &fields=actions&action_breakdowns=action_type<br /> &filtering={{"field":"action_type","operator":"CONTAIN","value":"offsite_conversion.fb_pixel_complete_registration"}]&access_token=<strong>token</strong>