Programmatic

Audit Ads.txt & Sellers.json to Stop Ad Revenue Leakage

A enterprise publisher notices an overnight 18% drop in bid density across Google Ad Manager. Total impressions stay flat, but fill rates on high-CPM floor rules collapse. The DSP logs show bid requests failing automated verification checks. The root cause is not ad fraud, bad code, or a dropped tag. A major Supply-Side Platform (SSP) updated its sellers.json file, reclassifying a publisher account entry from PUBLISHER to INTERMEDIARY. Meanwhile, the publisher's root ads.txt file still designated that exact exchange line as DIRECT. Demand-Side Platform (DSP) risk algorithms flagged the mismatch as supply-chain spoofing and cut off bid flow immediately.

Supply path optimization (SPO) algorithms run by DSPs like The Trade Desk, DV360, and Amazon DSP validate inventory authorization programmatically in real time. If your public signals do not align down to the string, DSPs suppress your inventory from auction eligibility. Auditing the alignment between your ads.txt declarations, exchange sellers.json endpoints, and OpenRTB schain objects is an active revenue preservation requirement.

Why Do Ads.txt and Sellers.json Mismatches Kill Programmatic CPMs?

The IAB Tech Lab created ads.txt (Authorized Digital Sellers) to prevent domain spoofing, allowing publishers to publicly declare who is authorized to sell their inventory. Later, the IAB introduced sellers.json and the SupplyChain object (schain) under OpenRTB standards to make the buy-side intermediary path transparent. DSPs cross-verify all three data sources before issuing a bid.

When a DSP receives a bid request, its authorization engine evaluates three independent data nodes:

  • The Publisher's Root Ads.txt: Contains lines such as rubiconproject.com, 12345, DIRECT, 0bf1b92d9b83533e. This tells the buy-side that Magnite (Rubicon) is authorized to sell inventory directly on behalf of the domain owner under publisher account 12345.
  • The SSP's Sellers.json File: Published on the exchange domain (e.g., magnite.com/sellers.json). Node 12345 must exist in this file, matching the business entity name, domain, and a seller_type of either PUBLISHER or INTERMEDIARY.
  • The OpenRTB Bid Request SupplyChain Object: Transmitted inside the bid stream. It contains an ordered array of nodes (the schain) detailing every entity handling the bid request, including the authority system identifier (asi) and seller ID (sid).

If your ads.txt claims an SSP account is DIRECT, but the exchange's sellers.json marks that seller_id as INTERMEDIARY or BOTH, the DSP flags the transaction as an unverified supply node. The DSP cannot confirm whether an unauthorized reseller injected itself into the bid stream. Rather than risk buying spoofed or arbitrage inventory, the DSP algorithm quietly suppresses bid pricing or drops the bid request entirely.

Key Differences: Ads.txt vs. Sellers.json vs. SupplyChain Object

To audit discrepancies effectively, ad operations and MarTech engineers must understand how these three specifications intersect within the programmatic stack.

Attribute Ads.txt Sellers.json SupplyChain Object (schain)
Hosted Location Publisher Root Domain (domain.com/ads.txt) SSP / Exchange Domain (ssp.com/sellers.json) OpenRTB Bid Stream Payload (HTTP POST)
Primary Owner Publisher Ad Operations / Revenue Tech Supply-Side Platform (SSP) Engineering Header Bidding Wrapper / Ad Server Node
Core Validation Fields Domain, Seller ID, Account Type (DIRECT/RESELLER), TAG ID seller_id, name, seller_type, domain, is_passthrough complete, ver, nodes (asi, sid, hp, rid)
Inspection Method Public HTTP GET fetch Public HTTP GET fetch Real-Time Bid Stream Logs / Prebid Debugger
Common Failure Mode Stale IDs, missing lines, missing subdomains, typos Mismatch in seller_type, hidden business names, dropped accounts Missing node in wrapper, malformed array order, domain string mismatch

What Are the Most Common Discrepancy Scenarios?

Discrepancies rarely stem from intentional fraud. They are usually caused by administrative oversights, dynamic inventory arrangements, legacy header bidding setups, or misconfigured SSP metadata. Four main scenarios account for the vast majority of dropped bids.

1. DIRECT in Ads.txt vs. INTERMEDIARY in Sellers.json

This is the single most frequent mismatch. A publisher signs a contract directly with an SSP and adds the vendor to ads.txt as DIRECT. However, if the SSP manages that specific inventory segment through an operating subsidiary, exchange network, or joint entity, the SSP's internal system might log the account as an INTERMEDIARY in their public sellers.json. When DSP risk scanners attempt to validate the supply chain, the discrepancy triggers a supply integrity flag. To DSP engines enforcing strict IAB rules, an INTERMEDIARY entry in sellers.json mandates a RESELLER entry in ads.txt.

2. Confidentiality Flag Set to True (is_confidential = 1)

Under IAB Tech Lab standards, exchange partners can allow publishers to hide their real corporate identity in sellers.json by setting is_confidential: 1 or stripping the domain key. Agencies and DSPs running strict Supply Path Optimization (SPO) strategies deliberately block bid requests linked to confidential sellers. If an SSP account owner accidentally sets your account to confidential, your bid rates will fall even if your ads.txt line is correctly formatted.

3. Broken OpenRTB SupplyChain (schain) Objects

When using Prebid.js or server-to-server (S2S) wrappers, the schain module automatically constructs the payment path payload passed to buyers. If your Prebid configuration passes an asi domain of pubmatic.com and a seller ID of 9999, but your actual ads.txt lists the seat as pubmatic.com, 8888, DIRECT, the DSP bid handler drops the request. This discrepancy often happens during seat migrations, exchange consolidation, or publisher network acquisitions.

4. Subdomain and Shared Domain Mapping Failures

Enterprise media organizations managing regional subdomains, multi-tenant publishing portals, or white-label sites frequently encounter syntax mismatches. If an ads.txt file relies on subdomain= declarations or relies on canonical parent domains, SSP crawlers may fail to parse the relationship correctly. If the SSP's crawler fails to parse your root domain's inventory declaration, the exchange marks the account status as unverified, causing buyers to lower their bid floors.

Step-by-Step: How to Build an Automated Audit Pipeline

Relying on manual spot-checks for thousands of ads.txt lines and millions of sellers.json entries is inefficient and prone to errors. Ad operations teams need an automated pipeline to ingest, match, and alert on programmatic supply chain discrepancies. Here is how to build an end-to-end audit process using Python, standard APIs, and cloud data warehouses.

Step 1: Ingest and Normalize Your Root Ads.txt File

Write a script to fetch your published ads.txt file daily. Strip out comments, white space, and trailing standard tags (e.g., certification Authority IDs). Store the clean output in a structured database table or BigQuery dataset.

import requests

import pandas as pd

def fetch_and_parse_adstxt(domain_url):

url = f"https://{domain_url}/ads.txt"

response = requests.get(url, headers={'User-Agent': 'AdOps-Audit-Crawler/1.0'})

parsed_records = []

for line in response.text.splitlines():

line = line.strip()

if not line or line.startswith('#'):

continue

parts = [p.strip() for p in line.split(',')]

if len(parts) >= 3:

exchange_domain = parts[0].lower()

seller_id = parts[1]

account_type = parts[2].upper()

cert_id = parts[3] if len(parts) > 3 else None

parsed_records.append({

'exchange_domain': exchange_domain,

'seller_id': seller_id,

'adstxt_account_type': account_type,

'cert_id': cert_id

})

return pd.DataFrame(parsed_records)

Example usage

df_adstxt = fetch_and_parse_adstxt("example.com")

Step 2: Scrape and Index Global SSP Sellers.json Files

Maintain an automated fetch loop for your tier-1 SSP partners (such as Magnite, Index Exchange, OpenX, PubMatic, and Google). Download their sellers.json endpoints, parse the JSON array, and extract relevant account records.

def fetch_ssp_sellers_json(ssp_domain):

url = f"https://{ssp_domain}/sellers.json"

response = requests.get(url, headers={'User-Agent': 'AdOps-Audit-Crawler/1.0'})

data = response.json()

sellers_list = []

for seller in data.get('sellers', []):

Ignore sellers that are marked as deleted/inactive if flag exists

if seller.get('is_passthrough') == 1:

continue

sellers_list.append({

'ssp_domain': ssp_domain.lower(),

'seller_id': str(seller.get('seller_id')),

'seller_type': seller.get('seller_type', '').upper(),

'name': seller.get('name'),

'domain': seller.get('domain', '').lower(),

'is_confidential': seller.get('is_confidential', 0)

})

return pd.DataFrame(sellers_list)

Example usage for Magnite

df_magnite_sellers = fetch_ssp_sellers_json("rubiconproject.com")

Step 3: Run Relational Discrepancy Audits in SQL

Load both datasets into your data warehouse. You can run automated relational joins to surface discrepancies directly. If your organization relies on data pipelines that sync GA4 BigQuery data to Salesforce for attribution, you can append supply-chain health metrics directly alongside downstream yield records to measure actual revenue impact.

Use the following standard SQL query to surface critical mismatches across your stack:

SELECT 

a.exchange_domain,

a.seller_id,

a.adstxt_account_type,

s.seller_type AS ssp_declared_type,

s.name AS ssp_declared_name,

s.domain AS ssp_declared_domain,

s.is_confidential,

CASE

WHEN s.seller_id IS NULL THEN 'MISSING_IN_SELLERS_JSON'

WHEN a.adstxt_account_type = 'DIRECT' AND s.seller_type = 'INTERMEDIARY' THEN 'ACCOUNT_TYPE_MISMATCH'

WHEN a.adstxt_account_type = 'RESELLER' AND s.seller_type = 'PUBLISHER' THEN 'ACCOUNT_TYPE_MISMATCH'

WHEN s.is_confidential = 1 THEN 'CONFIDENTIAL_SELLER_FLAGGED'

ELSE 'VALID'

END AS audit_status

FROM

`adops_audit.ads_txt_parsed` a

LEFT JOIN

`adops_audit.sellers_json_parsed` s

ON

a.exchange_domain = s.ssp_domain

AND a.seller_id = s.seller_id

WHERE

audit_status != 'VALID';

Step 4: Audit Server-Side Logs for OpenRTB SupplyChain Integrity

Even if ads.txt and sellers.json align, misconfigured header bidding wrappers can insert broken schain strings into bid requests. Look for missing asi parameters, invalid node orders, or truncated strings in your server-side logs (such as Server-Side GTM, Prebid Server, or ad server data streams). Just as resolving revenue-impacting tracking issues requires eliminating unassigned site channels—similar to how ad ops teams fix GA4 unassigned traffic guide issues—auditing supply chain parameters ensures your programmatic revenue flow remains uninterrupted.

Confirm that your Prebid configuration matches your verified supply path records:

// Prebid.js Supply Chain Object Configuration

pbjs.setConfig({

sChain: {

validation: "strict",

config: {

ver: "1.0",

complete: 1,

nodes: [

{

asi: "rubiconproject.com",

sid: "12345",

hp: 1,

rid: bidRequest.bidId,

domain: "example.com"

}

]

}

}

});

Step 5: Automate Slack and Webhook Alerts

Integrate your SQL audit queries into automated alerting tools (such as Datadog, Slack webhooks, or Airflow notification nodes). Set alerts to fire immediately whenever a tier-1 exchange partner drops a seller account, flags an account as confidential, or alters a seller_type value.

How to Remediate Mismatches with SSPs and Demand Partners

When your audit flags an error, follow a structured remediation process to clear the issue quickly:

  1. Isolate the Flagged Row: Extract the exact domain, seller_id, current ads.txt string, and exchange response. Determine if the error originates from an outdated ads.txt entry or an inaccurate SSP database value.
  2. Issue an SSP Account Update Ticket: If an exchange lists your account as INTERMEDIARY despite a direct contractual relationship, submit a ticket to your account manager requesting an update to their sellers.json system. Demand partners must update the seller_type to PUBLISHER or BOTH depending on your inventory arrangement.
  3. Align Ads.txt Account Declarations: If an exchange route utilizes third-party resellers or inventory clearing houses, update your root ads.txt entry from DIRECT to RESELLER to match the exchange's public sellers.json entry.
  4. Clear DSP Risk Caches: Major DSPs cache ads.txt and sellers.json crawl files for 24 to 72 hours. Once both endpoints are aligned, use DSP publisher portals or submit support tickets to request a manually triggered recrawl of your root domain.

Frequently Asked Questions

How often should programmatic ad-ops teams run an ads.txt and sellers.json audit?

Audits should run automatically on a daily schedule. SSPs update their sellers.json files regularly, and unexpected reclassifications can drop bid density within hours. Daily automated checks allow your team to fix mismatches before they cause noticeable revenue loss.

Why does a DSP block inventory if sellers.json lists a partner as INTERMEDIARY instead of PUBLISHER?

DSPs enforce strict supply path authorization to prevent domain spoofing and inventory arbitrage. If your ads.txt claims a relationship is DIRECT but the exchange logs it as INTERMEDIARY, the DSP cannot confirm who controls the payment flow. To protect buyer spend, the DSP's risk algorithm drops or penalizes the bid request.

What is the difference between seller_type PUBLISHER, INTERMEDIARY, and BOTH?

In sellers.json, PUBLISHER indicates that the entity owns and operates the site generating the inventory. INTERMEDIARY means the entity is a reseller, ad network, or wrapper provider clearing inventory on behalf of a third party. BOTH means the entity sells its own owned-and-operated inventory while also re-selling inventory for third-party partners.

Can header bidding wrappers cause schain validation errors even if ads.txt is clean?

Yes. If your Prebid.js or server-to-server wrapper passes a malformed schain payload—such as an incorrect asi domain, a missing node, or a mismatched seller ID—the DSP will reject the bid request. The bid stream payload must match both the publisher's ads.txt file and the exchange's sellers.json records.