> ## 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 shareable Pinterest ad preview URLs for one or more ad groups

Generates shareable Pinterest ad preview URLs for one or more ad groups. Each URL opens in any browser without Ads Manager access and always reflects the current creative; no need to regenerate after edits. URLs expire after 30 days. Returns one preview per ad or product group promotion in each ad group.

|                      |                                      |
| -------------------- | ------------------------------------ |
| **App**              | Pinterest Ads                        |
| **Operation ID**     | `pinterest_ads_generate_ad_previews` |
| **Type**             | Action                               |
| **Connection**       | `pinterest_ads` (required)           |
| **Credits per run**  | 1                                    |
| **Agent / MCP tool** | Yes                                  |

## Inputs

| Field          | Type                                                    | Required | Default | Description                                                                                                                                                                                                                                                                                                               |
| -------------- | ------------------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`      | DynamicAccount                                          | Yes      | -       | Select the Pinterest Ads account that owns the ad groups.                                                                                                                                                                                                                                                                 |
| `ad_group_ids` | array of string (also accepts a comma-separated string) | Yes      | -       | Ad group IDs to generate previews for, as a list or comma-separated text. Up to 100 per run. Pinterest returns one shareable preview URL per ad or product group promotion in each ad group; the URLs open in any browser without Ads Manager access and always show the current creative. Previews expire after 30 days. |

## Output

**Type**: `Dict`

Returns generated preview URLs with expiry and identifiers, plus any per-ad-group errors.

**Fields**: `previews`, `preview_count`, `errors`
