generate_preview
Generate an ad preview from a creative spec without an existing ad. Specify ad format and creative JSON to see how the ad looks.
Instructions
Generate an ad preview without needing an existing ad. Provide creative spec directly to see how it would look.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| creative | Yes | JSON string of creative spec: {object_story_spec: {...}} or {object_story_id: '...'} | |
| ad_format | Yes | Ad format: DESKTOP_FEED_STANDARD, MOBILE_FEED_STANDARD, INSTAGRAM_STANDARD, INSTAGRAM_STORY, RIGHT_COLUMN_STANDARD, etc. | |
| account_id | No | Ad account ID to generate the preview in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. |