campaign_result_metrics
Name and define campaign result metrics
Description
Name and define the numbers campaign_profit shows. action list (default): every metric key the brand uploaded with upload_campaign_results (with its label and kind) and every formula, the built-in ones (cac_percent, cost_per_sale, cost_per_qualified_lead, lead_to_sale, qualified_rate) and the brand's own. action set: key plus label, kind (count, money, percent or ratio), currency (for money) and/or formula, a calculation with + - * / and parentheses over spend, impressions, clicks, sales, revenue, leads, qualified_leads, profit and any uploaded metric key, e.g. "(revenue - spend) / clicks"; formula null removes it. action remove: key. Every formula is shown per campaign in campaign_profit; a division by zero or a number a campaign does not have shows as empty, never 0. Which conversion events count as campaign results is set_profit_settings resultEvents. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | "list" | "set" | "remove" | default list (set when key is given) |
key | string | the metric key (snake_case) |
label | string | |
kind | "count" | "money" | "percent" | "ratio" | |
currency | string | |
formula | string | null | e.g. (revenue - spend) / clicks; null removes |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/campaign_result_metrics.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"campaign_result_metrics","arguments":{}}}
CLI
hermoso call campaign_result_metrics --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
campaign_profitProfit per ad campaignupload_campaign_resultsUpload your own results per campaignset_profit_settingsSet margin and cost per order for profitset_ad_campaigns_statusPause or resume many campaigns at oncemanage_tracking_linksTracking links (short links, split tests, postbacks)manage_ad_leadsYour ad leads, with a statuslist_ads_alertsWhat needs attention across your ad accountscheck_ad_account_healthCheck an ad account can run ads