Posts tagged with facebook-insights

I've encounted a problem. I need to get metrics from Facebook API insights (I'm using version 18) to build my own report. Some of metrics are displayed in Facebook Adsmanager, but not found in API insights. Those metrics are:

I've read through all Facebook Insights doc and call its API by many ways but cannot get the above metrics. So are there other ways to get those metrics either by APIs or from Facebook Adsmanager?

I am facing the same problem as mentioned in this question, Why some ads is not breaking down by link_url_asset, the only difference is that I am pulling data on "Campaign" level.

Since the question was asked long back and there's no answer, so posting it again with my wrapper question.

When I am not applying breakdown, I am getting X number of impressions. But when I apply breakdown on link_url_asset, the breakdown happens but when I add the impressions, the sum does not match with X (less than X).

The reason I want to do breakdown is because I want to pull the utm_campaign value from the website_url attribute in link_url_asset.

I am hitting following endpoint with the params -

/GET https://graph.facebook.com/v19.0/act_{ACCOUNT_ID}/insights?level=campaign&fields=account_name,account_id,campaign_name,impressions,spend,actions&time_range={"since":"2024-04-07","until":"2024-04-07"}&access_token=${ACCESS_TOKEN}&filtering=[{field: "action_type",operator:"IN", value: ['link_click']}]&breakdowns=link_url_asset&use_account_attribution_setting=true 

I am not able to figure out from the Facebook documentation that what am I missing here.