Why SChain Validation Deserves More Attention Than It Gets

A perspective from the programmatic trenches

If you’ve spent any real time in programmatic, you’ve probably had this moment: you’re looking at a bid request, and you genuinely cannot tell how many hands the impression passed through before it landed in front of you. Two hops? Five? Is the “publisher.com” in that request actually publisher.com, or is it a very convincing knockoff? For a long time, the honest answer was: nobody really knew, and we mostly just lived with it.

Ads.txt fixed part of this back in 2017. It gave publishers a way to say, publicly, “here’s who’s allowed to sell my inventory.” That was a real step forward. But it only ever answered one question: who’s authorized, and not the more interesting one: who actually took custody of the request on its way to me? A publisher could authorize one SSP, and that SSP could resell through two or three more parties, all of them authorized, before the bid reached a DSP. ads.txt confirms who is allowed to sell but not the route the impression took. That blind spot is where obfuscated paths take hold, and domain spoofing only persists where a DSP fails to verify the chain or buys through one of those paths anyway.

This is the problem the SupplyChain object, or schain if you’re being casual about it, was built to solve.

What schain actually does

At its core, schain is just a list. It’s attached to the bid request (Source.schain in OpenRTB 2.6 and later), and it records every entity that touched the sale of that impression, in order, starting with the original publisher and ending with whoever’s sending you the bid.

Each entity gets a “node” in that list, and each node has to declare a few things: 

  • which advertising system handled that hop (asi), 
  • the seller ID being used (sid), 
  • whether that hop was actually part of the payment flow (hp). 

There’s also a complete flag on the whole object, a simple yes/no on whether the chain traces all the way back to the actual owner of the site or app, or whether something upstream broke that chain.

Here’s the part I think is genuinely clever about the spec: a reseller isn’t allowed to just forward someone else’s schain object untouched. If they take custody of a bid request, they have to insert their own node into the chain. Skip that step, and the object becomes invalid. It’s a small rule, but it’s the thing that keeps the whole system honest: you can’t quietly disappear from your own supply chain.

Why declaring a chain isn’t the same as validating one

Having an schain object show up in the bid request is a good start, but on its own it doesn’t prove much. Anyone can put a domain and an ID in a JSON object. The value only shows up once someone actually checks whether what’s declared lines up with reality and that’s where ads.txt and sellers.json come back into the picture.

The logic is pretty simple once you see it laid out:

  • Ads.txt tells you who a publisher says can sell its inventory.
  • Sellers.json tells you, from the advertising system’s side, who each seller ID actually belongs to; either a publisher selling directly, or an intermediary reselling on someone else’s behalf.
  • Validation is the process of walking through every node in the schain array and checking it against both of those records.

That sounds manageable for one bid request. It’s a completely different problem at the scale of billions of requests a day, with ads.txt and sellers.json files changing constantly across thousands of domains. 

That’s why IAB Tech Lab ended up building an automated validation service instead of leaving it to each company to reconcile this on its own the reasoning being that a missing or wrong entry in these files can quietly cost a publisher revenue, or let inventory get sold by someone it never authorized, and there was no good way for publishers to know that was happening without constant manual checking. It’s also why the spec itself keeps evolving in the open. IAB Tech Lab runs public comment periods on GitHub, and there’s a proposed 1.1 update in the works to handle hp=0 nodes for entities that take custody of the request but aren’t part of the actual payment flow, which is a more accurate reflection of how supply paths look in practice.

What does this catch, concretely? There are a few things I’ve seen come up again and again:

  • A node whose asi/sid pair doesn’t exist anywhere in that system’s sellers.json that’s usually a fabricated hop. 
  • A payment-handling node whose ad system and seller ID pair never appears in the publisher’s ads.txt. Note this applies to hp=1 only 1.1 explicitly exempts hp=0 nodes from ads.txt validation and routes them to sellers.json.
  • Separating payment-chain completeness from full tech-chain completeness is a real improvement. But complete attests that every declared node is present, not that the seller at the end of the chain owns the site or app. Those are different claims, and the second is what most buyers assume they’re getting. The spec should say so plainly, and DSPs should validate against sellers.json rather than accept the flag as a conclusion.
  • Inventory offered against obfuscated or spoofed bundle IDs can’t be validated at all. If the terminal identifier doesn’t resolve to a real store listing or domain, a full chain carries no more assurance than an empty one. No value of complete addresses this. Identifier resolvability should be a prerequisite for the claims built on top of it.
  • Just plain sloppy implementation duplicate seller IDs pointing to different entities, missing required fields, chains that silently degrade to “incomplete” and quietly lose the signal buyers were counting on.

None of that is visible from glancing at a single request. It only becomes visible when you’re checking it continuously against the public record.

Why exchanges should care

For an exchange, this is really about trust translating into money. Buyers are increasingly filtering out or discounting bids that come with incomplete or unverifiable chains so an exchange that can guarantee clean, validated schain data on every outbound request is, functionally, offering better inventory, even if nothing about the impression itself has changed. There’s a defensive angle too: if a downstream reseller gets caught slipping fraudulent nodes into a chain, that’s a problem for every exchange that passed the request along without catching it. At this point, validating schain before it leaves your platform isn’t really optional if you want to stay in good standing with DSP partners.

Why SSPs should care

SSPs are in an interesting position here, because they’re the layer where a publisher’s actual relationships get turned into machine-readable authorization. If an SSP gets this wrong, everything downstream inherits the error. Doing it right means a few things: inserting your own node for every request instead of just passing an upstream chain through unchanged, keeping your own sellers.json in sync with what you’re declaring in outbound nodes, and probably the most useful one actually flagging or dropping requests when an upstream partner’s chain doesn’t check out, instead of letting that risk quietly flow downstream to the DSP.

There’s also a commercial angle publishers are starting to pay more attention to.

Why DSPs should care

For DSPs, I’d argue schain validation is the cheapest, highest-leverage fraud filter available before spend actually goes out the door. Most fraud detection is behavioral and after the fact you’re looking at patterns once the damage is already done. Schain validation is different because it’s deterministic: the chain either reconciles against the public record, or it doesn’t.

Validated schain data lets a DSP do things like apply bid-time filters that discount or exclude incomplete or unauthorized chains, and get real data behind supply-path optimization decisions instead of relying on what a vendor tells you about their own supply chain. It also cuts down exposure to made-for-advertising sites and spoofed domains, both of which depend heavily on nobody looking too closely at the path an impression actually took.

Where this is heading

Schain validation isn’t going to end ad fraud on its own; nothing does that by itself. But it takes away one of fraud’s most useful tools, which is simply being hard to see. A bid request that can’t produce a chain that reconciles against public ads.txt and sellers.json data should be treated with extreme caution, and only used very sparingly with fully transparent and trusted partners, typically through a Direct IO. and the industry is slowly getting to a point where that distinction gets caught automatically instead of during some manual audit six months later.

The direction of travel seems pretty clear: supply path transparency stops being something only the most sophisticated buyers bother chasing down by hand, and starts being something enforced continuously, at scale, as just another quality signal. My honest take, for anyone building on either side of the table: implement schain properly, validate it on an ongoing basis, and treat a chain you can’t verify from partners you do not have a direct deal with the same way you’d treat any other red flag; a reason to pass.

Piyush Deolikar headshot

Piyush Deolikar
Manager, Engineering, SpecialOps
InMarket