app-ads.txt support
Implement the app-ads.txt file on your developer website to declare authorized ad sellers, enhance transparency, and prevent revenue loss from unauthorized inventory.
Read time 4 minutesLast updated 6 hours ago
The app-ads.txt file consists of a list of authorized digital sellers. This file was created by IAB, to combat fraud and to create transparency in the advertising ecosystem. The file verifies the legitimacy of sellers, protecting against fraud and misrepresented domains. Developers must host this file in the root of the developer website. Brand advertisers and demand-side platforms (DSPs) scrape this file and cross-reference it when they buy ad inventory programmatically by using exchanges, supply-side platforms (SSPs), and ad networks. While implementing app-ads.txt is not mandatory in most cases, failing to do so will cause developers to lose significant ad revenue for the following reasons:
- DSPs use this file to understand the supply chain of inventory they are buying.
- Some DSPs will only buy from developers that have correctly implemented this file.
- Developers that properly declare their authorized sellers help advertisers greatly reduce the risk of counterfeit inventory, which over time funnels more advertising dollars to quality developers.
For more information, read the IAB Tech Lab spec and Unity's blog on elevating inventory quality.
Setting up app-ads.txt for the first time
To set up app-ads.txt from the Unity Ads Monetization dashboard:- Select Setup > Organization Settings from the secondary navigation menu.
- Locate the Developer Website field in the Organization info and select the edit icon.
- Enter the URL of the website where your game is listed on the app store. This is usually simple, for example, "https://www.unity3d.com". This field should contain only the root of the developer's website. For example, you can find this website on the Developer page of Google Play, and in settings on the Apple store.
- Go to the App-ads.txt section. The App-Ads URL field will automatically display a list of authorized digital sellers in the correct file format. If it doesn't, refer to this website root directory guide for more information.
- Click Show full list to view all the values for your file, then copy this list.
app-ads.txt
- Using a text editor, create an and paste the list from the Monetization dashboard into the file.
app-ads.txt
- Copy the file into the root of the developer website so that it's findable in the location listed in the app-ads URL field.
app-ads.txt
Maintaining app-ads.txt
It's important to visit the app-ads.txt setting regularly to see if anything has changed, or to respond to error messages or notifications that you receive. Here are some issues that can happen, and how to fix them.Missing or incorrect website
Unity could not find yourapp-ads.txt
Missing some app-ads.txt entries
You are missing some app-ads.txt entries. Solution: Navigate to the App-ads.txt section in your Organization settings to refresh the list, then copy-paste the entire updated list into your file.Ensure publisher transparency with OwnerDomain
As part of the ads.txt framework, publishers must include theOwnerDomain
app-ads.txt
Purpose of the OwnerDomain field
The IAB'sOwnerDomain
OwnerDomain
ads.txt
sellers.json
Implementing OwnerDomain in your ads.txt file
To supportOwnerDomain
app-ads.txt
ads.txt
Type | Variable | Description |
---|---|---|
OwnerDomain | ownerdomain=yourdomain.com | For publishers, an OwnerDomain entry must be added to
|