> ## 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 images of Meta advertising campaigns and ad creatives

Generates preview images of Meta advertising campaigns and ad creatives. Returns preview URL based on selected placement like INSTAGRAM\_FEED, FACEBOOK\_FEED, etc.

|                      |                                 |
| -------------------- | ------------------------------- |
| **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`
