For the complete documentation index, see llms.txt. This page is also available as Markdown.

Facebook Ads - Parameters

The query parameters available to a Facebook Ads connector.

These are the parameters a Facebook Ads connector's query accepts. The recommended template sets the ones it needs; the rest are only reachable by editing the connector in the Advanced Editor.

Most accounts never touch these. The page exists so that when a connector does need adjusting, what is adjustable is written down. The columns it can return are listed separately on Facebook Ads - Supported Columns.

Parameters

Parameter
Type
Default
What it does

ReachStartDate

date

Fields

list of text

empty

Fields to be retrieved. Default behavior is to return impressions and spend.

IncludeAdCreatives

true or false

If set to true it will include additionally Ad creatives for given campaign ID.

Breakdowns

text

Determines how to break down the result. For more than one breakdown, only certain combinations are available: See: Combining Breakdowns (https://developers.facebook.com/docs/marketing-api/insights/breakdowns#combiningbreakdowns) and the Breakdowns (https://developers.facebook.com/docs/marketing-api/insights/breakdowns) page. The option impression_device cannot be used by itself.

Sort

text

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.

Level

text

"ad"

Represents the level of result (one of: ad, adset, campaign, account).

Filtering

text

Filters on the report data. This parameter is an array of filter objects.

ActionBreakdowns

text

How to break down action results. Supports more than one breakdowns. Possible values are: action_device, 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. Default value is ["action_type"].

ActionReportTime

text

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. enum{impression, conversion, mixed}

ActionAttributionWindows

text

The attribution window for the actions. For example, 28d_click means the API returns all actions that happened 28 days after someone clicked on the ad. If you do not provide action_attribution_windows 7d_click will be used and provide under value. enum{1d_view, 7d_view, 28d_view, 1d_click, 7d_click, 28d_click, dda, default, skan_view, skan_click

UseUnifiedAttributionSetting

true or false

Value that indicates if unified attribution settings should be used. 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.

Reach

true or false

If this parameter is set to true time_increment parameter will be set to all_days, otherwise to 1. time_increment parameter explanation: 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.

CheckForMissingData

true or false

If the connector should anticipate that the report will be missing data for some Campaign/AdSet/Ad (depending on Level), check for any try to load them separately

Method

ReportMethod

ReportMethod.AccountLevel

How report is generated

ReportMethod values

Value
Meaning

AccountLevel

Create report on account-level and hope that Facebook returns all necessary Level objects

LevelLevel

List objects based on Level and than request the report with IDs listed in filter

Was this helpful?