Create Ad Set
meta_create_adsetCreate a new ad set in a Meta ad campaign by specifying targeting, budget, and optimization goals. Returns the new ad set ID for immediate use.
Instructions
Creates a new ad set within a campaign.
Args:
ad_account_id (string): Ad account ID (e.g., act_123456789)
campaign_id (string): Parent campaign ID
name (string): Ad set name
daily_budget (number, optional): Daily budget in cents
lifetime_budget (number, optional): Lifetime budget in cents (requires end_time)
billing_event (string): How you're charged: IMPRESSIONS, LINK_CLICKS, etc.
optimization_goal (string): What to optimize for: REACH, LINK_CLICKS, CONVERSIONS, etc.
targeting (object): Targeting spec JSON. Example: {"geo_locations": {"countries": ["US"]}, "age_min": 18, "age_max": 65}
start_time (string, optional): ISO 8601 start time
end_time (string, optional): ISO 8601 end time (required with lifetime_budget)
status (string): ACTIVE or PAUSED (default PAUSED)
placement_soft_opt_out (string[], optional): Placements to soft opt-out (up to 5% spend may still go to these). Only for Sales/Leads objectives.
Returns the new ad set ID.
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": {
"ad_account_id": "<ad_account_id>",
"campaign_id": "<campaign_id>",
"name": "<name>",
"billing_event": "<billing_event>",
"optimization_goal": "<optimization_goal>",
"targeting": "<targeting>"
},
"name": "meta_create_adset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| status | No | PAUSED | |
| end_time | No | ||
| targeting | Yes | Targeting spec object (geo_locations, age, interests, etc.) | |
| start_time | No | ||
| campaign_id | Yes | Parent campaign ID | |
| daily_budget | No | ||
| ad_account_id | Yes | Ad account ID | |
| billing_event | Yes | Billing event type | |
| lifetime_budget | No | ||
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |
| optimization_goal | Yes | Optimization goal | |
| placement_soft_opt_out | No | Placements to soft opt-out (up to 5% spend may still go to these for better performance). Only for Sales/Leads objectives. |