> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Ad Status

> Permanently deletes X (Twitter) ads (promoted posts), one or many at once

Permanently deletes X (Twitter) ads (promoted posts), one or many at once. X has no pause for ads, so DELETED is the only supported status; re-promote the post with x\_ads\_create\_ad to resume it.

| | |
| - | - |
| **App** | X Ads |
| **Operation ID** | `x_ads_update_ad_status` |
| **Type** | Action |
| **Connection** | `x_ads` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |
| **Requires approval** | Yes (write operation) |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | DynamicAccount | Yes | - | Select the X Ads account that owns the ads. |
| `update_type` | string or SelectableOption | Yes | - | Choose whether to update a single ad or multiple at once. Options: single or bulk. |
| `ad_id` | string or SelectItem | No | - | X Ads ad (promoted tweet) ID to update. Required for single update. |
| `status` | string or SelectableOption | No | - | New ad status. X only supports DELETED for ads: the post is detached from its ad group permanently (shown as Paused in the X UI) and this cannot be undone. To resume, promote the same post again with x\_ads\_create\_ad. Required for single update. |
| `structured_data` | array (also accepts a comma-separated string) | No | - | Use only when update\_type is bulk. Required columns: ad\_id and status (only DELETED is supported; it permanently detaches the post). Up to 100 rows. |

### SelectItem

| 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. |

### SelectableOption

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `value` | string | Yes | - | |
| `label` | string | Yes | - | |

## Output

**Type**: `String`

Returns a summary of how many ads were updated.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.