campaign_profit
Profit per ad campaign read-only
Description
Profit per campaign across every connected ad platform: each campaign’s spend read live from the platform, joined to the brand’s own sales. Revenue per campaign comes from ONE source, strongest first: results you uploaded (upload_campaign_results), else conversion events sent through send_conversion_event and credited to campaigns under `model` (last_click default, first_touch, linear, position_based, time_decay), else Shopify / Stripe orders matched by utm_campaign. Never summed across sources, so one sale is never counted twice. Each row: spend, sales, revenue, profit (set_profit_settings), POAS, profit after ads, ROAS, cost per sale, the platform’s own reported conversions beside it, and which source the revenue came from. Money stays per currency; a platform that could not be read is named, never shown as zero. from / to (YYYY-MM-DD) or days, up to 92; platforms narrows it. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
from | string | YYYY-MM-DD |
to | string | YYYY-MM-DD, default today |
days | number | the last N days; default 30 |
platforms | string[] | meta, google_ads, tiktok_ads, linkedin, microsoft_ads, pinterest_ads, reddit_ads, snapchat_ads, x_ads, openai_ads, apple_ads; default every connected one |
model | "last_click" | "first_touch" | "linear" | "position_based" | "time_decay" | how event revenue is credited to campaigns; default last_click |
revenueFrom | "uploads" | "events" | "store"[] | which revenue sources to use; default all three, in that order |
includeIdle | boolean | true also lists campaigns with no spend and no sales |
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_profit.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"campaign_profit","arguments":{}}}
CLI
hermoso call campaign_profit --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
upload_campaign_resultsUpload your own results per campaignsend_conversion_eventSend a conversion to every ad platform at onceset_profit_settingsSet margin and cost per order for profitconversion_insightsCustomer journeys, touch paths and lifetime valueconversion_eventsStored conversion eventsconversion_destinationsAd platforms a conversion goes to