Manage pixel and conversion events
tg_manage_pixelCreate a Telegram Ads account Pixel Tag and manage its conversion events by adding, renaming, or deleting unused events to keep ad tracking accurate.
Instructions
action=create_pixel creates the account's Pixel Tag (only one per account); action=create_event needs title and type; action=update_event renames an event; action=delete_event removes an event that is not used by any ad. Requires confirm: true and TG_ADS_MODE=write.
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": {
"action": "<action>"
},
"name": "tg_manage_pixel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Event type, for example purchase or lead. | |
| title | No | ||
| action | Yes | ||
| confirm | No | ||
| event_id | No | ||
| account_id | No |