Inputs
SelectableOption
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:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a temporary preview of an existing OpenAI Ads ad showing how it renders in ChatGPT
| App | OpenAI Ads |
| Operation ID | openai_ads_preview_ad |
| Type | Action |
| Connection | openai_ads (required) |
| Credits per run | Free |
| Agent / MCP tool | Yes |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
ad_id | string or SelectableOption | Yes | - | Ad ID to preview (from openai_ads_list_ads). |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
value | string | Yes | - | |
label | string | Yes | - |
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:
[
{
"body": "<iframe src=\"https://ads.openai.com/previews/adprev_...?token=...\" width=\"390\" height=\"220\"></iframe>"
}
]
