get_ad_preview
Preview a Meta ad in a selected format, such as desktop feed, mobile feed, or Instagram story. Returns an HTML iframe for direct rendering.
Instructions
Get a preview of an ad in a specific format. Returns HTML iframe for rendering.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ad_id": "<ad_id>",
"ad_format": "<ad_format>"
},
"name": "get_ad_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | Ad ID | |
| ad_format | Yes | Ad format: DESKTOP_FEED_STANDARD, MOBILE_FEED_STANDARD, INSTAGRAM_STANDARD, INSTAGRAM_STORY, RIGHT_COLUMN_STANDARD, etc. |