hermosodocs

set_profit_settings

Set margin and cost per order for profit destructive

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

Description

The numbers campaign_profit turns revenue into profit with: marginPercent (0-100, the share of revenue kept as gross profit; null removes profit), costPerOrder (subtracted per sale, in each ad account’s currency) and campaignMargins, a margin per campaign {"<campaign id, utm_campaign or name>": percent} (null removes one). profit = revenue × margin − sales × costPerOrder; POAS = profit ÷ spend; profit after ads = profit − spend. A campaign whose results upload carries cogs or gross_profit uses those instead. resultEvents picks which stored conversion events count as campaign results (default Purchase, Lead, QualifiedLead; any other name is counted into a metric of its own); metric labels and formulas are set with the campaign result metrics tool. No arguments reads the setting. Free.

Parameters

ParameterTypeDescription
marginPercentnumber | null0-100; null removes it
costPerOrdernumber | nullper sale, in each ad account’s currency
campaignMarginsobject | nullper-campaign margins; null for one removes it
resultEventsstring[] | nullwhich stored conversion events count as campaign results; default Purchase, Lead, QualifiedLead; another name is counted into a metric of its own; null restores the default

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/set_profit_settings.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_profit_settings","arguments":{}}}

CLI

hermoso call set_profit_settings --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