Skip to main content

Margin and Revenue Share

How to use Revenue Share and Margin on an offer in Swaarm - let the advertiser pass dynamic revenue via postback and calculate publisher payouts automatically.

This article covers two related features that are often used together:

  • Revenue Share - the advertiser passes the revenue amount dynamically in the postback, instead of a fixed WeGet being configured on the offer

  • Margin - TheyGet for the publisher is calculated automatically as a percentage of WeGet, instead of a fixed payout amount


Revenue Share

Normally, WeGet is a fixed amount set on the offer. Revenue Share changes this - the advertiser passes the actual revenue per conversion in their postback using the sale_amount parameter, and Swaarm uses that value as the WeGet for each conversion.

Use this when your advertiser pays you a percentage of the actual sale value rather than a fixed CPI or CPA rate.

How to set up Revenue Share

  1. Go to Offer → Edit → General tab

  2. Enable the Revenue Share checkbox

  3. Click Save

ℹ️ Ask the advertiser to pass the revenue amount in the sale_amount parameter in their postback URL:

Once postbacks start coming in, you can check the sale_amount value in Reports → Conversion Report in WeGet column.


Margin

Instead of setting a fixed TheyGet amount on the offer, you can set a margin percentage. Swaarm then calculates TheyGet dynamically for each conversion as:

TheyGet = WeGet × (1 − margin%)

This is especially useful when combined with Revenue Share - since you don't know WeGet in advance, you can't set a fixed TheyGet. Setting a margin ensures the publisher always gets the correct proportion of whatever revenue comes in.

How to set up Margin on an offer

  1. Go to Offer → Edit → Payouts tab

  2. Enter the Margin % - leave WeGet and TheyGet empty if using Revenue Share

  3. Click Save

Example: If the advertiser passes sale_amount=10.00 and your margin is 30%, the publisher's TheyGet will be automatically calculated as $7.00.

Passing TheyGet to the publisher

To notify the publisher of their payout amount in the postback, use the

#{payout.theyGetInDollars} macro in their postback URL:

ℹ️ Ask the publisher what parameter name they use for the payout amount on their side, then map it to the correct Swaarm macro. See all publisher postback macros →


Using Revenue Share and Margin together

This is the most common setup for revenue share offers:

  1. Enable Revenue Share on the offer - advertiser passes sale_amount dynamically

  2. Set a Margin % on the offer - Swaarm calculates TheyGet automatically

  3. Add #{payout.theyGetInDollars} to the publisher postback - publisher receives their share

This way the entire payout flow is dynamic - no fixed amounts needed on either side.


Verifying in the Conversion Report

Once postbacks are coming in, you can verify the revenue and payout values in Reports → Conversion Report.

What to check

Where to find it

Revenue (WeGet) passed by the advertiser

Add the Advertiser Postback column - look for sale_amount= in the postback URL to see the raw value the advertiser sent

WeGet as recorded by Swaarm

Add the WeGet column - this will match the sale_amount value when Revenue Share is enabled

TheyGet calculated by Swaarm

Add the TheyGet column - this is the margin-calculated payout

Payout sent to the publisher

Add the Publisher Postback column - check the payout parameter in the fired URL to confirm the correct TheyGet was passed

ℹ️ If WeGet or TheyGet shows as $0, check that the advertiser is correctly passing sale_amount in their postback and that Revenue Share is enabled on the offer.


Related articles

Did this answer your question?