Set campaign costs
set_campaign_costsSet (or add to) a campaign's total traffic cost per day — for sources without an API integration. The day total is spread across that day's clicks so ROI/CPC/profit become real. Applied asynchronously (result 'queued'). Up to 31 days per call, 90-day editable window.
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": {
"campaign_id": "<campaign_id>",
"items": "<items>"
},
"name": "set_campaign_costs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'set' replaces the day total (default), 'add' increments it | |
| items | Yes | ||
| campaign_id | Yes |