當使用Facebook的營銷API我想下載沒有action_attribution_windows 1d_view選項的行動。Facebook的營銷API設置action_attribution_windows沒有意見
我目前使用以下設置;
# 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)
然而,這然後下載數據爲28d_click與1d_view。因爲我認爲它沒有給出任何值時默認在1d_view。
我將如何禁用1d_view?