unique_clicks, sorting of metrics, and async reporting.GET /v25.0/<AD_SET_ID>/insights?fields=impressions&breakdown=publisher_platform HTTP/1.1 Host: graph.facebook.com
| Parameter | Description |
|---|---|
action_attribution_windowslist<enum{1d_view, 7d_view, 28d_view, 1d_click, 7d_click, 28d_click, 1d_ev, dda, default, 7d_view_first_conversion, 28d_view_first_conversion, 7d_view_all_conversions, 28d_view_all_conversions, skan_view, skan_click, skan_click_second_postback, skan_view_second_postback, skan_click_third_postback, skan_view_third_postback}> | Default value: default
The attribution window for the actions. The attribution window determines the window (e.g. 7d) and engagement type (e.g click) that’s used as a filter to report actions. See About attribution settings and models for examples. The default option means ["7d_click","1d_view"].
|
action_breakdownslist<enum{action_device, conversion_destination, matched_persona_id, matched_persona_name, signal_source_bucket, standard_event_content_type, action_canvas_component_name, action_carousel_card_id, action_carousel_card_name, action_destination, action_reaction, action_target_id, action_type, action_video_sound, action_video_type, is_business_ai_assisted}> | Default value: Vec
How to break down action results. Supports more than one breakdowns. Default value is ["action_type"].
Note: you must also include actions field whenever action_breakdowns is specified.
|
action_report_timeenum{impression, conversion, mixed, lifetime} |
Determines the report time of action stats. For example, if a person
saw the ad on Jan 1st but converted on Jan 2nd, when you query the API
with action_report_time=impression, you see a conversion on Jan
1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd.
|
breakdownslist<enum{ad_extension_domain, ad_extension_url, ad_format_asset, age, app_id, body_asset, breakdown_ad_objective, breakdown_reporting_ad_id, call_to_action_asset, coarse_conversion_value, comscore_market, country, creative_automation_asset_id, creative_relaxation_asset_type, crm_advertiser_l12_territory_ids, crm_advertiser_subvertical_id, crm_advertiser_vertical_id, crm_ult_advertiser_id, description_asset, fidelity_type, flexible_format_asset_type, gen_ai_asset_type, gender, hsid, image_asset, impression_device, is_auto_advance, is_conversion_id_modeled, is_rendered_as_delayed_skip_ad, landing_destination, link_url_asset, mdsa_landing_destination, media_asset_url, media_creator, media_destination_url, media_format, media_origin_url, media_text_content, media_type, postback_sequence_index, product_brand_breakdown, product_category_breakdown, product_custom_label_0_breakdown, product_custom_label_1_breakdown, product_custom_label_2_breakdown, product_custom_label_3_breakdown, product_custom_label_4_breakdown, product_group_content_id_breakdown, product_id, redownload, region, rta_ugc_topic, skan_campaign_id, skan_conversion_id, skan_version, sot_attribution_model_type, sot_attribution_window, sot_channel, sot_event_type, sot_source, title_asset, user_persona_id, user_persona_name, video_asset, zip, rule_set_id, rule_set_name, dma, frequency_value, hourly_stats_aggregated_by_advertiser_time_zone, hourly_stats_aggregated_by_audience_time_zone, mmm, place_page_id, publisher_platform, platform_position, device_platform, standard_event_content_type, conversion_destination, signal_source_bucket, reels_trending_topic, marketing_messages_btn_name, impression_view_time_advertiser_hour_v2}> |
How to break down the result. For more than one breakdown, only certain combinations are available: See Combining Breakdowns and the Breakdowns page. The option impression_device cannot be used by itself.
|
date_presetenum{today, yesterday, this_month, last_month, this_quarter, maximum, data_maximum, last_3d, last_7d, last_14d, last_28d, last_30d, last_90d, last_week_mon_sun, last_week_sun_sat, last_quarter, last_year, this_week_mon_today, this_week_sun_today, this_year} | Default value: last_30d
Represents a relative time range. This field is ignored if time_range or time_ranges is specified.
|
default_summaryboolean | Default value: false
Determine whether to return a summary. If summary is set, this param is be ignored; otherwise, a summary section with the same fields as specified by fields will be included in the summary section.
|
export_columnslist<string> |
Select fields on the exporting report file. It is an optional param. Exporting columns are equal to the param fields, if you leave this param blank
|
export_formatstring |
Set the format of exporting report file. If the export_format is set, Report file is asyncrhonizely generated. It expects ["xls", "csv"].
|
export_namestring |
Set the file name of the exporting report.
|
fieldslist<string> |
Fields to be retrieved. Default behavior is to return impressions and spend.
|
filteringlist<Filter Object> | Default value: Vec
Filters on the report data. This parameter is an array of filter objects.
field stringrequired operator enum {EQUAL, NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, IN_RANGE, NOT_IN_RANGE, CONTAIN, NOT_CONTAIN, CONTAINS_ANY, CONTAINS_ALL, NOT_CONTAINS_ANY, STEM_MATCH, IN, NOT_IN, STARTS_WITH, ENDS_WITH, ANY, ALL, AFTER, BEFORE, ON_OR_AFTER, ON_OR_BEFORE, NONE, TOP}required value stringrequired Show child parameters |
levelenum {ad, adset, campaign, account} |
Represents the level of result.
|
limitinteger |
limit
|
product_id_limitinteger |
Maximum number of product ids to be returned for each ad when breakdown by product_id.
|
sortlist<string> | Default value: Vec
Field to sort the result, and direction of sorting. You can specify sorting direction by appending "_ascending" or "_descending" to the sort field. For example, "reach_descending". For actions, you can sort by action type in form of "actions:<action_type>". For example, ["actions:link_click_ascending"]. This array supports no more than one element. By default, the sorting direction is ascending.
|
summarylist<string> |
If this param is used, a summary section will be included, with the fields listed in this param.
|
summary_action_breakdownslist<enum{action_device, conversion_destination, matched_persona_id, matched_persona_name, signal_source_bucket, standard_event_content_type, action_canvas_component_name, action_carousel_card_id, action_carousel_card_name, action_destination, action_reaction, action_target_id, action_type, action_video_sound, action_video_type, is_business_ai_assisted}> | Default value: Vec
Similar to action_breakdowns, but applies to summary. Default value is ["action_type"].
|
time_incrementenum{monthly, all_days} or integer | Default value: all_days
If it is an integer, it is the number of days from 1 to 90. After you pick a reporting period by using time_range or date_preset, you may choose to have the results for the whole period, or have results for smaller time slices. If "all_days" is used, it means one result set for the whole period. If "monthly" is used, you will get one result set for each calendar month in the given period. Or you can have one result set for each N-day period specified by this param. This param is ignored if time_ranges is specified.
|
time_range{‘since’:YYYY-MM-DD,’until’:YYYY-MM-DD} |
A single time range object. UNIX timestamp not supported. This param is ignored if time_ranges is provided.
since datetime
A date in the format of "YYYY-MM-DD", which means from the beginning midnight of that day.
until datetime
A date in the format of "YYYY-MM-DD", which means to the beginning midnight of the following day.
Show child parameters |
time_rangeslist<{‘since’:YYYY-MM-DD,’until’:YYYY-MM-DD}> |
Array of time range objects. Time ranges can overlap, for example to return cumulative insights. Each time range will have one result set. You cannot have more granular results with time_increment setting in this case.If time_ranges is specified, date_preset, time_range and time_increment are ignored.
since datetime
A date in the format of "YYYY-MM-DD", which means from the beginning midnight of that day.
until datetime
A date in the format of "YYYY-MM-DD", which means to the beginning midnight of the following day.
Show child parameters |
use_account_attribution_settingboolean | Default value: false
When this parameter is set to true, your ads results will be shown using the attribution settings defined for the ad account.
|
use_unified_attribution_settingboolean |
When this parameter is set to true, your ads results will be shown using unified attribution settings defined at ad set level and parameter use_account_attribution_setting will be ignored.
|
{
"data": [],
"paging": {},
"summary": {}
}
| Field | Description |
|---|---|
account_currencystring |
Currency that is used by your ad account.
|
account_idnumeric string |
The ID number of your ad account, which groups your advertising activity. Your ad account includes your campaigns, ads and billing.
default |
account_namestring |
The name of your ad account, which groups your advertising activity. Your ad account includes your campaigns, ads and billing.
|
The total value of all conversions attributed to your ads.
| |
The total number of actions Accounts Center accounts took that are attributed to your ads. Actions may include engagement, clicks or conversions.
| |
actions_per_impressionnumeric string |
Total number of actions divided by the number of impessions.
|
The number of actions as a result of your ad. The results you see here are based on your objective.
| |
activity_recencystring |
activity_recency
|
ad_click_actions
| |
ad_format_assetstring |
ad_format_asset
|
ad_idnumeric string |
The unique ID of the ad you're viewing in reporting.
default |
ad_impression_actions
| |
ad_namestring |
The name of the ad you're viewing in reporting.
|
adjusted_offline_purchasenumeric string |
The number of purchase events that occurred offline and are attributed to your ads, after adjusting attribution settings and based on information received from your offline event set.
|
adset_endstring |
The date your ad set is scheduled to stop.
|
adset_idnumeric string |
The unique ID of the ad set you're viewing in reporting. An ad set is a group of ads that share the same budget, schedule, delivery optimization and targeting.
default |
adset_namestring |
The name of the ad set you're viewing in reporting. An ad set is a group of ads that share the same budget, schedule, delivery optimization and targeting.
|
adset_startstring |
The date your ad set is scheduled to start running.
|
anchor_event_attribution_settingstring |
anchor_event_attribution_setting
|
anchor_events_performance_indicatorstring |
anchor_events_performance_indicator
|
app_store_clicksnumeric string |
The number of clicks on links to an app store in your ads.
|
attention_events_per_impressionnumeric string |
attention_events_per_impression
|
attention_events_unq_per_reachnumeric string |
attention_events_unq_per_reach
|
attribution_settingstring |
The default attribution window to be used when attribution result is calculated. Each ad set has its own attribution setting value. The attribution setting for campaign or account is calculated based on existing ad sets.
|
auction_bidnumeric string |
auction_bid
|
auction_competitivenessnumeric string |
auction_competitiveness
|
auction_max_competitor_bidnumeric string |
auction_max_competitor_bid
|
body_assetAdAssetBody |
body_asset
|
buying_typestring |
The method by which you pay for and target ads in your campaigns: through dynamic auction bidding, fixed-price bidding, or reach and frequency buying. This field is currently only visible at the campaign level.
|
call_to_action_clicksnumeric string |
The number of times Accounts Center accounts clicked the call-to-action button on your ad.
|
campaign_endstring |
The date your campaign is scheduled to stop.
|
campaign_idnumeric string |
The unique ID number of the ad campaign you're viewing in reporting. Your campaign contains ad sets and ads.
default |
campaign_namestring |
The name of the ad campaign you're viewing in reporting. Your campaign contains ad sets and ads.
|
campaign_startstring |
The date your campaign is scheduled to start.
|
cancel_subscription_actions
| |
canvas_avg_view_percentnumeric string |
The average percentage of the Instant Experience that Accounts Center accounts saw. An Instant Experience is a screen that opens after someone interacts with your ad on a mobile device. It may include a series of interactive or multimedia components, including video, images product catalog and more.
|
canvas_avg_view_timenumeric string |
The average total time, in seconds, that Accounts Center accounts spent viewing an Instant Experience. An Instant Experience is a screen that opens after someone interacts with your ad on a mobile device. It may include a series of interactive or multimedia components, including video, images product catalog and more.
|
card_viewsnumeric string |
The number of times Accounts Center accounts viewed a product from your catalog in an ad. If you're using a carousel format, Accounts Center accounts may view multiple products in a single ad. Counts are updated daily, views for today are not included. This metric is currently in beta, and is only available for ads connected to a product catalog. This metric is in development.
|
The number of actions performed attributed to your ads promoting your catalog segment, broken down by action type.
| |
The total value of all conversions from your catalog segment attributed to your ads.
| |
The total value of all conversions from your catalog segment attributed to your ads, in the same currency as the catalog.
| |
The total return on ad spend (ROAS) from mobile app purchases for your catalog segment.
| |
The total return on ad spend (ROAS) from all purchases for your catalog segment.
| |
The total return on ad spend (ROAS) from website purchases for your catalog segment.
| |
clicksnumeric string |
The number of clicks on your ads.
|
coarse_conversion_valuestring |
Allows advertisers and ad networks to receive directional post-install quality insights when the volume of campaign conversions isn't high enough to meet the privacy threshold needed to unlock the standard conversion value. Possible values of this breakdown are low, medium and high.
Note: This breakdown is only supported by the total_postbacks_detailed_v4 field.
|
comparison_nodeAdsInsightsComparison |
Parent node that encapsulates fields to be compared (current time range Vs comparison time range)
|
comscore_marketstring |
comscore_market
|
conditional_time_spent_ms_over_10s_actions
| |
conditional_time_spent_ms_over_15s_actions
| |
conditional_time_spent_ms_over_2s_actions
| |
conditional_time_spent_ms_over_3s_actions
| |
conditional_time_spent_ms_over_6s_actions
| |
configurable attribution action
| |
configurable attribution actionvalue
| |
configurable_reachbyfrequency_actionnumeric string |
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
|
contact_actions
| |
contact_value
| |
conversion_values
| |
conversions
| |
converted_product_app_custom_event_fb_mobile_purchase
| |
converted_product_app_custom_event_fb_mobile_purchase_value
| |
converted_product_offline_purchase
| |
converted_product_offline_purchase_value
| |
converted_product_omni_purchase
| |
converted_product_omni_purchase_values
| |
The number of products purchased which are recorded by your merchant partner's pixel or app SDK for a given product ID and driven by your ads. Has to be used together with converted product ID breakdown.
| |
The value of purchases recorded by your merchant partner's pixel or app SDK for a given product ID and driven by your ads. Has to be used together with converted product ID breakdown.
| |
converted_product_website_pixel_purchase
| |
converted_product_website_pixel_purchase_value
| |
converted_promoted_product_app_custom_event_fb_mobile_purchase
| |
converted_promoted_product_app_custom_event_fb_mobile_purchase_value
| |
converted_promoted_product_offline_purchase
| |
converted_promoted_product_offline_purchase_value
| |
converted_promoted_product_omni_purchase
| |
converted_promoted_product_omni_purchase_values
| |
converted_promoted_product_quantity
| |
converted_promoted_product_value
| |
converted_promoted_product_website_pixel_purchase
| |
converted_promoted_product_website_pixel_purchase_value
| |
cost_per_15_sec_video_view
| |
cost_per_2_sec_continuous_video_view
| |
The average you paid for each action associated with your objective.
| |
The average cost of a relevant action.
| |
cost_per_ad_click
| |
cost_per_completed_video_view
| |
cost_per_contact
| |
cost_per_conversion
| |
cost_per_customize_product
| |
cost_per_dda_countby_convsnumeric string |
cost_per_dda_countby_convs
|
cost_per_donate
| |
cost_per_dwellnumeric string |
The average cost per 1,000 Dwells
|
cost_per_dwell_3_secnumeric string |
cost_per_dwell_3_sec
|
cost_per_dwell_5_secnumeric string |
cost_per_dwell_5_sec
|
cost_per_dwell_7_secnumeric string |
cost_per_dwell_7_sec
|
cost_per_find_location
| |
cost_per_inline_link_clicknumeric string |
The average cost of each inline link click.
|
cost_per_inline_post_engagementnumeric string |
The average cost of each inline post engagement.
|
cost_per_objective_resultlist<AdsInsightsResult> |
The average cost per objective result from your ads. Objective results are what you're trying to get the most of in your ad campaign, based on the objective you selected.
|
cost_per_one_thousand_ad_impression
| |
The average cost for each outbound click.
| |
cost_per_resultlist<AdsInsightsResult> |
The average cost per result from your ads.
|
cost_per_schedule
| |
cost_per_start_trial
| |
cost_per_submit_application
| |
cost_per_subscribe
| |
The average cost for each ThruPlay. This metric is in development.
| |
cost_per_total_actionnumeric string |
The average cost of a relevant action.
|
The average cost of each unique action. This metric is estimated.
| |
cost_per_unique_clicknumeric string |
The average cost for each unique click (all). This metric is estimated.
|
cost_per_unique_conversion
| |
cost_per_unique_inline_link_clicknumeric string |
The average cost of each unique inline link click. This metric is estimated.
|
The average cost for each unique outbound click. This metric is estimated.
| |
countrystring |
country
|
cpcnumeric string |
The average cost for each click (all).
|
cpmnumeric string |
The average cost for 1,000 impressions.
|
cppnumeric string |
The average cost to reach 1,000 Accounts Center accounts. This metric is estimated.
|
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_relaxation_asset_typestring |
creative_relaxation_asset_type
|
ctrnumeric string |
The percentage of times Accounts Center accounts saw your ad and performed a click (all).
|
customize_product_actions
| |
customize_product_value
| |
date_startstring |
The start date for your data. This is controlled by the date range you've selected for your reporting view.
default |
date_stopstring |
The end date for your data. This is controlled by the date range you've selected for your reporting view.
default |
dda_countby_convsnumeric string |
dda_countby_convs
|
dda_resultslist<AdsInsightsDdaResult> |
dda_results
|
deduping_1st_source_rationumeric string |
This is the auction removal rate for the ad set with the highest amount of audience overlap with the selected ad set.
|
deduping_2nd_source_rationumeric string |
This is the auction removal rate for the ad set with the second highest amount of audience overlap with the selected ad set.
|
deduping_3rd_source_rationumeric string |
This is the auction removal rate for the ad set with the third highest amount of audience overlap with the selected ad set.
|
deduping_rationumeric string |
The total auction removal rate is the percentage of auctions that an ad set did not compete in due to audience overlap with other ad sets.
|
deeplink_clicksnumeric string |
The number of clicks on links to specific parts of an app.
|
description_assetAdAssetDescription |
description_asset
|
device_platformstring |
device_platform
|
dmastring |
dma
|
donate_actions
| |
donate_value
| |
dwell_3_secnumeric string |
dwell_3_sec
|
dwell_5_secnumeric string |
dwell_5_sec
|
dwell_7_secnumeric string |
dwell_7_sec
|
dwell_ratenumeric string |
The number of times someone dwells on your display ad divided by the total number of impressions
|
fidelity_typestring |
To differentiate StoreKit-rendered ads from view-through ads, SKAdNetwork defines a fidelity-type parameter, which you include in the ad signature and receive in the install-validation postback. Use a fidelity-type value of 1 for StoreKit-rendered ads and attributable web ads, and 0 for view-through ads.
Note: This breakdown is only supported by the total_postbacks_detailed_v4 field.
|
find_location_actions
| |
find_location_value
| |
flexible_format_asset_typestring |
flexible_format_asset_type
|
frequencynumeric string |
The average number of times each person saw your ad. This metric is estimated.
|
frequency_valuestring |
frequency_value
|
full_view_impressionsnumeric string |
The number of Full Views on your Page's posts as a result of your ad.
|
full_view_reachnumeric string |
The number of Accounts Center accounts that performed a Full View on your Page's post as a result of your ad.
|
gen_ai_asset_typestring |
gen_ai_asset_type
|
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 |
The hsid key is available for ad impressions that use SKAdNetwork 4 and later. This integer can have up to four digits. You can encode information about your advertisement in each set of digits; you may receive two, three, or all four digits of the sourceIdentifier in the first winning postback, depending on the ad impression's postback data tier.
Note: This breakdown is only supported by the total_postbacks_detailed_v4 field.
|
image_assetAdAssetImage |
image_asset
|
impression_devicestring |
impression_device
|
impressionsnumeric string |
The number of times your ads were on screen.
default |
impressions_auto_refreshstring |
impressions_auto_refresh
|
impressions_grossstring |
impressions_gross
|
inline_link_click_ctrnumeric string |
The percentage of time Accounts Center accounts saw your ads and performed an inline link click.
|
inline_link_clicksnumeric string |
The number of clicks on links to select destinations or experiences, on or off Facebook-owned properties. Inline link clicks use a fixed 1-day-click attribution window.
|
inline_post_engagementnumeric string |
The total number of actions that Accounts Center accounts take involving your ads. Inline post engagements use a fixed 1-day-click attribution window.
|
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
| |
interactive_component_tap
| |
is_auto_advancestring |
is_auto_advance
|
landing_page_view_per_link_clicknumeric string |
landing_page_view_per_link_click
|
marketing_messages_deliverednumeric string |
The number of messages your business sent to customers that were delivered. Some messages may not be delivered, such as when a customer's device is out of service. This metric doesn’t include messages delivered to Europe and Japan. In some cases, this metric may be estimated and may differ from what’s shown on your invoice due to small variations in data processing.
|
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_read_rate_benchmarkstring |
We calculate this metric as the 75th percentile of read rates across similar businesses, representing the percentage of messages read out of total messages delivered.
|
media_assetAdAssetMedia |
media_asset
|
The total return on ad spend (ROAS) from mobile app purchases. This is based on the value that you assigned when you set up the app event.
| |
multi_event_conversion_attribution_settingstring |
multi_event_conversion_attribution_setting
|
newsfeed_avg_positionnumeric string |
The average position where your ad was inserted into news feeds on mobile and desktop. Position 1 is the one at the top of the feed.
|
newsfeed_clicksnumeric string |
The total number of clicks your ad received in news feed, on mobile and desktop.
|
newsfeed_impressionsnumeric string |
The total number of times your ad was inserted into news feeds, on mobile and desktop.
|
objectivestring |
The objective reflecting the goal you want to achieve with your advertising. It may be different from the selected objective of the campaign in some cases.
|
objective_result_ratelist<AdsInsightsResult> |
The number of objective results you received divided by the number of impressions.
|
objective_resultslist<AdsInsightsResult> |
The number of responses you wanted to achieve from your ad campaign, based on your selected objective. For example, if you selected promote your Page as your campaign objective, this metric shows the number of Page likes that happened as a result of your ads. Also known as results.
|
optimization_goalstring |
The optimization goal you selected for your ad or ad set. Your optimization goal reflects what you want to optimize for the ads.
|
The number of clicks on links that take Accounts Center accounts off Facebook-owned properties.
| |
The percentage of times Accounts Center accounts saw your ad and performed an outbound click.
| |
performance_indicatorstring |
performance_indicator
|
platform_positionstring |
platform_position
|
postback_sequence_indexstring |
Sequence of postbacks received from SkAdNetwork API version 4.0. Possible values of this breakdown are 0 (first postback), 1 (second postback) and 2 (third postback).
Note: This breakdown is only supported by the total_postbacks_detailed_v4 field.
|
private_attribution_conversionsunsigned integer |
private_attribution_conversions
|
product_brandstring |
product_brand
|
product_brand_breakdownstring |
product_brand_breakdown
|
product_categorystring |
product_category
|
product_category_breakdownstring |
product_category_breakdown
|
product_content_idstring |
product_content_id
|
product_custom_label_0string |
product_custom_label_0
|
product_custom_label_0_breakdownstring |
product_custom_label_0_breakdown
|
product_custom_label_1string |
product_custom_label_1
|
product_custom_label_1_breakdownstring |
product_custom_label_1_breakdown
|
product_custom_label_2string |
product_custom_label_2
|
product_custom_label_2_breakdownstring |
product_custom_label_2_breakdown
|
product_custom_label_3string |
product_custom_label_3
|
product_custom_label_3_breakdownstring |
product_custom_label_3_breakdown
|
product_custom_label_4string |
product_custom_label_4
|
product_custom_label_4_breakdownstring |
product_custom_label_4_breakdown
|
product_custom_number_0string |
product_custom_number_0
|
product_custom_number_1string |
product_custom_number_1
|
product_custom_number_2string |
product_custom_number_2
|
product_custom_number_3string |
product_custom_number_3
|
product_custom_number_4string |
product_custom_number_4
|
product_group_content_idstring |
product_group_content_id
|
product_group_content_id_breakdownstring |
product_group_content_id_breakdown
|
product_group_retailer_idstring |
product_group_retailer_id
|
product_idstring |
product_id
|
product_namestring |
product_name
|
product_retailer_idstring |
product_retailer_id
|
product_set_id_breakdownstring |
product_set_id_breakdown
|
product_vendor_idstring |
product_vendor_id
|
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
|
The total return on ad spend (ROAS) from purchases. This is based on information received from one or more of your connected Facebook Business Tools and attributed to your ads.
| |
qualifying_question_qualify_answer_ratenumeric string |
qualifying_question_qualify_answer_rate
|
reachnumeric string |
The number of Accounts Center accounts that saw your ads at least once. Reach is different from impressions, which may include multiple views of your ads by the same Accounts Center accounts. This metric is estimated.
|
recurring_subscription_payment_actions
| |
redownloadstring |
Boolean flag that indicates the customer redownloaded and reinstalled the app when the value is true. A 1 indicates customer has reinstalled the app and 0 indicates that customer hasn’t reinstalled the app
Note: This breakdown is only supported by the total_postbacks_detailed_v4 field.
|
reels_trending_topicstring |
reels_trending_topic
|
result_ratelist<AdsInsightsResult> |
The percentage of results you received out of all the views of your ads.
|
result_values_performance_indicatorstring |
result_values_performance_indicator
|
resultslist<AdsInsightsResult> |
The number of times your ad achieved an outcome, based on the objective and settings you selected.
|
rta_ugc_topicstring |
rta_ugc_topic
|
rule_assetAdAssetRule |
rule_asset
|
rule_set_idstring |
rule_set_id
|
rule_set_namestring |
rule_set_name
|
schedule_actions
| |
schedule_value
| |
shops_assisted_purchasesstring |
shops_assisted_purchases
|
skan_versionstring |
skan_version
|
social_spendnumeric string |
The total amount you've spent so far for your ads showed with social information. (ex: Jane Doe likes this).
|
spendnumeric string |
The estimated total amount of money you've spent on your campaign, ad set or ad during its schedule. This metric is estimated.
default |
start_trial_actions
| |
start_trial_value
| |
submit_application_actions
| |
submit_application_value
| |
subscribe_actions
| |
subscribe_value
| |
thumb_stopsnumeric string |
The number of times someone dwells on your display ad.
|
title_assetAdAssetTitle |
title_asset
|
today_spendnumeric string |
How much money you've spent on your campaign, ad set or ad since 12 AM today (in your ad account's time zone). If you set a daily budget, you'll see your progress toward it here to determine how much more you can spend before the day ends. This metric is estimated.
|
total_action_valuenumeric string |
total_action_value
|
total_actionsnumeric string |
The total number of actions Accounts Center accounts took that are attributed to your ads. Actions may include engagement, clicks or conversions.
|
total_card_viewstring |
total_card_view
|
total_unique_actionsnumeric string |
The number of Accounts Center accounts that took an action that was attributed to your ads. This metric is estimated.
|
unique_impressionsnumeric string |
The number of Accounts Center accounts that saw your ads at least once.
|
updated_timestring |
updated_time
|
user_segment_keystring |
user_segment_key
|
The number of times your video played for at least 30 seconds, or for nearly its total length if it's shorter than 30 seconds. For each impression of a video, we'll count video views separately and exclude any time spent replaying the video.
| |
video_assetAdAssetVideo |
video_asset
|
The average time a video was played, including any time spent replaying the video for a single impression.
| |
This shows the number of total views of at least 30 seconds or to the end of your video, whichever occurs first.
| |
video_completed_view_or_15s_passed_actions
| |
video_continuous_2_sec_watched_actions
| |
The number of times your video was played at 100% of its length, including plays that skipped to this point.
| |
The number of times your video was played at 25% of its length, including plays that skipped to this point.
| |
The number of times your video was played at 50% of its length, including plays that skipped to this point.
| |
The number of times your video was played at 75% of its length, including plays that skipped to this point.
| |
The number of times your video was played at 95% of its length, including plays that skipped to this point.
| |
The number of times your video starts to play. This is counted for each impression of a video, and excludes replays. This metric is in development.
| |
video_play_curve_actionslist<AdsHistogramStats> |
A video-play based curve graph that illustrates the percentage of video plays that reached a given second. Entries 0 to 14 represent seconds 0 thru 14. Entries 15 to 17 represent second ranges [15 to 20), [20 to 25), and [25 to 30). Entries 18 to 20 represent second ranges [30 to 40), [40 to 50), and [50 to 60). Entry 21 represents plays over 60 seconds.
|
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_time_watched_actions
| |
website_clicksnumeric string |
The number of clicks on links to your website in your ads.
|
The percentage of times Accounts Center accounts saw your ad and performed a link click.
| |
The total return on ad spend (ROAS) from website purchases. This is based on the value of all conversions recorded by the Facebook pixel on your website and attributed to your ads.
| |
wish_bidnumeric string |
wish_bid
|
zipstring |
zip
|
| Error Code | Description |
|---|---|
100 | Invalid parameter |
3018 | The start date of the time range cannot be beyond 37 months from the current date |
2642 | Invalid cursors values |
2635 | You are calling a deprecated version of the Ads API. Please update to the latest version. |
190 | Invalid OAuth 2.0 Access Token |
200 | Permissions error |
104 | Incorrect signature |
613 | Calls to this api have exceeded the rate limit. |
2500 | Error parsing graph query |
| Parameter | Description |
|---|---|
action_attribution_windowslist<enum{1d_view, 7d_view, 28d_view, 1d_click, 7d_click, 28d_click, 1d_ev, dda, default, 7d_view_first_conversion, 28d_view_first_conversion, 7d_view_all_conversions, 28d_view_all_conversions, skan_view, skan_click, skan_click_second_postback, skan_view_second_postback, skan_click_third_postback, skan_view_third_postback}> | Default value: default
The attribution window for the actions. The attribution window determines the window (e.g. 7d) and engagement type (e.g click) that’s used as a filter to report actions. See About attribution settings and models for examples. The default option means ["7d_view","1d_click"].
|
action_breakdownslist<enum{action_device, conversion_destination, matched_persona_id, matched_persona_name, signal_source_bucket, standard_event_content_type, action_canvas_component_name, action_carousel_card_id, action_carousel_card_name, action_destination, action_reaction, action_target_id, action_type, action_video_sound, action_video_type, is_business_ai_assisted}> | Default value: Vec
How to break down action results. Supports more than one breakdowns. Default value is ["action_type"]
Note: you must also include actions field whenever action_breakdowns is specified.
|
action_report_timeenum{impression, conversion, mixed, lifetime} |
Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you will see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you will see a conversion on Jan 2nd
|
breakdownslist<enum{ad_extension_domain, ad_extension_url, ad_format_asset, age, app_id, body_asset, breakdown_ad_objective, breakdown_reporting_ad_id, call_to_action_asset, coarse_conversion_value, comscore_market, country, creative_automation_asset_id, creative_relaxation_asset_type, crm_advertiser_l12_territory_ids, crm_advertiser_subvertical_id, crm_advertiser_vertical_id, crm_ult_advertiser_id, description_asset, fidelity_type, flexible_format_asset_type, gen_ai_asset_type, gender, hsid, image_asset, impression_device, is_auto_advance, is_conversion_id_modeled, is_rendered_as_delayed_skip_ad, landing_destination, link_url_asset, mdsa_landing_destination, media_asset_url, media_creator, media_destination_url, media_format, media_origin_url, media_text_content, media_type, postback_sequence_index, product_brand_breakdown, product_category_breakdown, product_custom_label_0_breakdown, product_custom_label_1_breakdown, product_custom_label_2_breakdown, product_custom_label_3_breakdown, product_custom_label_4_breakdown, product_group_content_id_breakdown, product_id, redownload, region, rta_ugc_topic, skan_campaign_id, skan_conversion_id, skan_version, sot_attribution_model_type, sot_attribution_window, sot_channel, sot_event_type, sot_source, title_asset, user_persona_id, user_persona_name, video_asset, zip, rule_set_id, rule_set_name, dma, frequency_value, hourly_stats_aggregated_by_advertiser_time_zone, hourly_stats_aggregated_by_audience_time_zone, mmm, place_page_id, publisher_platform, platform_position, device_platform, standard_event_content_type, conversion_destination, signal_source_bucket, reels_trending_topic, marketing_messages_btn_name, impression_view_time_advertiser_hour_v2}> |
How to break down the result. For more than one breakdown, only certain combinations are available: See "Combining Breakdowns" in the Breakdowns page. The option impression_device cannot be used by itself
|
date_presetenum{today, yesterday, this_month, last_month, this_quarter, maximum, data_maximum, last_3d, last_7d, last_14d, last_28d, last_30d, last_90d, last_week_mon_sun, last_week_sun_sat, last_quarter, last_year, this_week_mon_today, this_week_sun_today, this_year} | Default value: last_30d
Represents a relative time range. This field is ignored if time_range or time_ranges is specified
|
default_summaryboolean | Default value: false
Determine whether to return a summary. If summary is set, this param will be ignored; otherwise, a summary section with the same fields as specified by fields will be included in the summary section
|
export_columnslist<string> |
Select fields on the exporting report file. It is an optional param. Exporting columns will equals to the param fields if you leave this param blank
|
export_formatstring |
Set the format of exporting report file. If the export_format is set, Report file will be asyncrhonizely generated. It expects ["xls", "csv"].
|
export_namestring |
Set the file name of the exporting report.
|
fieldslist<string> |
Fields to be retrieved. Default behavior is to return a list of most used fields
|
filteringlist<Filter Object> | Default value: Vec
Filters on the report data. This parameter is an array of filter objects
field stringrequired operator enum {EQUAL, NOT_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, IN_RANGE, NOT_IN_RANGE, CONTAIN, NOT_CONTAIN, CONTAINS_ANY, CONTAINS_ALL, NOT_CONTAINS_ANY, STEM_MATCH, IN, NOT_IN, STARTS_WITH, ENDS_WITH, ANY, ALL, AFTER, BEFORE, ON_OR_AFTER, ON_OR_BEFORE, NONE, TOP}required value stringrequired Show child parameters |
levelenum {ad, adset, campaign, account} |
Represents the level of result
|
limitinteger |
limit
|
product_id_limitinteger |
Maximun number of product ids to be returned for each ad when breakdown by product_id
|
sortlist<string> | Default value: Vec
Field to sort the result, and direction of sorting. You can specify sorting direction by appending "_ascending" or "_descending" to the sort field. For example, "reach_descending". For actions, you can sort by action type in form of "actions:<action_type>". For example, ["actions:link_click_ascending"]. This array supports no more than one element. By default, the sorting direction is ascending
|
summarylist<string> |
If this param is used, a summary section will be included, with the fields listed in this param
|
summary_action_breakdownslist<enum{action_device, conversion_destination, matched_persona_id, matched_persona_name, signal_source_bucket, standard_event_content_type, action_canvas_component_name, action_carousel_card_id, action_carousel_card_name, action_destination, action_reaction, action_target_id, action_type, action_video_sound, action_video_type, is_business_ai_assisted}> | Default value: Vec
Similar to action_breakdowns, but applies to summary. Default value is ["action_type"]
|
time_incrementenum{monthly, all_days} or integer | Default value: all_days
If it is an integer, it is the number of days from 1 to 90. After you pick a reporting period by using time_range or date_preset, you may choose to have the results for the whole period, or have results for smaller time slices. If "all_days" is used, it means one result set for the whole period. If "monthly" is used, you will get one result set for each calendar month in the given period. Or you can have one result set for each N-day period specified by this param. This param is ignored if time_ranges is specified
|
time_range{‘since’:YYYY-MM-DD,’until’:YYYY-MM-DD} |
A single time range object. UNIX timestamp not supported. This param is ignored if time_ranges is provided
since datetime
A date in the format of "YYYY-MM-DD", which means from the beginning midnight of that day.
until datetime
A date in the format of "YYYY-MM-DD", which means to the beginning midnight of the following day.
Show child parameters |
time_rangeslist<{‘since’:YYYY-MM-DD,’until’:YYYY-MM-DD}> |
Array of time range objects. Time ranges can overlap, for example to return cumulative insights. Each time range will have one result set. You cannot have more granular results with time_increment setting in this case.If time_ranges is specified, date_preset, time_range and time_increment are ignored
since datetime
A date in the format of "YYYY-MM-DD", which means from the beginning midnight of that day.
until datetime
A date in the format of "YYYY-MM-DD", which means to the beginning midnight of the following day.
Show child parameters |
use_account_attribution_settingboolean | Default value: false
When this parameter is set to true, your ads results will be shown using the attribution settings defined for the ad account
|
use_unified_attribution_settingboolean |
When this parameter is set to true, your ads results will be shown using unified attribution settings defined at ad set level and parameter use_account_attribution_setting will be ignored.
|
Struct {
report_run_id: numeric string,
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |
200 | Permissions error |
190 | Invalid OAuth 2.0 Access Token |
2635 | You are calling a deprecated version of the Ads API. Please update to the latest version. |