AdReportRunInsights
GET /v26.0/{ad-report-run-id}/insights HTTP/1.1
Host: graph.facebook.com/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{ad-report-run-id}/insights',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result *//* make the API call */
FB.api(
"/{ad-report-run-id}/insights",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{ad-report-run-id}/insights",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{ad-report-run-id}/insights"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];Reading from this edge will return a JSON formatted result:
{ "
data": [], "paging": {}, "summary": {} }
datapagingsummaryAggregated information about the edge, such as counts. Specify the fields to fetch in the summary param (like summary=account_currency).
| Field | Description |
|---|---|
account_currencystring | account_currency |
account_idnumeric string | account_id |
account_namestring | account_name |
action_values | action_values |
actions | actions |
activity_recencystring | activity_recency |
ad_click_actions | ad_click_actions |
ad_format_assetstring | ad_format_asset |
ad_idnumeric string | ad_id |
ad_impression_actions | ad_impression_actions |
ad_namestring | ad_name |
adset_idnumeric string | adset_id |
adset_namestring | adset_name |
advanced_actions_28d_view | advanced actions 28d view |
advanced_reach_1d_lookbacknumeric string | advanced reach 1d lookback |
advanced_reach_28d_lookbacknumeric string | advanced reach 28d lookback |
advanced_reach_7d_lookbacknumeric string | advanced reach 7d lookback |
agestring | age |
age_targetingstring | age_targeting |
anchor_event_attribution_settingstring | anchor event attribution setting |
anchor_events_performance_indicatorstring | anchor events performance indicator |
app_idstring | app_id |
attribution_settingstring | attribution_setting |
auction_bidnumeric string | auction_bid |
auction_competitivenessnumeric string | auction_competitiveness |
auction_max_competitor_bidnumeric string | auction_max_competitor_bid |
average_purchases_conversion_value | average_purchases_conversion_value |
body_assetAdAssetBody | body_asset |
buying_typestring | buying_type |
call_to_action_assetAdAssetCallToActionType | call_to_action_asset |
campaign_idnumeric string | campaign_id |
campaign_namestring | campaign_name |
canvas_avg_view_percentnumeric string | canvas_avg_view_percent |
canvas_avg_view_timenumeric string | canvas_avg_view_time |
catalog_segment_actions | catalog_segment_actions |
catalog_segment_value | catalog_segment_value |
catalog_segment_value_mobile_purchase_roas | catalog_segment_value_mobile_purchase_roas |
catalog_segment_value_omni_purchase_roas | catalog_segment_value_omni_purchase_roas |
catalog_segment_value_website_purchase_roas | catalog_segment_value_website_purchase_roas |
clicksnumeric string | clicks |
coarse_conversion_valuestring | coarse_conversion_value |
comparison_nodeAdsInsightsComparison | comparison_node |
comscore_marketstring | comscore market |
configurable_attribution_action | configurable attribution action |
configurable_attribution_actionvalue | configurable attribution actionvalue |
configurable_audience_overlap_reach | configurable audience overlap reach |
configurable_audience_overlap_with_conv_actionnumeric string | configurable audience overlap with conv action |
configurable_audience_overlap_with_conv_convertersnumeric string | configurable audience overlap with conv converters |
configurable_audience_overlap_with_conv_exposure_costnumeric string | configurable audience overlap with conv exposure cost |
configurable_audience_overlap_with_conv_exposure_impressionsnumeric string | configurable audience overlap with conv exposure impressions |
configurable_audience_overlap_with_conv_exposure_reachnumeric string | configurable audience overlap with conv exposure reach |
configurable_placement_ptc_conversionsnumeric string | configurable placement ptc conversions |
configurable_placement_ptc_convertersnumeric string | configurable placement ptc converters |
configurable_placement_ptc_reachnumeric string | configurable placement ptc reach |
configurable_reachbyfrequency_action | configurable reachbyfrequency action |
configurable_reachbyfrequency_converters_countnumeric string | configurable reachbyfrequency converters count |
configurable_reachbyfrequency_impressions_costnumeric string | configurable reachbyfrequency impressions cost |
configurable_reachbyfrequency_impressions_countnumeric string | configurable reachbyfrequency impressions count |
configurable_reachbyfrequency_reachnumeric string | configurable reachbyfrequency reach |
conversion_lead_rate | conversion_lead_rate |
conversion_leads | conversion_leads |
conversion_rate_rankingstring | conversion_rate_ranking |
conversion_values | conversion_values |
conversions | conversions |
converted_product_app_custom_event_fb_mobile_purchase | converted product app custom event fb mobile purchase |
converted_product_app_custom_event_fb_mobile_purchase_value | converted product app custom event fb mobile purchase value |
converted_product_offline_purchase | converted product offline purchase |
converted_product_offline_purchase_value | converted product offline purchase value |
converted_product_omni_purchase | converted product omni purchase |
converted_product_omni_purchase_values | converted product omni purchase values |
converted_product_quantity | converted_product_quantity |
converted_product_value | converted_product_value |
converted_product_website_pixel_purchase | converted product website pixel purchase |
converted_product_website_pixel_purchase_value | converted product website pixel purchase value |
converted_promoted_product_app_custom_event_fb_mobile_purchase | converted promoted product app custom event fb mobile purchase |
converted_promoted_product_app_custom_event_fb_mobile_purchase_value | converted promoted product app custom event fb mobile purchase value |
converted_promoted_product_offline_purchase | converted promoted product offline purchase |
converted_promoted_product_offline_purchase_value | converted promoted product offline purchase value |
converted_promoted_product_omni_purchase | converted promoted product omni purchase |
converted_promoted_product_omni_purchase_values | converted promoted product omni purchase values |
converted_promoted_product_quantity | converted_promoted_product_quantity |
converted_promoted_product_value | converted_promoted_product_value |
converted_promoted_product_website_pixel_purchase | converted promoted product website pixel purchase |
converted_promoted_product_website_pixel_purchase_value | converted promoted product website pixel purchase value |
cost_per_15_sec_video_view | cost_per_15_sec_video_view |
cost_per_2_sec_continuous_video_view | cost_per_2_sec_continuous_video_view |
cost_per_6_sec_video_view | cost per 6 sec video view |
cost_per_action_type | cost_per_action_type |
cost_per_ad_click | cost_per_ad_click |
cost_per_conversion | cost_per_conversion |
cost_per_conversion_lead | cost_per_conversion_lead |
cost_per_dda_countby_convsnumeric string | cost_per_dda_countby_convs |
cost_per_estimated_ad_recallersnumeric string | cost_per_estimated_ad_recallers |
cost_per_inline_link_clicknumeric string | cost_per_inline_link_click |
cost_per_inline_post_engagementnumeric string | cost_per_inline_post_engagement |
cost_per_message_deliverednumeric string | cost_per_message_delivered |
cost_per_objective_resultlist<AdsInsightsResult> | cost_per_objective_result |
cost_per_one_thousand_ad_impression | cost_per_one_thousand_ad_impression |
cost_per_outbound_click | cost_per_outbound_click |
cost_per_resultlist<AdsInsightsResult> | cost_per_result |
cost_per_thruplay | cost_per_thruplay |
cost_per_unique_action_type | cost_per_unique_action_type |
cost_per_unique_clicknumeric string | cost_per_unique_click |
cost_per_unique_conversion | cost_per_unique_conversion |
cost_per_unique_inline_link_clicknumeric string | cost_per_unique_inline_link_click |
cost_per_unique_outbound_click | cost_per_unique_outbound_click |
countrystring | country |
cpcnumeric string | cpc |
cpmnumeric string | cpm |
cppnumeric string | cpp |
created_timestring | created_time |
creative_automation_asset_idAdAssetMedia | creative automation asset id |
creative_diversity_datalist<CreativeDiversityData> | creative diversity data |
creative_diversity_labelstring | creative diversity label |
creative_diversity_scorestring | creative diversity score |
creative_fatigue_summarylist<CreativeFatigueSummary> | creative fatigue summary |
creative_fatigued_adslist<CreativeFatiguedAds> | creative fatigued ads |
creative_fingerprintstring | creative_fingerprint |
creative_media_typestring | creative_media_type |
creative_relaxation_asset_typestring | creative relaxation asset type |
ctrnumeric string | ctr |
date_startstring | date_start |
date_stopstring | date_stop |
dda_countby_convsnumeric string | dda_countby_convs |
dda_resultslist<AdsInsightsDdaResult> | dda_results |
description_assetAdAssetDescription | description_asset |
device_platformstring | device_platform |
dmastring | dma |
engagement_rate_rankingstring | engagement_rate_ranking |
estimated_ad_recall_ratenumeric string | estimated_ad_recall_rate |
estimated_ad_recall_rate_lower_boundnumeric string | estimated_ad_recall_rate_lower_bound |
estimated_ad_recall_rate_upper_boundnumeric string | estimated_ad_recall_rate_upper_bound |
estimated_ad_recallersnumeric string | estimated_ad_recallers |
estimated_ad_recallers_lower_boundnumeric string | estimated_ad_recallers_lower_bound |
estimated_ad_recallers_upper_boundnumeric string | estimated_ad_recallers_upper_bound |
fidelity_typestring | fidelity_type |
flexible_format_asset_typestring | flexible format asset type |
frequencynumeric string | frequency |
frequency_valuestring | frequency_value |
full_view_impressionsnumeric string | full_view_impressions |
full_view_reachnumeric string | full_view_reach |
gen_ai_asset_typestring | gen ai asset type |
genderstring | gender |
gender_targetingstring | gender_targeting |
hourly_stats_aggregated_by_advertiser_time_zonestring | hourly_stats_aggregated_by_advertiser_time_zone |
hourly_stats_aggregated_by_audience_time_zonestring | hourly_stats_aggregated_by_audience_time_zone |
hsidstring | hsid |
image_assetAdAssetImage | image_asset |
impression_devicestring | impression_device |
impressionsnumeric string | impressions |
inline_link_click_ctrnumeric string | inline_link_click_ctr |
inline_link_clicksnumeric string | inline_link_clicks |
inline_post_engagementnumeric string | inline_post_engagement |
instagram_profile_follownumeric string | instagram profile follow |
instagram_profile_visitsnumeric string | instagram profile visits |
instagram_upcoming_event_reminders_setnumeric string | instagram_upcoming_event_reminders_set |
instant_experience_clicks_to_opennumeric string | instant_experience_clicks_to_open |
instant_experience_clicks_to_startnumeric string | instant_experience_clicks_to_start |
instant_experience_outbound_clicks | instant_experience_outbound_clicks |
interactive_component_tap | interactive_component_tap |
is_auto_advancestring | is auto advance |
is_conversion_id_modeledstring | is_conversion_id_modeled |
is_videostring | is_video |
labelsstring | labels |
landing_destinationstring | landing_destination |
landing_page_view_actions_per_link_clicknumeric string | landing_page_view_actions_per_link_click |
landing_page_view_per_link_clicknumeric string | landing page view per link click |
landing_page_view_per_purchase_ratenumeric string | landing_page_view_per_purchase_rate |
link_clicks_per_resultslist<AdsInsightsResult> | link_clicks_per_results |
link_url_assetAdAssetLinkURL | link_url_asset |
locationstring | location |
marketing_messages_click_rate_benchmarknumeric string | marketing messages click rate benchmark |
marketing_messages_cost_per_deliverednumeric string | marketing_messages_cost_per_delivered |
marketing_messages_cost_per_link_btn_clicknumeric string | marketing_messages_cost_per_link_btn_click |
marketing_messages_delivery_ratenumeric string | The number of messages delivered divided by the number of messages sent. Some messages may not be delivered, such as when a customer's device is out of service. This metric doesn't include messages sent to Europe and Japan. |
marketing_messages_link_btn_click_ratenumeric string | marketing_messages_link_btn_click_rate |
marketing_messages_media_view_ratenumeric string | marketing_messages_media_view_rate |
marketing_messages_phone_call_btn_click_ratenumeric string | marketing_messages_phone_call_btn_click_rate |
marketing_messages_quick_reply_btn_click_ratenumeric string | marketing_messages_quick_reply_btn_click_rate |
marketing_messages_read_ratenumeric string | marketing_messages_read_rate |
marketing_messages_spendnumeric string | marketing_messages_spend |
media_assetAdAssetMedia | media_asset |
media_typestring | media type |
messages_deliverednumeric string | messages_delivered |
messages_delivered_ctrnumeric string | messages_delivered_ctr |
mobile_app_purchase_roas | mobile_app_purchase_roas |
msa_seller_budgetinteger | msa seller budget |
msa_seller_idstring | msa seller id |
msa_seller_namestring | msa seller name |
multi_event_conversion_attribution_settingstring | multi event conversion attribution setting |
objectivestring | objective |
objective_result_ratelist<AdsInsightsResult> | objective_result_rate |
objective_resultslist<AdsInsightsResult> | objective_results |
opportunity_score_l4numeric string | opportunity score l4 |
optimization_goalstring | optimization_goal |
outbound_clicks | outbound_clicks |
outbound_clicks_ctr | outbound_clicks_ctr |
overlap_segmentstring | overlap segment |
pa_creator_ig_handlestring | pa creator ig handle |
placementstring | placement |
placement_pathstring | placement path |
platform_positionstring | platform_position |
playable_average_game_lengthnumeric string | playable average game length |
playable_game_start_ratenumeric string | playable game start rate |
postback_sequence_indexstring | postback_sequence_index |
product_brand_breakdownstring | product brand breakdown |
product_category_breakdownstring | product category breakdown |
product_custom_label_0_breakdownstring | product custom label 0 breakdown |
product_custom_label_1_breakdownstring | product custom label 1 breakdown |
product_custom_label_2_breakdownstring | product custom label 2 breakdown |
product_custom_label_3_breakdownstring | product custom label 3 breakdown |
product_custom_label_4_breakdownstring | product custom label 4 breakdown |
product_group_content_id_breakdownstring | product group content id breakdown |
product_group_retailer_idstring | product group retailer id |
product_idstring | product_id |
product_retailer_idstring | product retailer id |
product_set_id_breakdownstring | product set id breakdown |
product_vendor_id_breakdownstring | product vendor id breakdown |
product_viewsstring | product views |
promoted_product_set_resultstring | promoted product set result |
publisher_platformstring | publisher_platform |
purchase_per_landing_page_viewnumeric string | purchase per landing page view |
purchase_roas | purchase_roas |
purchases_per_link_clicknumeric string | purchases_per_link_click |
qualifying_question_qualify_answer_ratenumeric string | qualifying_question_qualify_answer_rate |
quality_rankingstring | quality_ranking |
reachnumeric string | reach |
read_ratenumeric string | read_rate |
redownloadstring | redownload |
reels_trending_topicstring | reels trending topic |
regionstring | region |
result_ratelist<AdsInsightsResult> | result_rate |
result_values_performance_indicatorstring | result_values_performance_indicator |
resultslist<AdsInsightsResult> | results |
rta_ugc_topicstring | rta ugc topic |
rule_assetAdAssetRule | rule_asset |
rule_set_idstring | rule set id |
rule_set_namestring | rule set name |
shops_assisted_purchasesstring | shops_assisted_purchases |
skan_campaign_idstring | skan_campaign_id |
skan_conversion_idstring | skan_conversion_id |
skan_versionstring | skan_version |
social_spendnumeric string | social_spend |
spendnumeric string | spend |
title_assetAdAssetTitle | title_asset |
total_card_viewstring | total card view |
total_postbacksstring | Contains fields associated with SKAN postbacks. |
total_postbacks_detailed | Contains fields associated with SKAN postbacks. |
total_postbacks_detailed_v4 | Contains fields associated with SKAN 4.0 postbacks.
|
unique_actions | unique_actions |
unique_clicksnumeric string | unique_clicks |
unique_conversions | unique_conversions |
unique_ctrnumeric string | unique_ctr |
unique_inline_link_click_ctrnumeric string | unique_inline_link_click_ctr |
unique_inline_link_clicksnumeric string | unique_inline_link_clicks |
unique_link_clicks_ctrnumeric string | unique_link_clicks_ctr |
unique_outbound_clicks | unique_outbound_clicks |
unique_outbound_clicks_ctr | unique_outbound_clicks_ctr |
unique_video_continuous_2_sec_watched_actions | unique_video_continuous_2_sec_watched_actions |
unique_video_view_15_sec | unique_video_view_15_sec |
updated_timestring | updated_time |
user_segment_keystring | user_segment_key |
video_15_sec_watched_actions | video_15_sec_watched_actions |
video_30_sec_watched_actions | video_30_sec_watched_actions |
video_6_sec_watched_actions | video 6 sec watched actions |
video_assetAdAssetVideo | video_asset |
video_avg_time_watched_actions | video_avg_time_watched_actions |
video_continuous_2_sec_watched_actions | video_continuous_2_sec_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 |
video_play_actions | video_play_actions |
video_play_curve_actionslist<AdsHistogramStats> | video_play_curve_actions |
video_play_retention_0_to_15s_actionslist<AdsHistogramStats> | video_play_retention_0_to_15s_actions |
video_play_retention_20_to_60s_actionslist<AdsHistogramStats> | video_play_retention_20_to_60s_actions |
video_play_retention_graph_actionslist<AdsHistogramStats> | video_play_retention_graph_actions |
video_thruplay_watched_actions | video_thruplay_watched_actions |
video_time_watched_actions | video_time_watched_actions |
video_view_per_impression | video_view_per_impression |
website_ctr | website_ctr |
website_purchase_roas | website_purchase_roas |
wish_bidnumeric string | wish_bid |
zipstring | zip |
| Error | Description |
|---|---|
| 100 | Invalid parameter |