hermosodocs

campaign_profit

Profit per ad campaign read-only

Area: CONVERSIONS HUB + PROFIT PER CAMPAIGN · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
fromstringYYYY-MM-DD
tostringYYYY-MM-DD, default today
daysnumberthe last N days; default 30
platformsstring[]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
includeIdlebooleantrue 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.

All 759 Ad campaign management tools · tools.json