create_custom_audience
Create a Meta Ads custom audience for targeting by defining its name and subtype, such as website, app, customer list, or engagement.
Instructions
Create a new custom audience. Subtype determines the audience source (CUSTOM, WEBSITE, APP, OFFLINE_CONVERSION, LOOKALIKE, ENGAGEMENT, etc.).
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>",
"subtype": "<subtype>"
},
"name": "create_custom_audience"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Audience name | |
| rule | No | JSON object defining website, video, or engagement audience rules. This creates an audience; validate-only is not supported. | |
| subtype | Yes | Audience subtype | |
| pixel_id | No | Pixel ID for website audiences | |
| account_id | No | Ad account ID to create the audience in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. | |
| description | No | Audience description | |
| retention_days | No | Retention period; allowed range depends on the audience source | |
| customer_file_source | No | Source of customer file: USER_PROVIDED_ONLY, PARTNER_PROVIDED_ONLY, BOTH_USER_AND_PARTNER_PROVIDED |