# Hermoso: set_profit_settings · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/set_profit_settings/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / set_profit_settings

# `set_profit_settings`

Set margin and cost per order for profit destructive

Area: CONVERSIONS HUB + PROFIT PER CAMPAIGN · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

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](https://hermoso.ai/docs/credits/).

## Related tools

- [campaign_profit](https://hermoso.ai/docs/reference/ads/campaign_profit/) Profit per ad campaign
- [upload_campaign_results](https://hermoso.ai/docs/reference/ads/upload_campaign_results/) Upload your own results per campaign
- [conversion_insights](https://hermoso.ai/docs/reference/ads/conversion_insights/) Customer journeys, touch paths and lifetime value
- [conversion_events](https://hermoso.ai/docs/reference/ads/conversion_events/) Stored conversion events
- [conversion_destinations](https://hermoso.ai/docs/reference/ads/conversion_destinations/) Ad platforms a conversion goes to
- [send_conversion_event](https://hermoso.ai/docs/reference/ads/send_conversion_event/) Send a conversion to every ad platform at once

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
