Generate preview renderings of creative manifests. Supports both single creative preview and batch preview (5-10x faster for multiple creatives).
Quick Start
Single Creative Preview
Response:
Embed in an iframe:
Direct HTML Embedding
For faster rendering without iframe overhead, request HTML directly:
Response contains raw HTML:
Only use output_format: "html" with trusted creative agents. Direct HTML embedding bypasses iframe sandboxing.
Batch Preview (Multiple Creatives)
Preview multiple creatives in one API call (5-10x faster):
Response contains results in order:
Request Parameters
Single Mode
Batch Mode
Generate multiple preview variants by providing different contexts:
Available macros: DEVICE_TYPE, COUNTRY, CITY, DMA, GDPR, US_PRIVACY, CONTENT_GENRE, etc.
Context descriptions: For AI-generated content like host-read audio ads.
Single Mode Response
Batch Mode Response
Preview Structure
Multi-render formats: Some formats produce multiple pieces (video + companion banner). Each has its own render_id and role.
Examples
Device Variants
Batch with HTML Output
Preview multiple creatives for a grid layout:
AI-Generated Audio Preview
HTTP Status Codes
Single mode:
- 200 OK - Preview generated successfully
- 400 Bad Request - Invalid manifest or format_id
- 404 Not Found - Format not supported
Batch mode:
- 200 OK - Batch processed (check individual
success fields)
- 400 Bad Request - Invalid batch structure
Key Points
- Every
preview_url returns an HTML page for iframe embedding
- Use
output_format: "html" for grids of 10+ previews (no iframe overhead)
- Batch mode is 5-10x faster than individual requests
- Preview URLs expire (check
expires_at)
- Handle partial batch failures by checking each result’s
success field