Inputs
SelectItem
Output
Type:Dict
Returns the created campaign with full details.
Fields: dynamic (depend on the inputs)Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Creates an X (Twitter) Ads campaign under a funding instrument, with budgets entered in the account currency
| App | X Ads |
| Operation ID | x_ads_create_campaign |
| Type | Action |
| Connection | x_ads (required) |
| Credits per run | 1 |
| Agent / MCP tool | Yes |
| Requires approval | Yes (write operation) |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
account | DynamicAccount | Yes | - | Select the X Ads account to create the campaign in. |
funding_instrument_id | string or SelectItem | Yes | - | The funding instrument (payment source) to create the campaign under. Use x_ads_list_funding_instruments to find it. |
name | string | Yes | - | Campaign name, up to 255 characters. |
daily_budget | number | No | - | Daily budget in the ad account’s currency (for example 50 for $50), converted to X micro-currency automatically. Required by X for most funding instrument types, and must not exceed the total budget when both are set. |
total_budget | number | No | - | Total (lifetime) budget in the ad account’s currency, converted to X micro-currency automatically. No total cap is applied when omitted. |
entity_status | enum (ACTIVE, PAUSED, DRAFT) | No | PAUSED | Status to create the campaign with: ACTIVE, PAUSED (default, so nothing serves until reviewed), or DRAFT. |
budget_optimization | enum (LINE_ITEM) | No | - | Budget optimization mode. X currently supports only LINE_ITEM (the default). |
purchase_order_number | string | No | - | Purchase order number used to organize invoices, up to 50 characters. |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | Yes | - | The value of the selectable item. |
label | string | Yes | - | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |
Dict
Returns the created campaign with full details.
Fields: dynamic (depend on the inputs)