Create ad set
meta_create_adsetCreate an ad set in a campaign; it starts PAUSED. targeting and promoted_object are JSON objects; budgets and bids are in minor currency units. With no bid_strategy, bid_amount or bid_constraints it uses LOWEST_COST_WITHOUT_CAP, or the campaign's strategy when the campaign holds the budget. targeting.targeting_automation.advantage_audience: pass it, or AdChat sends 0 when you set ages, genders or detailed targeting, else 1. is_dynamic_creative: true makes a Dynamic Creative ad set (one ad, format "dynamic" creative) and can't change later. Changes the ad account: tell the user exactly what will change and call only after their Yes. If the result lists rule reasons, nothing changed: show them, ask again, and only after a new Yes retry with acknowledge_rules: true.
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>",
"optimization_goal": "<optimization_goal>",
"account_id": "<account_id>",
"campaign_id": "<campaign_id>",
"billing_event": "<billing_event>"
},
"name": "meta_create_adset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| status | No | ||
| end_time | No | ||
| dsa_payor | No | ||
| targeting | No | ||
| account_id | Yes | e.g. act_1234567890 | |
| bid_amount | No | ||
| start_time | No | ||
| campaign_id | Yes | A string, never a number | |
| bid_strategy | No | ||
| daily_budget | No | ||
| billing_event | Yes | ||
| bid_adjustments | No | ||
| bid_constraints | No | ||
| dsa_beneficiary | No | ||
| lifetime_budget | No | ||
| promoted_object | No | ||
| attribution_spec | No | ||
| destination_type | No | ||
| acknowledge_rules | No | Only on a retry after the user's Yes to rule reasons; never on a first call. | |
| optimization_goal | Yes | ||
| is_dynamic_creative | No | ||
| multi_advertiser_ads | No | ||
| frequency_control_specs | No | ||
| regional_regulated_categories | No | ||
| regional_regulation_identities | No |