Check where a video ad stands
get_ad_statusReturns the state of an ad started with create_ad: building, preview_ready, paid, failed or unavailable, with its page link, the changes left and the reason for a failure. Use it when the user asks whether their ad is ready, or before saying that it is. To wait for an ad being built, pass wait_seconds and call again while the status is building.
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_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | The ad_id returned by create_ad. | |
| wait_seconds | No | Holds the answer up to this long, returning as soon as the ad stops building. Default 0: answer at once. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | The latest version of the ad. A change makes a new version. | |
| status | Yes | ||
| failure | No | Why the ad, or the last change to it, failed. | |
| page_url | Yes | ||
| changes_left | Yes |