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

# Generate Ad Preview

> Generates a shareable Snap-hosted preview URL and scannable Snapcode for an ad or creative, valid 90 days with no login

Generates a shareable Snap-hosted preview URL and scannable Snapcode for an ad or creative, valid 90 days with no login. Ad blockers break the preview page; open it with them disabled.

| | |
| - | - |
| **App** | Snapchat Ads |
| **Operation ID** | `snapchat_ads_generate_ad_preview` |
| **Type** | Action |
| **Connection** | `snapchat_ads` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | DynamicAccount | Yes | - | Select the Snapchat Ads account that owns the ad or creative. |
| `ad_id` | string or SelectItem | No | - | Snapchat ad ID to preview; its creative is resolved automatically. Provide ad\_id or creative\_id, not both. |
| `creative_id` | string or SelectItem | No | - | Snapchat creative ID to preview directly. Provide ad\_id or creative\_id, not both. |

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

## Output

**Type**: `Dict`

Returns the shareable preview URL and its expiry.

**Fields**: `preview_url`, `snapcode_url`, `creative_id`, `ad_id`, `expires_at`, `creative_preview_link`


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