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

> Generates preview iframe URLs of Meta advertising campaigns and ad creatives for a selected placement like INSTAGRAM_FEED, FACEBOOK_FEED, etc

Generates preview iframe URLs of Meta advertising campaigns and ad creatives for a selected placement like INSTAGRAM\_FEED, FACEBOOK\_FEED, etc. If you want Meta's native shareable client preview link instead (the Ads Manager 'Share a link' URL, where the client can browse placements without an account), use meta\_ads\_list\_ads: every ad row includes preview\_shareable\_link.

| | |
| - | - |
| **App** | Meta Ads |
| **Operation ID** | `meta_ads_generate_ad_previews` |
| **Type** | Action |
| **Connection** | `meta_ads` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | DynamicAccount | Yes | - | Select Meta Ads account, ask the user for it if not provided |
| `ad_id` | string | Yes | - | Enter the Ad ID you want to generate previews for. You can fetch Ad IDs from other nodes like 'Get Report' |
| `placement` | string or SelectableOption | Yes | - | Select the placement for the ad preview. e.g., DESKTOP\_FEED\_STANDARD, MOBILE\_FEED\_STANDARD |

### SelectableOption

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

## Output

**Type**: `Dict`

Returns a dict with ad preview details.

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


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