mobile_app_install extracted from Facebook Insights API is different from the dashboard

180 Views Asked by At

I want to extract mobile_app_install but the numbers I have got from API seems not correct. It's 1839 by API using Python vs. 1736 in the dashboard. Any advice for this?

campaign = Campaign('23850184438290054')
fields = {'campaign_id','campaign_name','clicks', 'spend','cpc','cpm','ctr','actions'}
params = {
    # 'date_preset':'yesterday'
    'time_range':{'since':'2022-07-28','until':'2022-07-28'}
    # ,'breakdowns':'country'
    ,'level':'campaign'
    ,'time_increment':1
    ,'export_format':'csv'
    }
response = campaign.get_insights(params=params, fields = fields)
df = pd.DataFrame.from_dict(response)
df.head()

Python

dashboard

1

There are 1 best solutions below

1
Nhi Yen On

The answer is

Add 'action_attribution_windows':'1d_click' for android or 'action_attribution_windows':'skan_click' for ios in the params