set_profit_settings
Set margin and cost per order for profit destructive
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
| Parameter | Type | Description |
|---|---|---|
marginPercent | number | null | 0-100; null removes it |
costPerOrder | number | null | per sale, in each ad account’s currency |
campaignMargins | object | null | per-campaign margins; null for one removes it |
resultEvents | string[] | null | which 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.
Related tools
campaign_profitProfit per ad campaignupload_campaign_resultsUpload your own results per campaignconversion_insightsCustomer journeys, touch paths and lifetime valueconversion_eventsStored conversion eventsconversion_destinationsAd platforms a conversion goes tosend_conversion_eventSend a conversion to every ad platform at once