Skip to content

The SupplyChain object (schain) explained

Every bid request can carry a record of the companies it passed through on its way to the buyer. That record is the SupplyChain object, or schain. Reading it shows who really sold the ad.

What it is for

ads.txt and sellers.json tell you who may sell a publisher's ads. The schain tells you who actually handled a particular impression. A buyer can compare the two: is every company in the chain one the publisher authorized, and does each one exist in its ad system's sellers.json?

Where it appears

The schain sits in the source of an OpenRTB bid request. In OpenRTB 2.5 it is carried in source.ext.schain. OpenRTB 2.6 gives it its own place, source.schain.

An example

{
  "ver": "1.0",
  "complete": 1,
  "nodes": [
    {"asi": "exampleexchange.com", "sid": "12345", "hp": 1},
    {"asi": "examplereseller.com", "sid": "abc-789", "hp": 1,
     "rid": "req-001", "name": "Example Reseller"}
  ]
}

The fields

Reading the order

The first node is the party closest to the publisher. The last node is the party that sent the request to the buyer. Each node after the first is a company the previous one passed the inventory to.

How to verify each hop

Common problems

How to check one

Paste a bid request, or upload a log of them, into the Supply Chain (schain) Checker. It takes the schain of each request and checks every hop against sellers.json and ads.txt, and tells you why a hop passed or failed.

Check it with ortb.in

Common questions

Is the schain the same as a bid request's source?

The schain is one part of a bid request's source object. It records who handled the impression.

What does complete mean?

1 means the chain names every party back to the owner of the inventory. 0 means some are missing.

Can a chain be right but still carry a problem?

Yes. The chain can be well formed while a seller ID is missing from sellers.json or the publisher never authorized it.

Keep reading