breakdowns=mmm parameter. Note: It is not supported in combination with other breakdowns or action_breakdowns.level=adset parameter). Currently, the supported metrics for marketing mix modeling data are impressions and spend. Note: The spend metric is estimated. See Insights API, Estimated and Deprecated Metrics for more information.ads_readexport_format=csv parameter results in a downloaded file with column names that match those in Ads Manager.time_increment can be set to 1 day (i.e., 1), otherwise all_time will be used by default.curl GET \
-F "access_token=<ACCESS_TOKEN>" \
-F "breakdowns=mmm" \
-F “export_format=csv” \
-F "time_increment=1" \
"https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/insights
GET API call to the /insights endpoint with breakdowns=mmm.curl GET \
-F "access_token=<ACCESS_TOKEN>" \
-F "breakdowns=mmm" \
"https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/insights"
time_range and date_preset parameters. The granularity of the response can be increased further by using time_increment.curl GET \
-F "access_token=<ACCESS_TOKEN>" \
-F "breakdowns=mmm" \
-F "date_preset=last_7d" \
-F "time_increment=1” \
"https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/insights"
/owned_ad_accounts and /client_ad_accounts endpoints. Then iterate over the returned individual ad account IDs to query the marketing mix modeling data for each ad account./owned_ad_accountscurl GET \
-F "access_token=<ACCESS_TOKEN>" \
"https://graph.facebook.com/v25.0/<BUSINESS_ID>/owned_ad_accounts"
/client_ad_accountscurl GET \
-F "access_token=<ACCESS_TOKEN>" \
"https://graph.facebook.com/v25.0/<BUSINESS_ID>/client_ad_accounts"
time_range and filtering parameters and query for the total time range in sections. To learn more, see Insights API Limits & Best Practices.filtering supported for querying the marketing mix modeling data. Only these listed operator combinations are allowed for a field; other usages of filtering will return an error.| Field | Allowed Operators |
|---|---|
campaign.id | IN, NOT_IN |
campaign.name | CONTAIN, NOT_CONTAIN |
adset.id | IN, NOT_IN |
adset.name | CONTAIN, NOT_CONTAIN |
country | IN |
region | IN |
dma | IN |
device_platform | IN |
publisher_platform | IN |
platform_position | IN |
id of an Ad Report Run, which you can query for the job status and to retrieve the computed data. Note: Some requests can time out even as an asynchronous job. For more information, see Insights API Asynchronous Jobs.| Column Index | Default Column Headers from Marketing Mix Modeling Breakdown |
|---|---|
0 | account_id |
1 | campaign_id |
2 | adset_id |
3 | date_start |
4 | date_stop |
5 | impressions |
6 | spend |
7 | country |
8 | region |
9 | dma |
10 | device_platform |
11 | platform_position |
12 | publisher_platform |
13 | creative_media_type |