Skip to main content
POST
/
meta
/
mcp#create_ad_set_enhanced
Create Ad Set Enhanced
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>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via the web app's workspace settings.

Body

application/json
jsonrpc
string
required
Allowed value: "2.0"
method
string
required
Allowed value: "tools/call"
params
object
required
id
string
Example:

"1"

Response

JSON-RPC response with tool result

jsonrpc
string
Allowed value: "2.0"
id
string
result
object