get_ads_by_id
Retrieve selected Telegram ads by ID to inspect their details, with an option to include targeting settings; supports 1–100 IDs and defaults to the configured account.
Instructions
Get selected ads by their IDs.
Accepts 1 to 100 IDs. Ad IDs are unique within an account. Set return_target to include targeting settings.
Omitted account_id uses TELEGRAM_ADS_ACCOUNT_ID if set, otherwise the token owner's account.
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_ids": "<ad_ids>"
},
"name": "get_ads_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_ids | Yes | ||
| account_id | No | ||
| return_target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||