Rule reference

Proposed margin is negative

artf.mutation.margin_negativeerrorARTF mutation set

The margin adjustment carries a negative value, whether it is expressed as CPM or as a percentage.

What it means

adjust_deal.margin.value is below zero.

Why it matters

A negative margin is a request to pay out more than comes in. If that is genuinely intended, it is a commercial decision that should be explicit somewhere other than a sign flip in an in-auction mutation.

How to fix it

Send a non-negative value, and check whether the calculation inverted a subtraction.

Example that trips it

{ "intent": "ADJUST_DEAL_MARGIN", "op": "OPERATION_REPLACE", "path": "/imp/imp-1/pmp/deals/deal-premium", "adjust_deal": { "margin": { "value": -5.0, "calculation_type": "PERCENT" } } }

Check your payload

Paste a bid request or response into the tester to see whether this code fires against it, or gate on the id in CI with the CLI: the id is stable, wording is not.

Back to the full diagnostic code reference.