X Ads
x_ads_native_actionComplete X Ads API v12 native gateway generated from the local MDFILES/x-ads-api snapshot. Covers accounts, campaigns, line items, promoted Tweets, creatives, cards, media upload/library, audiences, targeting, measurement, analytics, and catalogs. Use action=LIST_ACTIONS for discovery. Writes are dry-run by default.
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": {
"action": "<action>"
},
"name": "x_ads_native_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | LIST_ACTIONS page size. | |
| query | No | Explicit query parameters; merged after params. | |
| action | Yes | Canonical X Ads native action, legacy uppercase action, LIST_ACTIONS, or DESCRIBE_ACTION. | |
| offset | No | LIST_ACTIONS zero-based offset. | |
| params | No | Native X query/form parameters. Required path values may also be supplied here or top-level. | |
| search | No | LIST_ACTIONS case-insensitive action, alias, category, method, or endpoint filter. | |
| compact | No | Remove empty values while preserving provider failures and pagination metadata. | |
| dry_run | No | Writes default to dry-run. Set false to execute after reviewing the request. | |
| payload | No | Native request body. Accepts an object, batch array, or stringified JSON object/array for cached-client compatibility. | |
| category | No | LIST_ACTIONS category filter. | |
| confirmed | No | Required with dry_run:false for DELETE actions. | |
| max_items | No | Maximum items returned from each result array. | |
| read_only | No | LIST_ACTIONS read/write filter. | |
| account_id | No | Authorized X Ads account ID. May also be supplied in path_params. | |
| path_params | No | Native path placeholders such as account_id, campaign_id, line_item_id, card_id, or scheduled_feed_id. | |
| connection_id | No | Optional explicit X OAuth connection ID for users with multiple connected X accounts. | |
| result_fields | No | Optional response projection. Provider error and partial-failure envelopes are always preserved. | |
| target_action | No | Action to describe when action=DESCRIBE_ACTION. | |
| idempotency_key | No | Recommended for live writes. |