When using the Facebook marketing api i would like to download the actions without the action_attribution_windows 1d_view option.
I currently use the following setup;
# Ad import fields
fields = [
# Ad meta data
Insights.Field.account_id,
Insights.Field.account_name,
Insights.Field.campaign_id,
Insights.Field.campaign_name,
Insights.Field.adset_id,
Insights.Field.adset_name,
Insights.Field.ad_id,
Insights.Field.ad_name,
Insights.Field.date_start,
Insights.Field.date_stop,
# Ad metrics
Insights.Field.cpc,
Insights.Field.cpm,
Insights.Field.cpp,
Insights.Field.ctr,
Insights.Field.impressions,
Insights.Field.reach,
Insights.Field.spend,
Insights.Field.inline_link_clicks,
Insights.Field.clicks,
Insights.Field.actions
]
# Ad parameters
params_ad = {
'level': Insights.Level.ad,
'limit': limit if limit > 0 else None,
'time_range': {
'since': since,
'until': until
},
'action_attribution_windows': ['28d_click'],
}
# Download data from Facebook
my_insights = my_account.get_insights(fields=fields, params=params_ad)
This however downloads the data as 28d_click with 1d_view. As i think it defaults at 1d_view when no value is given.
How would i disable the 1d_view?