What a campaign brought and cost
get_campaign_resultFor one campaign on the curve (a marker with a campaign, see list_markers): the visits that came through its links since its first visit, the visits that reached each goal, the revenue tied to it, the cost its owner gave, the cost per visit and per conversion, and the result (revenue minus cost) when both exist in the same currency. When its links name at least two ads (utm_content), by_ad compares them. For a goal with a value its owner gave, an estimated revenue and an estimated result, always apart from the real ones. When its payments' products are known, sold gives each product, its payments and its net amount. It counts what happened during those visits only: someone who came back later on their own to buy is not in it.
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>"
},
"name": "get_campaign_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site: its domain (example.com), its id, or its public id. See list_sites. | |
| marker | Yes | The campaign marker's id, from list_markers. |