Closed ldorward24 closed 6 years ago
According to https://developers.facebook.com/docs/marketing-api/insights/parameters/v2.7, the field social_impressions is not supported, yet the social_impressions field is defined in facebook_business.adobjects.adsinsights.AdsInsights.Field.
AdsInsights.Field (see social_impressions):
class Field(AbstractObject.Field): account_currency = 'account_currency' account_id = 'account_id' account_name = 'account_name' action_values = 'action_values' actions = 'actions' ad_id = 'ad_id' ad_name = 'ad_name' adset_id = 'adset_id' adset_name = 'adset_name' buying_type = 'buying_type' campaign_id = 'campaign_id' campaign_name = 'campaign_name' canvas_avg_view_percent = 'canvas_avg_view_percent' canvas_avg_view_time = 'canvas_avg_view_time' clicks = 'clicks' cost_per_10_sec_video_view = 'cost_per_10_sec_video_view' cost_per_action_type = 'cost_per_action_type' cost_per_estimated_ad_recallers = 'cost_per_estimated_ad_recallers' cost_per_inline_link_click = 'cost_per_inline_link_click' cost_per_inline_post_engagement = 'cost_per_inline_post_engagement' cost_per_outbound_click = 'cost_per_outbound_click' cost_per_unique_action_type = 'cost_per_unique_action_type' cost_per_unique_click = 'cost_per_unique_click' cost_per_unique_inline_link_click = 'cost_per_unique_inline_link_click' cost_per_unique_outbound_click = 'cost_per_unique_outbound_click' cpc = 'cpc' cpm = 'cpm' cpp = 'cpp' ctr = 'ctr' date_start = 'date_start' date_stop = 'date_stop' estimated_ad_recall_rate = 'estimated_ad_recall_rate' estimated_ad_recallers = 'estimated_ad_recallers' frequency = 'frequency' impressions = 'impressions' inline_link_click_ctr = 'inline_link_click_ctr' inline_link_clicks = 'inline_link_clicks' inline_post_engagement = 'inline_post_engagement' mobile_app_purchase_roas = 'mobile_app_purchase_roas' objective = 'objective' outbound_clicks = 'outbound_clicks' outbound_clicks_ctr = 'outbound_clicks_ctr' place_page_name = 'place_page_name' reach = 'reach' relevance_score = 'relevance_score' social_impressions = 'social_impressions' social_spend = 'social_spend' spend = 'spend' total_action_value = 'total_action_value' unique_actions = 'unique_actions' unique_clicks = 'unique_clicks' unique_ctr = 'unique_ctr' unique_inline_link_click_ctr = 'unique_inline_link_click_ctr' unique_inline_link_clicks = 'unique_inline_link_clicks' unique_link_clicks_ctr = 'unique_link_clicks_ctr' unique_outbound_clicks = 'unique_outbound_clicks' unique_outbound_clicks_ctr = 'unique_outbound_clicks_ctr' video_10_sec_watched_actions = 'video_10_sec_watched_actions' video_30_sec_watched_actions = 'video_30_sec_watched_actions' video_avg_percent_watched_actions = 'video_avg_percent_watched_actions' video_avg_time_watched_actions = 'video_avg_time_watched_actions' video_p100_watched_actions = 'video_p100_watched_actions' video_p25_watched_actions = 'video_p25_watched_actions' video_p50_watched_actions = 'video_p50_watched_actions' video_p75_watched_actions = 'video_p75_watched_actions' video_p95_watched_actions = 'video_p95_watched_actions' website_ctr = 'website_ctr' website_purchase_roas = 'website_purchase_roas'
Following error is thrown when the parameter is passed into a request:
Status: 400 Response: { "error": { "message": "(#100) social_impressions is not valid for fields param. please check https://developers.facebook.com/docs/marketing-api/reference/ads-insights/ for all valid values", "code": 100, "type": "OAuthException", "fbtrace_id": "HUhGEYZ+AXr" } }
Was an API version issue
According to https://developers.facebook.com/docs/marketing-api/insights/parameters/v2.7, the field social_impressions is not supported, yet the social_impressions field is defined in facebook_business.adobjects.adsinsights.AdsInsights.Field.
AdsInsights.Field (see social_impressions):
Following error is thrown when the parameter is passed into a request:
Status: 400 Response: { "error": { "message": "(#100) social_impressions is not valid for fields param. please check https://developers.facebook.com/docs/marketing-api/reference/ads-insights/ for all valid values", "code": 100, "type": "OAuthException", "fbtrace_id": "HUhGEYZ+AXr" } }