When trying to fetch Facebook insights API for the following action offsite_conversion.fb_pixel_purchase
I always get less number than Facebook show on their ad manager, I tried to inspect their network calls and URL structure and I see they’re using the same field offsite_conversion.fb_pixel_purchase
to show Results
I am not sure why the numbers are mis-matching. I tried to query from the Graph API and from my shell with the same results.
Question posted in Facebook API
The official documentation for the Facebook APIs can be found here.
The official documentation for the Facebook APIs can be found here.
2
Answers
You may check
use_account_attribution_setting
anduse_unified_attribution_setting
in here: https://developers.facebook.com/docs/marketing-api/reference/ad-campaign-group/insightsSetting
use_unified_attribution_setting
totrue
worked for me.I did some testing and found out that if you use an additional breakdown, FB will return less conversions. There might be a bug in their API when you use breakdowns.
I tried getting
offsite_conversion.fb_pixel_purchase
with'breakdowns' => 'hourly_stats_aggregated_by_advertiser_time_zone',
and facebook retuned 5 conversions.
if I remove the breakdown and get the data grouped daily I get 11 conversions which is what Facebook Ads Manager shows