Add reward budget to a Performance ad
top_up_adPerformance ads. Adds reward budget to an ad; the platform fee is added on top. Paid from the balance, or the result is isError with the x402 PaymentRequired object: sign it and call again with the same arguments, the returned idempotency_key and the payment.
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>",
"reward_budget_usd": "<reward_budget_usd>"
},
"name": "top_up_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | The id of an ad of this account. | |
| api_key | No | The API key of the account (can_live_...). Optional when this MCP connection sends it as the Authorization: Bearer header. | |
| idempotency_key | No | Only to REPEAT an earlier call of this tool (a lost answer, a payment still confirming): the idempotency_key that call returned. Leave it out for a new call; the server then makes a random one and returns it. | |
| payment_signature | No | The x402 PaymentPayload for the requirement an earlier call of this tool returned, as base64-encoded JSON (the value of an HTTP PAYMENT-SIGNATURE header). An x402-aware MCP client sends the payload in _meta["x402/payment"] instead and leaves this out. | |
| reward_budget_usd | Yes | Decimal string with at most two decimals, before the fee. |