Meta: Create A/B Test
meta_create_ab_testStart a Meta A/B (split) test between 2 to 5 existing campaigns or ad sets in your ad account: Meta splits the audience evenly so each one reaches different people for duration_days, then names a winner on cost per result. To test creatives, put each in its own ad set. The tested objects keep their own budgets and status; active ones keep spending. Change it with meta_update_ab_test, stop it with meta_end_ab_test.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"level": "<level>",
"object_ids": "<object_ids>",
"duration_days": "<duration_days>"
},
"name": "meta_create_ab_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Test name. | |
| level | Yes | Whether the ids are CAMPAIGN or ADSET ids. | |
| object_ids | Yes | 2 to 5 campaign or ad set ids, one per test cell. | |
| start_time | No | Optional start, ISO 8601 with offset. Default: now. | |
| description | No | Optional description, e.g. the hypothesis. | |
| ad_account_id | No | Meta ad account to change: act_ id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then. | |
| duration_days | Yes | How long the test runs, 1 to 30 days. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cells | Yes | Number of test cells. | |
| endTime | Yes | End, Unix seconds. | |
| studyId | Yes | Id of the A/B test. | |
| startTime | Yes | Start, Unix seconds. | |
| businessId | Yes | Business the test belongs to. |