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

# Preview Ad

> Create a temporary preview of an existing OpenAI Ads ad showing how it renders in ChatGPT

Create a temporary preview of an existing OpenAI Ads ad showing how it renders in ChatGPT. The preview expires 24 hours after creation.

| | |
| - | - |
| **App** | OpenAI Ads |
| **Operation ID** | `openai_ads_preview_ad` |
| **Type** | Action |
| **Connection** | `openai_ads` (required) |
| **Credits per run** | Free |
| **Agent / MCP tool** | Yes |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `ad_id` | string or SelectableOption | Yes | - | Ad ID to preview (from openai\_ads\_list\_ads). |

### SelectableOption

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

## Output

**Type**: `List[Dict]`

Returns the preview entries exactly as returned by the OpenAI Ads API: each has a `body` holding ready-to-embed iframe HTML for the ad preview.

**Fields**: dynamic (depend on the inputs)

**Example**:

```json theme={"dark"}
[
  {
    "body": "<iframe src=\"https://ads.openai.com/previews/adprev_...?token=...\" width=\"390\" height=\"220\"></iframe>"
  }
]
```


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