Buy an ad impression
get_ad_impressionPay a fraction of a cent in USDC via x402 to retrieve an ad payload for a given adId.
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": {
"adId": "<adId>"
},
"name": "get_ad_impression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adId | Yes | ||
| agentId | No | ||
| paymentHeader | No |