# Curated deal orchestration

A curated deal is one more place a Precise change can go out: one Deal ID per advertiser line, created through your deal API or your MCP tools. This page covers what the deal carries, how it maps to each supply platform, how its fees are compared, and how every deal is scored.

| Capability | Runtime | Status |
|---|---|---|
| Compare sample deals with the open auction | Sandbox | Live |
| Read sample deal status, fees and Scorekeeper results on configured public-test Access | Sandbox | Preview |
| Compile the deal and signed host policy for a defined SSP seat | Tenant Cloud | Preview |
| Read delivery under the buyer’s warehouse grant | Tenant Cloud | Preview |
| Create the Deal ID and bind its segment on the onboarded exchange | Partner Edge | Preview |

Figures on this page are sample data unless a sentence says worked arithmetic.

## What a curated deal carries

The activation compiler treats supply-side curation as one target, `CuratedSupplyTarget`. Set `venue: "ssp-curation"` and set `curation.ssp` to one of `equativ`, `magnite`, `index-exchange`, `openx` or `pubmatic`.

| The deal carries | Detail |
|-|-|
| Buyer seat and advertiser line | The deal is bound to one buyer seat and one line |
| Supply targeting and frequency cap | The deployment supplies targeting and a frequency cap and can derive requested dimensions from the rows it provides |
| Pricing model and floor | A fixed-price deal takes an explicit negotiated price |
| Disclosed margin | The curator's margin, stated in the deal |
| Selected and explore segment IDs | The two host-registered IDs the container adds to requests for this line |

Build and review the change with `sealInput`, `compileChangeSet`, `operationsForPromotion` and `closeEpisode`. Use `inverseChangeSet` for an explicit reversal. A promoted change carries an `upsert_curated_deal` operation. The container stage adds a `publish_contextual_release` operation addressed to the same platform:

```ts
const host = sspHostProfile(ssp, publisherOriginators);
const release = signScoringRelease(bindSspHost(payload, host), tenantSigningKey, executionModeBinding);
const rung2 = { host, release, binding: executionModeBinding, trusted_public_key_pem: tenantPublicKeyPem };
```

The signed bytes cover the platform-qualified release ID, the publisher originators and the deal path. The compiler requires the tenant execution binding when signing and promoting. A shadow binding can grant only `ADD_METRICS`. At compile time the host profile, policy digest, tenant, advertiser line, Deal ID and both segment IDs must agree. The [ARTF container guide](artf-container-guide.md) covers the receiving side.

## How the deal maps to each supply platform

Each descriptor in `sspDealDescriptors` maps the public Deal ID and the selected-or-explore segment set to a typed link on the deal operation. The link is an instruction for the seat's own integration, which supplies account-specific resource IDs, request schemas and readback decoding.

| `curation.ssp` | Deal and segment mapping | Default deal path |
|-|-|-|
| `equativ` | Maestro public Deal ID and comma-separated `semanticSegmentsTargeting`. The MCP interface exposes `CreateDeal`, `UpdateDeal` and `GetDeal`. [Deal API](https://help.equativ.com/use-the-apis/manage-deals-with-the-api) · [MCP tools](https://help.equativ.com/use-maestro-mcp/get-started-with-maestro-mcp-server) | `pmp_deal` |
| `magnite` | Curator Marketplace deal and vendor-scoped segment IDs. The seat's integration resolves the partner catalog in its account. [Curator Marketplace](https://www.magnite.com/buyers/) | `iab_v1` |
| `index-exchange` | Marketplace Package `externalDealID` and Marketplace segments. The internal deal ID is a separate account lookup. [Package export](https://kb.indexexchange.com/marketplace_partners/deals/download_marketplace_packages.htm) · [IAB Tech Lab seller agent guide](https://iabtechlab.github.io/seller-agent/guides/troubleshooting/) | `iab_v1` |
| `openx` | OpenXSelect deal and an audience that targets any selected segment. The seat resolves that audience through its Select API. [OpenXSelect](https://www.openx.com/press-releases/openx-announces-openxselect-an-advanced-supply-side-targeting-and-curation-platform-for-brands-and-agencies/) · [Account API reference](https://docs.openx.com/openxselect/oxs-api-reference/) | `iab_v1` |
| `pubmatic` | Targeted PMP Deal ID and provider audience segment IDs. The published Deal Management MCP advertises `deal_management` for creation. [Audience workflow](https://pubmatic.com/blog/audience-encore-creating-a-targeted-pmp-deal-with-audience-segments/) · [MCP tools](https://github.com/PubMatic/pubmatic-mcp-server/blob/main/Deal%20Management/README.md) | `iab_v1` |

Rollout order across Index Exchange, Equativ, Magnite, OpenX, and PubMatic is demand-driven. Every descriptor has `live_client: false`. These are dispatcher-facing field names; agree the vendor schema and account catalog with the seat before generating a request. Five signed handoffs have been exercised over loopback gRPC on one machine. Authenticated vendor creation, buyer acceptance and delivered traffic require a seat integration. The following examples all use the **same** external ID and seat label. Keep the exchange and seat in the acquisition record and scope every independent read accordingly.

| Descriptor | Dispatch link for deal `42` with two segments | Example account scope and independent readback |
|-|-|-|
| Equativ | `publicDealId="42"`, `semanticSegmentsTargeting="learn,sports"` | `equativ / seat-A / 42`. Read the Maestro deal and assigned targeting with separate read credentials. |
| Magnite | `curatorDealId="42"`, `vendorSegmentIds=["learn","sports"]` | `magnite / seat-A / 42`. Read the vendor-scoped catalog and curator deal. |
| Index Exchange | `externalDealID="42"`, `marketplaceSegmentIds=["learn","sports"]` | `index-exchange / seat-A / 42`. Resolve the account's internal package ID before reading membership. |
| OpenX | `dealId="42"`, `audience.anyOfSegmentIds=["learn","sports"]` | `openx / seat-A / 42`. Read the Select deal and the effective audience it references. |
| PubMatic | `pmpDealId="42"`, `audienceSegmentIds=["learn","sports"]` | `pubmatic / seat-A / 42`. Read the targeted PMP and audience provider mapping. |

For each acquisition, record the returned object ID, revision, observed and effective times, active policy digest, deal state and an evidence reference. Pair `source: "ssp_api_read"` with an independently authenticated read principal. Store a host-applied auction log separately. For example, a readback excerpt can contain `{"source":"ssp_api_read","ssp":"openx","object_id":"42","revision":"r3","deal_state":"delivering","evidence_ref":"records/openx/seat-A/42/r3"}`. These illustrative values are normalized reader fields. Each seat provides the real API response and schema.

The host agreement sets the deal path and margin unit for the container.

## Deal status

The forward delivery path takes five steps: created, synced to the DSPs, accepted by the buyer, bidding, delivering. A deal that is created and waiting for the buyer is approved and not applied, and it counts for $0. The lifecycle also supports `paused`, `rejected` and `expired`. The last two are terminal. A result counts once the deal delivers, the independent auction record matches, and its BAU Control Line comparison has settled.

The deal is one of three ways a decision can go out. Answer trimmed to the deal route's status and break-even. The sample uses the neutral test descriptor `DEAL-CUR-204117` at `Sample Curated SSP`.

```sh preview
curl -s "$PRECISE_URL/api/v1/decisions/D-035"
```

```json answer
{
  "decision_id": "D-035",
  "state": "Approval required",
  "routes": [
    {
      "id": "deal",
      "recommended": false,
      "sentence": "Target this Curated Deal ID on the line. No other DSP settings change.",
      "synced_to": [
        "The Trade Desk",
        "Beeswax"
      ],
      "status": {
        "id": "synced",
        "sentence": "Synced. Waiting for the buyer to accept it in the DSP. Not delivering yet.",
        "steps": [
          {
            "id": "created",
            "label": "Created",
            "done": true
          },
          {
            "id": "synced",
            "label": "Synced to the DSPs",
            "done": true
          },
          {
            "id": "accepted",
            "label": "Accepted by the buyer",
            "done": false
          },
          {
            "id": "bidding",
            "label": "Bidding",
            "done": false
          },
          {
            "id": "delivering",
            "label": "Delivering",
            "done": false
          }
        ]
      },
      "break_even": {
        "pct": 3.9,
        "sentence": "Break-even lift vs. Open Exchange: +3.9% (net of $0.91 replaced 3P data fee)."
      },
      "deal_id": "DEAL-CUR-204117",
      "supply_partner": "Sample Curated SSP"
    }
  ]
}
```

The route also lists its fee stack line by line, ending in a total row: the publisher-side fee, the supply partner fee, Precise's own line, the DSP fee, and any data fee the deal removes.

## The fee stack and the break-even

The verdict comes from what the buyer paid all-in per outcome on each line. Both lines are measured, so the verdict needs no modelled fee. The split of the stack explains the result and prices a deal before it runs.

The break-even holds the publisher's proceeds constant and asks how much higher the buyer's price is through the deal. With publisher-side fee `p`, supply partner fee `s` and curator margin `m`:

| How fees are taken | Price ratio, deal against open |
|-|-|
| One after another | `1 / ((1 - s)(1 - m))` |
| All off the gross price | `(1 - p) / (1 - p - s - m)` |

Illustrative arithmetic on example rates. The rates show how the formulas behave; they are not any exchange's or curator's actual rates. The last column assumes a publisher-side fee of 12.5%.

| Supply partner fee | Curator margin | Taken one after another | All taken off gross |
|-|-|-|-|
| 9% | 0% | +9.9% | +11.5% |
| 9% | 5% | +15.7% | +19.0% |
| 9% | 10% | +22.1% | +27.7% |
| 15% | 20% | +47.1% | +66.7% |
| 15% | 35% | +81.0% | +133.3% |

The impressions a deal selects must convert better than the line's average by more than that figure before the deal is even. Two things on the BAU Control Line push the other way and are counted in the same comparison: a DSP markup on media, and data-segment CPMs the deal replaces. In the 9% and 10% row, a 15% DSP markup on the BAU Control Line lowers the break-even from +22.1% to +6.2% (worked arithmetic).

- Each fee carries where it came from: read from the logs, read from the deal, or taken from the agreement (shown as Sample terms on synthetic deals).
- An undisclosed curation fee or margin leaves the break-even unknown, and the page says so. A DSP fee that is the same on both lines does not enter it.
- When the forecast range's lower bound clears the break-even, the deal is the recommendation.
- When the range straddles the break-even, the recommendation is a smaller split on the deal line, plus the same change as DSP settings, which adds no curation fee.

## The Deal Scorekeeper

The Deal Scorekeeper consumes normalized rows or an injected async cursor from the buyer's authorized warehouse. The caller supplies the warehouse reader, invoice currency, tenant and campaign scope. The reducer groups by `(exchange, deal_id)` and standardizes open buying to the deal's publisher mix. Partition each seat's input when IDs are only seat-unique. In the collision fixture, OpenX `deal-42` and Magnite `deal-42` each have 1,500 impressions. The former has 120 outcomes and beats open; the latter has 30 and loses. A missing exchange on a deal row is rejected.

The live sandbox query below measures **media spend plus allocated segment fees** by seller and format and returns nine deals. Its `all_in_cpm` column name refers only to those two input columns. It has no independent DSP invoice or complete curator/publisher fee waterfall. For `DEAL-PMP-204` this observed measure is $14.91 per thousand against $10.25 on open, $87,928.29 above the open line. This is an observational cost comparison.

```sql try
WITH deal AS (
  SELECT deal_id, seller_id, format, SUM(impressions) AS impressions, SUM(media_spend_usd) AS media_usd, SUM(allocated_segment_fees_usd) AS data_fees_usd
  FROM gold_daily_cube WHERE deal_id <> 'DEAL-OPEN-000' GROUP BY deal_id, seller_id, format
), open_line AS (
  SELECT seller_id, format, SUM(impressions) AS impressions, SUM(media_spend_usd) AS media_usd, SUM(allocated_segment_fees_usd) AS data_fees_usd
  FROM gold_daily_cube WHERE deal_id = 'DEAL-OPEN-000' GROUP BY seller_id, format
)
SELECT d.deal_id, d.seller_id, d.format, d.impressions, ROUND(d.media_usd, 2) AS media_usd, ROUND(d.data_fees_usd, 2) AS data_fees_usd,
  ROUND(1000.0 * (d.media_usd + d.data_fees_usd) / d.impressions, 4) AS all_in_cpm,
  o.impressions AS open_impressions, ROUND(1000.0 * (o.media_usd + o.data_fees_usd) / o.impressions, 4) AS open_all_in_cpm,
  ROUND(d.media_usd + d.data_fees_usd - d.impressions * (o.media_usd + o.data_fees_usd) / o.impressions, 2) AS paid_above_open_usd
FROM deal d LEFT JOIN open_line o ON o.seller_id = d.seller_id AND o.format = d.format
ORDER BY d.deal_id
```

The app joins the fee stack and the result to that query. It lists ten deals: the nine in the logs, and the sample book's own Precise deal, which has not delivered. Answer trimmed to one of the nine, run by another curator.

```sh preview
curl -s "$PRECISE_URL/api/v1/scorekeeper/deals"
```

```json answer
{
  "sentence": "Every Deal ID in the book: all-in eCPM, fee waterfall, and performance vs. same-seller Open Exchange.",
  "deals": [
    {
      "deal_id": "DEAL-PMP-204",
      "name": "Premium video",
      "kind": "Private deal",
      "run_by": "a third-party curator",
      "ours": false,
      "open_line": {
        "all_in_cpm": 10.2475,
        "pct_above": 45.5,
        "sentence": "+45.5% above same-seller Open Exchange ($14.91 vs. $10.25 eCPM)."
      },
      "fees": [
        {
          "label": "Exchange fee",
          "text": "10.0% of gross",
          "source": "Read from the deal",
          "ours": false
        },
        {
          "label": "Curator margin",
          "text": "18.0% of gross",
          "source": "Sample terms",
          "ours": false
        },
        {
          "label": "SSP pub-side take",
          "text": "9.0% of gross",
          "source": "Sample terms",
          "ours": false
        },
        {
          "label": "Publisher Net",
          "text": "63.0% of gross",
          "source": "Sample terms",
          "ours": false
        },
        {
          "label": "Data fees",
          "source": "Read from the logs",
          "ours": false,
          "text": "$15,640"
        },
        {
          "label": "DSP fee",
          "text": "Not in these logs",
          "source": "Not disclosed",
          "ours": false
        }
      ],
      "fees_disclosed": true,
      "break_even": {
        "pct": 38.9,
        "sentence": "Break-even lift vs. Open Exchange: +38.9% to cover deal fees."
      },
      "result": {
        "state": "none",
        "sentence": "Observed (Log-Only) — no BAU Control Line test has been run against this deal yet."
      },
      "log_comparison": {
        "verdict": "lost",
        "words": "Cost more per purchase than the open line",
        "sentence": "Over the flight, a purchase cost $2.89 on the line that buys this deal and $1.72 on the same order's open line (50,487 purchases against 119,340). No line was held, so this is read from the logs and is not a proven result.",
        "deal_cost_per_purchase": 2.8864,
        "open_cost_per_purchase": 1.7227,
        "deal_purchases": 50487,
        "open_purchases": 119340
      }
    }
  ]
}
```

A result needs a BAU Control Line. None ran against this deal, so `result.state` is `none`, and `log_comparison` says what the logs show: over the flight a purchase cost $2.89 on the line that buys this deal and $1.72 on the same order's open line. That is a reading of the logs and is labelled as one.

The fee percentages are shares of gross cleared spend. Here `fees_disclosed: true` coexists with a DSP fee marked `Not disclosed`. Read each fee row and keep unknown amounts missing. The 38.9% hurdle assumes equal publisher proceeds and comparable DSP/data costs on the two arms. The curator takes its margin after the exchange's 10%: a margin of 20% of what is left, which is 18% of gross. The price ratio is 1 / (0.90 × 0.80) = 1.389, so the break-even is 38.9%.

## The same change as DSP settings

Where a deal's forecast does not clear its fees, the same values go out as settings in the buyer's DSP, with no added curation fee. Answer trimmed to what each platform receives.

```sh preview
curl -s "$PRECISE_URL/api/v1/activation/targets"
```

```json answer
{
  "targets": [
    {
      "platform": "Beeswax",
      "receives": "A bid model and a pacing model, capped at the line item's max bid."
    },
    {
      "platform": "The Trade Desk",
      "receives": "Bid lists with bid adjustments, one list per dimension."
    },
    {
      "platform": "DV360",
      "receives": "A custom bidding script that scores each impression inside set bounds."
    },
    {
      "platform": "Amazon DSP",
      "receives": "Bid adjustment rules over the dimensions it supports."
    }
  ],
  "applied_rule": "A change counts only when the platform shows it applied. A change that was approved and never applied counts for $0."
}
```

## Package a launch audience behind one Deal ID

A [Launch Audiences](../buyers-and-agencies/launch-audiences.md) plan can reach supply through one Curated Deal ID. The deal carries the launch audience's segment ID beside the explore segment, so the buyer targets one deal and the exchange applies the audience before the DSP bids. A partner audience joins a deal only after its data owner has signed the right to deliver it to that exchange. The Deal Scorekeeper scores the deal from its first delivery against the BAU Control Line, and the settled result can join the prior pool for the next launch.

Today a deal carries up to two segment IDs, the selected one and an explore one, and the descriptors are tested against fixtures.

## Who is the curator of record

| Option | Curator of record | Where Precise's fee sits | Fits |
|-|-|-|-|
| A Precise deal | Precise | A margin inside the deal, shown as its own line in the fee stack | Buyers with no curation seat of their own |
| The agency's own deal, with Precise behind it | The agency | In the agency's service agreement | Agencies with their own seats and trading agreements |
| Scorekeeper only | Whoever runs the deal | In the service agreement | Any account already buying curated deals. It needs the buyer's DSP logs only |

## What is verified

The compilers, the fee arithmetic and the Scorekeeper are verified on synthetic data. In those tests a deal earns $0 at creation, DSP sync, buyer acceptance and bidding, and earns credit only from a delivered fixture with a settled comparison. The compilers write to no DSP or supply-platform account.

Authenticating a seat, creating the deal in your platform, the buyer's acceptance and the delivered result are done with you during onboarding.

## Related

[Supply partners overview](README.md) · [ARTF container guide](artf-container-guide.md) · [Curated deals for buyers](../buyers-and-agencies/curated-deals.md) · [Limits and errors](../../reference/limits-and-errors.md)
