Note what a campaign cost
set_campaign_costRecords what the owner says a campaign costs, so Bearing can set it against what the campaign brought: either the total spent to date, or an amount per day, per month or per year (every: an ad's daily budget, a monthly fee, a yearly sponsorship), until the day it stopped (until). With a rate, Bearing works out the cost to date from the campaign's first visit and says it is an estimate. Only what the owner gives you or what you read for them in their ad account: never a guess. Giving it again replaces it; remove true takes it away.
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": {
"site": "<site>",
"marker": "<marker>",
"amount": "<amount>",
"currency": "<currency>"
},
"name": "set_campaign_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site: its domain (example.com), its id, or its public id. See list_sites. | |
| every | No | Give it when the amount is a rate: per day, per month or per year. Leave it out for a total. | |
| until | No | With `every`: the last day the campaign ran, YYYY-MM-DD. Leave it out while it runs. | |
| amount | Yes | In units of the currency (87.4 for 87,40 €): the total spent to date, or the amount per day, month or year when `every` is given. | |
| marker | Yes | The campaign marker's id, from list_markers. | |
| remove | No | True to take the cost away. | |
| currency | Yes | ISO code of the currency: EUR, USD… |