curl --request POST \
--url 'https://api.adside.ai/meta/mcp#create_ad_set_enhanced' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "<string>",
"method": "<string>",
"params": {
"name": "<string>",
"arguments": {
"campaign_id": "<string>",
"name": "<string>",
"optimization_goal": "<string>",
"billing_event": "<string>",
"daily_budget": 123,
"lifetime_budget": 123,
"bid_amount": 123,
"start_time": "<string>",
"end_time": "<string>",
"promoted_object": {
"page_id": "<string>",
"pixel_id": "<string>",
"application_id": "<string>",
"object_store_url": "<string>",
"custom_event_type": "<string>"
},
"attribution_spec": [
{
"event_type": "CLICK_THROUGH",
"window_days": 1
}
],
"destination_type": "WEBSITE",
"is_dynamic_creative": true,
"use_new_app_click": true,
"configured_status": "ACTIVE",
"optimization_sub_event": "NONE",
"recurring_budget_semantics": true,
"targeting": {
"geo_locations": {
"countries": [
"US"
],
"location_types": [
"home",
"recent"
]
}
},
"status": "PAUSED"
}
},
"id": "1"
}
'{
"jsonrpc": "<string>",
"id": "<string>",
"result": {
"content": [
{
"type": "<string>",
"text": "<string>"
}
]
}
}Create a new ad set with advanced validation and helpful error messages. Specify campaign, name, budget (daily or lifetime), optimization goal, billing event, targeting, and promoted object if required by the campaign objective. Returns the new ad set ID and summary, or detailed error guidance if creation fails.
curl --request POST \
--url 'https://api.adside.ai/meta/mcp#create_ad_set_enhanced' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "<string>",
"method": "<string>",
"params": {
"name": "<string>",
"arguments": {
"campaign_id": "<string>",
"name": "<string>",
"optimization_goal": "<string>",
"billing_event": "<string>",
"daily_budget": 123,
"lifetime_budget": 123,
"bid_amount": 123,
"start_time": "<string>",
"end_time": "<string>",
"promoted_object": {
"page_id": "<string>",
"pixel_id": "<string>",
"application_id": "<string>",
"object_store_url": "<string>",
"custom_event_type": "<string>"
},
"attribution_spec": [
{
"event_type": "CLICK_THROUGH",
"window_days": 1
}
],
"destination_type": "WEBSITE",
"is_dynamic_creative": true,
"use_new_app_click": true,
"configured_status": "ACTIVE",
"optimization_sub_event": "NONE",
"recurring_budget_semantics": true,
"targeting": {
"geo_locations": {
"countries": [
"US"
],
"location_types": [
"home",
"recent"
]
}
},
"status": "PAUSED"
}
},
"id": "1"
}
'{
"jsonrpc": "<string>",
"id": "<string>",
"result": {
"content": [
{
"type": "<string>",
"text": "<string>"
}
]
}
}API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via the web app's workspace settings.