> ## 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 preview URL for a TikTok ad

Generates a preview URL for a TikTok ad

| | |
| - | - |
| **App** | TikTok Ads |
| **Operation ID** | `tiktok_ads_generate_ad_preview` |
| **Type** | Action |
| **Connection** | `tiktok_ads` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | DynamicAccount | Yes | - | Select TikTok Ads account (advertiser) to generate preview for |
| `ad_id` | string | Yes | - | Enter the Ad ID you want to generate a preview for. You can fetch Ad IDs from other nodes like 'Get Report' |
| `language` | string or SelectableOption | No | - | Language for the ad preview. Options: ENGLISH, CHINESE, JAPANESE. Default: ENGLISH |
| `placement` | string or SelectableOption | No | - | The app where you want to deliver your ads. Options: PLACEMENT\_TIKTOK, PLACEMENT\_PANGLE, ALL |

### SelectableOption

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

## Output

**Type**: `Dict`

Returns preview\_url, iframe, ad\_id, and placement for the ad.

**Fields**: `preview_url`, `iframe`, `ad_id`, `placement`


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