fredericharnois/facebook-ads-reporting-google-apps-script

inline_link_clicks returns 0 when filtering on action_type

fredericharnois opened this issue · 3 comments

&filtering[{"field":"action_type","operator":"CONTAIN","value":"offsite_conversion.fb_pixel_purchase"}]
is causing inline_link_clicks to return 0.

This seems to be a bug in Facebook's Ad Insights API.

Filed a bug report directly with Facebook since the issue persists.

According to Facebook, this filtering behaviour is by design. Modified the script so that both inline_link_clicks and offsite_conversion.fb_pixel_purchase values are included in the report.

your query
&filtering[{"field":"action_type","operator":"CONTAIN","value":"offsite_conversion.fb_pixel_purchase"}]

seems to be missing the = after filtering

&filtering**=**[{"field":"action_type","operator":"CONTAIN","value":"offsite_conversion.fb_pixel_purchase"}]