get_ad_previews
Retrieve iframe previews for an ad across Facebook, Instagram, and Messenger placements to verify visual appearance and format compatibility.
Instructions
Get preview iframes for an ad across different placements. Args: ad_id: The ID of the ad. ad_format: The placement format to preview, e.g. DESKTOP_FEED_STANDARD, MOBILE_FEED_STANDARD, INSTAGRAM_STANDARD, INSTAGRAM_STORY, FACEBOOK_STORY, RIGHT_COLUMN_STANDARD, SUGGESTED_VIDEO, MARKETPLACE, MESSENGER_MOBILE_INBOX_MEDIA. If None, returns all available. fields: Fields to return, e.g. ['body', 'title', 'ad_format']. Returns: A dictionary containing preview iframe data for the ad.
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>"
},
"name": "get_ad_previews"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | ||
| fields | No | ||
| ad_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |