curl \
-F 'name="new study"' \
-F 'description="test creative"' \
-F 'start_time=1435622400' \
-F 'end_time=1436918400' \
-F 'type=SPLIT_TEST' \
-F 'cells=[{name:"Group A",treatment_percentage:50,adsets:[<AD_SET_ID>]},{name:"Group B",treatment_percentage:50,adsets:[<AD_SET_ID>]}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/<BUSINESS_ID>/ad_studies
| Study Type | Use Case |
|---|---|
Inform near-term optimization decisions. Example: Is Creative A doing better than Creative B? | |
Measure incremental impact of Facebook ads on business outcomes. | |
Measure incremental impact of different Facebook ads strategies on business outcomes. | |
Retrieve and analyze your brand lift study results. |
HTTP GET to:
https://graph.facebook.com/<API_VERSION>/<AD_STUDY_ID>
curl -G \
-d 'fields="name,treatment_percentage,campaigns,adsets,adaccounts"' \
-d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/<AD_STUDY_ID>/cells
// The response
{
"data": [
{
"id": "<CELL_ID>",
"name": Group A,
"treatment_percentage": 50,
"adsets": {
"data": [
{
"id": "<AD_SET_ID>"
}
],
}
},
{
"id": "<CELL_ID>",
"name": Group B,
"treatment_percentage": 50,
"adsets": {
"data": [
{
"id": "<AD_SET_ID>"
}
],
}
}
],
}
GET /v25.0/{ad-study-id} HTTP/1.1
Host: graph.facebook.com
| Field | Description |
|---|---|
idnumeric string |
ID of the Lift study
default |
The business that owns this study if it exists.
| |
canceled_timedatetime |
Time stamp when study was canceled
|
cooldown_start_timedatetime |
Cooldown start time
|
Who Lift study was created by
| |
created_timedatetime |
When was the Lift study created
|
descriptionstring |
Description
default |
end_timedatetime |
End time
default |
namestring |
Name of the Lift study
default |
observation_end_timedatetime |
Observation end time
|
results_first_available_datestring |
When results for at least one objective of the study are available
|
start_timedatetime |
Start time
default |
typestring |
The type of study, either audience segmentation or lift.
|
Updated by
| |
updated_timedatetime |
Updated time
|
| Edge | Description |
|---|---|
cellsEdge<AdStudyCell> |
The cells which are part of the objective
|
objectivesEdge<AdStudyObjective> |
The objectives which are part of the objective
|
| Error Code | Description |
|---|---|
368 | The action attempted has been deemed abusive or is otherwise disallowed |
100 | Invalid parameter |
190 | Invalid OAuth 2.0 Access Token |
treatment_percentage for each cell should be at least 10.
treatment_percentage for all study cells should be less or equal to 100.
adaccounts, campaigns, or adsets.
| Parameter | Description |
|---|---|
cellslist<Object> |
A shape to describe the cells of the study
description stringid int64name stringcreation_template enum {AUTOMATIC_PLACEMENTS, BRAND_AWARENESS, FACEBOOK, FACEBOOK_AUDIENCE_NETWORK, FACEBOOK_INSTAGRAM, FACEBOOK_NEWS_FEED, FACEBOOK_NEWS_FEED_IN_STREAM_VIDEO, IN_STREAM_VIDEO, INSTAGRAM, MOBILE_OPTIMIZED_VIDEO, PAGE_POST_ENGAGEMENT, REACH, TV_COMMERCIAL, TV_FACEBOOK, VIDEO_VIEW_OPTIMIZATION, LOW_FREQUENCY, MEDIUM_FREQUENCY, HIGH_FREQUENCY}adaccounts list<int64>ads list<numeric string or integer>adsets list<numeric string or integer>campaigns list<numeric string or integer>control_percentage float with at most two digits after decimal pointtreatment_percentage float with at most two digits after decimal pointShow child parameters |
client_businessnumeric string or integer |
Business associated with study
|
confidence_levelfloat |
Confidence level used in power calculation and final report
|
cooldown_start_timeinteger |
The beginning of the pre measurement cooldown period. This period ends when the study period starts.
|
creative_test_configJSON object |
(Optional) Configuration for launching a 2-5 cell creative test. Specify either daily_budget or lifetime_budget_percentage to set the budget allocation for the study across the cells' ads. Study "type" field must be defined as SPLIT_TEST_V2 when creative_test_config is included in the request.
|
descriptionstring |
A brief description about the purpose of the study.
|
end_timeinteger |
The time when the study period ends.
|
namestring |
The name of the study.
|
objectiveslist<Object> |
A vector of objects describing the objectives assigned to this study
id numeric string or integeris_primary booleanname stringtype enum {SALES, NONSALES, MAE, TELCO, FTL, MAI, PARTNER, BRANDLIFT, BRAND, MPC_CONVERSION, CONVERSIONS}offsite_datasets list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters adspixels list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters customconversions list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters applications list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters offline_conversion_data_sets list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters product_sets list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters product_catalogs list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters Show child parameters |
observation_end_timeinteger |
The end of the observation period for this study, this period starts when the study period ends.
|
start_timeinteger |
The time when the study period starts.
|
typeenum {LIFT, SPLIT_TEST, CONTINUOUS_LIFT_CONFIG, GEO_LIFT, BACKEND_AB_TESTING, CREATIVE_SPEND_ENFORCEMENT, PORTFOLIO_OPTIMIZER, VERSION_CONTROL} |
The type of ad study, either SPLIT_TEST or LIFT.
|
viewerslist<int> |
The list of people who this study has been shared with.
|
Struct {
id: numeric string,
cell_ids: List [numeric string],
objective_ids: List [numeric string],
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |
200 | Permissions error |
| Parameter | Description |
|---|---|
cellslist<Object> |
Describes the cells in the study.
required description stringid int64name stringcreation_template enum {AUTOMATIC_PLACEMENTS, BRAND_AWARENESS, FACEBOOK, FACEBOOK_AUDIENCE_NETWORK, FACEBOOK_INSTAGRAM, FACEBOOK_NEWS_FEED, FACEBOOK_NEWS_FEED_IN_STREAM_VIDEO, IN_STREAM_VIDEO, INSTAGRAM, MOBILE_OPTIMIZED_VIDEO, PAGE_POST_ENGAGEMENT, REACH, TV_COMMERCIAL, TV_FACEBOOK, VIDEO_VIEW_OPTIMIZATION, LOW_FREQUENCY, MEDIUM_FREQUENCY, HIGH_FREQUENCY}adaccounts list<int64>ads list<numeric string or integer>adsets list<numeric string or integer>campaigns list<numeric string or integer>control_percentage float with at most two digits after decimal pointtreatment_percentage float with at most two digits after decimal pointShow child parameters |
client_businessnumeric string or integer |
Business associated with the study.
|
confidence_levelfloat |
Confidence level used in power calculations and final study report.
|
cooldown_start_timeinteger |
Start of the pre-measurement cool-down period. This period ends when the study period starts.
|
creative_test_configJSON object |
(Optional) Configuration for launching a 2-5 cell creative test. Specify either daily_budget or lifetime_budget_percentage to set the budget allocation for the study across the cells' ads. The study's "type" field must also be defined as SPLIT_TEST_V2 when creative_test_config is included in the request.
|
descriptionstring |
The purpose of the study.
|
end_timeinteger |
Time when the study period ends.
required |
namestring |
Name of the study.
required |
objectiveslist<Object> |
A vector of objects describing the objectives assigned to this study.
id numeric string or integeris_primary booleanname stringtype enum {SALES, NONSALES, MAE, TELCO, FTL, MAI, PARTNER, BRANDLIFT, BRAND, MPC_CONVERSION, CONVERSIONS}offsite_datasets list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters adspixels list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters customconversions list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters applications list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters offline_conversion_data_sets list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters product_sets list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters product_catalogs list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters Show child parameters |
observation_end_timeinteger |
The end of the observation period for this study. This period starts when the study period ends.
|
start_timeinteger |
The time when the study period starts.
required |
typeenum {LIFT, SPLIT_TEST, CONTINUOUS_LIFT_CONFIG, GEO_LIFT, BACKEND_AB_TESTING, CREATIVE_SPEND_ENFORCEMENT, PORTFOLIO_OPTIMIZER, VERSION_CONTROL} |
The type of ad study, such as SPLIT_TEST or LIFT.
|
viewerslist<int> |
This study is shared with these people.
|
Struct {
id: numeric string,
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |
200 | Permissions error |
curl \ -F 'name="new name"' \ -F 'end_time=1437004800' \ -F 'access_token=<ACCESS_TOKEN>' \ https://graph.facebook.com/<API_VERSION>/<AD_STUDY_ID>
treatment_percentage of all the cells:
curl \
-F 'cells=[{id:<CELL_ID>,treatment_percentage:50},{id:<CELL_ID>,treatment_percentage:10},{name:"Group C",treatment_percentage:20,adsets:[<AD_SET_ID>]}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<API_VERSION>/<AD_STUDY_ID>
treatment_percentage for a cell, do it at the study level along with other cells. You also make updates to a study to add additional cells to it. You must provide the percentage of all existing and new cells in the study update since they are correlated.
start_time, treatment_percentage for cells. You cannot remove associated objects such as adsets, adaccounts, campaigns. However, you can update end_time to the future time if the study is not yet ended and add new associated objects to the cells if needed.
| Parameter | Description |
|---|---|
cellslist<Object> |
A shape to describe the cells of the study
description stringid int64name stringcreation_template enum {AUTOMATIC_PLACEMENTS, BRAND_AWARENESS, FACEBOOK, FACEBOOK_AUDIENCE_NETWORK, FACEBOOK_INSTAGRAM, FACEBOOK_NEWS_FEED, FACEBOOK_NEWS_FEED_IN_STREAM_VIDEO, IN_STREAM_VIDEO, INSTAGRAM, MOBILE_OPTIMIZED_VIDEO, PAGE_POST_ENGAGEMENT, REACH, TV_COMMERCIAL, TV_FACEBOOK, VIDEO_VIEW_OPTIMIZATION, LOW_FREQUENCY, MEDIUM_FREQUENCY, HIGH_FREQUENCY}adaccounts list<int64>ads list<numeric string or integer>adsets list<numeric string or integer>campaigns list<numeric string or integer>control_percentage float with at most two digits after decimal pointtreatment_percentage float with at most two digits after decimal pointShow child parameters |
client_businessnumeric string or integer |
Business associated with study
|
confidence_levelfloat |
Confidence level used in power calculation and final report
|
cooldown_start_timeinteger |
The beginning of the pre measurement cooldown period. This period ends when the study period starts.
|
creative_test_configJSON object |
(Optional) Configuration for launching a 2-5 cell creative test. Specify either daily_budget or lifetime_budget_percentage to set the budget allocation for the study across the cells' ads. Must be used with study type SPLIT_TEST_V2
|
descriptionstring |
A brief description about the purpose of the study.
|
end_timeinteger |
The time when the study period ends.
|
namestring |
The name of the study.
|
objectiveslist<Object> |
A vector of objects describing the objectives assigned to this study
id numeric string or integeris_primary booleanname stringtype enum {SALES, NONSALES, MAE, TELCO, FTL, MAI, PARTNER, BRANDLIFT, BRAND, MPC_CONVERSION, CONVERSIONS}offsite_datasets list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters adspixels list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters customconversions list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters applications list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters offline_conversion_data_sets list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters product_sets list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters product_catalogs list<JSON or object-like arrays>id numeric string or integerrequired event_names list<string>Show child parameters Show child parameters |
observation_end_timeinteger |
The end of the observation period for this study, this period starts when the study period ends.
|
start_timeinteger |
The time when the study period starts.
|
typeenum {LIFT, SPLIT_TEST, CONTINUOUS_LIFT_CONFIG, GEO_LIFT, BACKEND_AB_TESTING, CREATIVE_SPEND_ENFORCEMENT, PORTFOLIO_OPTIMIZER, VERSION_CONTROL} |
A type of the study.
|
viewerslist<int> |
The list of people who this study has been shared with.
|
Struct {
success: bool,
cell_ids: List [numeric string],
objective_ids: List [numeric string],
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |
200 | Permissions error |
curl -X DELETE
"https://graph.facebook.com/<API_VERSION>/<AD_STUDY_ID>"