Last updated on February 7, 2018
Proposed by the Interactive Advertising Bureau (IAB), ads.txt, or Authorized Digital Sellers, is an initiative which aims to improve transparency for the world of programmatic advertising by enabling content owners to specify which advertising systems and resellers are authorized to sell their inventoryAd space available on a website or app. The basic unit of inventory for OpenX is an ad unit..
Adoption of ads.txt can help prevent domain spoofing and the sale of unauthorized inventory by providing a simple way for demand-side platforms (DSPs) to check if inventory from a particular source has been authorized for sale by the domain owner.
You can learn more by reading the following IAB topics:
Important: By the end of Q1 2018, OpenX will block all reseller traffic that is not authorized on the publisherAn account type that represents a business with ad space to sell.'s ads.txt file from entering the OpenX Ad Exchange. By applying strict ads.txt compliance to the exchange, buyers and DSPs can trust that all inventory flowing through OpenX is authorized by the publisher in instances where an ads.txt file is available.
Decreased revenue for fraudsters.
Certainty that inventory you purchase from a given domain is being offered by authorized sellers.
In order to ingest data from an ads.txt file, you must have a crawler that is capable of checking ads.txt files of the domains found in bid requests.
Each line is formatted as follows:
Domain Name of the Advertising System, OpenX Account ID, TYPE OF ACCOUNT/RELATIONSHIP, (Optional) Certification Authority ID
In this live example, the publisher has two OpenX accounts: https://docs.openx.com/ads.txt
Important: The OpenX Account ID in the ads.txt file should match the Publisher object's
id attribute in the bid requestWhen OpenX Ad Exchange receives an ad request, it sends a communication containing details about the impression to selected real-time bidders to solicit bids for it..
The first line of the example illustrates that the publisher is using OpenX directly, with an OpenX Account ID of 123456789.
The second line of the example shows the publisher authorized another entity as a reseller of the ad space. That entity has an OpenX Account ID of 987654321.
Interacting with ads.txt
Via a crawler, check the ads.txt file of the domains found in the bid requests you receive.
Tip: The IAB provides a reference implementation of an ads.txt data crawler in their GitHub repository.
Download the ads.txt file and update your own internal database based on the information within ads.txt.
Update your buying algorithm accordingly.
Assess the bid requests you receive. If there is no match between the Publisher object's
idattribute in the bid request and the authorized sellers listed in the ads.txt file, do not buy the inventory.
The image below shows an example of where to find the Publisher object's
idattribute in the bid request.
Interpretation of server responses
When the ads.txt file is present, you need only read the content, parse it, and obey the declarations. When no ads.txt file is present, the IAB recommends the following:
|Status Code||Resource Status||DSPDemand-side platform, a platform or provider that allows advertisers to manage multiple ad exchange and data exchange accounts through one interface, often in real time. Actions|
||Restricted||Seek direct contact with the content owner for authorization keys/clarification.|
||Does not exist||Assume no declarations exist and that all advertising systems are authorized to buy and sell ads for this particular website.|