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

# Create Text Ad

> Create a LinkedIn text ad creative under a text ad set

Create a LinkedIn text ad creative under a text ad set. Supports single and bulk creation. Optionally uploads a 100x100 image.

|                       |                               |
| --------------------- | ----------------------------- |
| **App**               | LinkedIn Ads                  |
| **Operation ID**      | `linkedin_ads_create_text_ad` |
| **Type**              | Action                        |
| **Connection**        | `linkedin_ads` (required)     |
| **Credits per run**   | 2                             |
| **Agent / MCP tool**  | Yes                           |
| **Requires approval** | Yes (write operation)         |

## Inputs

| Field                     | Type                                          | Required | Default                                | Description                                                                                                                                                                       |
| ------------------------- | --------------------------------------------- | -------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`                 | DynamicAccount                                | Yes      | -                                      | LinkedIn Ads account to create the ad in.                                                                                                                                         |
| `update_type`             | string or SelectableOption                    | Yes      | -                                      | Create a single text ad ('single') or many at once ('bulk').                                                                                                                      |
| `adset_id`                | string or SelectItem                          | No       | -                                      | Text ad set (LinkedIn sponsored campaign) the ad belongs to.                                                                                                                      |
| `image_url`               | string                                        | No       | -                                      | Optional 100x100 text ad image. Accepts a direct image URL or a Google Drive share link (set to 'Anyone with the link'). Markifact uploads it to LinkedIn automatically.          |
| `headline`                | string                                        | No       | -                                      | Text ad headline. Required. Up to 25 characters.                                                                                                                                  |
| `description`             | string                                        | No       | -                                      | Text ad description. Required. Up to 75 characters.                                                                                                                               |
| `destination_url`         | string                                        | No       | -                                      | Landing page URL. Required. Up to 500 characters.                                                                                                                                 |
| `ad_name`                 | string                                        | No       | -                                      | Optional creative name. Up to 255 characters.                                                                                                                                     |
| `status`                  | string or SelectableOption                    | No       | `{'value': 'DRAFT', 'label': 'Draft'}` | Initial creative status: DRAFT (safely inactive) or ACTIVE (submitted for review).                                                                                                |
| `structured_data`         | array (also accepts a comma-separated string) | No       | -                                      | Use only when update\_type is 'bulk', typically the output of a Sheets read. Each row supports: adset\_id, image\_url, headline, description, destination\_url, ad\_name, status. |
| `return_detailed_results` | boolean                                       | No       | `False`                                | Bulk mode only. If true, returns per-row results and does not raise on partial failures so the workflow can continue. Default false.                                              |

### 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**: `Dict`

Returns created LinkedIn text ad creative IDs.

**Fields**: `creative_ids`, `image_urns`, `created_count`, `success_count`, `failed_count`, `total_count`, `results`
