If you are a mobile app developer, the IAB’s App-ads.txt project enables you to declare who is authorized to sell your inventory. By creating your own app-ads.txt file, you can protect your inventory from app spoofing and unauthorized sellers.
While not mandatory, using app-ads.txt is highly recommended because it gives demand-side platforms (DSPs) a simple way to check if inventory from a particular source has been authorized for sale by you.
You can learn more by reading the IAB Partner Interaction Guide.
To take advantage of app-ads.txt, see the following table for the information that goes into the file. Then, follow the steps for creating and posting the file.
If you have not received the OpenX-specific line(s) for your ads.txt file, contact OpenX. For your reference, each OpenX-specific line in the ads.txt file should include:
|Field||IAB Field Name||Description & Example||Required?|
|Field 1||Domain Name of the Advertising System||The domain name of the system to which bidders connect.|
|Field 2||Seller Account ID||The publisher account ID in OpenX.|
Note: OpenX provides you with OpenX-specific line(s) for your ads.txt file. If you have not received them, contact OpenX.
|Field 3||TYPE OF ACCOUNT/RELATIONSHIP||The type of account, for example either:|
Note: The IAB specifies that DSPs should treat this field as case insensitive when interpreting data. For simplicity and uniformity, OpenX recommends that the value in this field be typed in all capital letters.
|Field 4||Certification Authority ID||An ID that uniquely identifies the system in Field 1 within a certification authority. OpenX has been thoroughly vetted and certified by the Trustworthy Accountability Group (TAG). The TAG ID for all OpenX lines in the ads.txt file is |
Note: While this field is optional, OpenX highly recommends inserting the TAG ID in the OpenX lines of your ads.txt file. This field may become required in the future. Utilizing it now saves you from needing to revise it at a later time.
|Optional, but highly recommended|
Each app-ads.txt 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/app-ads.txt
- The first line of the example illustrates that the publisher is using OpenX directly, with an account ID of
- The second line of the example shows the publisher authorized another entity as a reseller of the ad space. That entity has an account ID of
Creating and Posting App-ads.txt
To create and post app-ads.txt:
Contact your OpenX Account Manager to request the lines of text that identify OpenX as an authorized partner.
If you don’t already have one, create a
.txtfile and name it
Copy the text provided by OpenX and paste it into your app-ads.txt file.
You can find your account Ads.txt in Administration > Accounts > Publisher Account > Details > Ads.txt.
Adding lines for other partners before you post the file helps avoid issues with DSP crawlers. Partners that are missing from your app-ads.txt file may be considered unauthorized sellers by DSPs.
Save the app-ads.txt file.
Post the app-ads.txt file to the root directory of your domain server. This is the domain that is listed in your app store as developer domain.
The file can be accessible via HTTP or HTTPS but must be located under a standard relative path:
app-ads.txt. The HTTP request header must contain
Update the app-ads.txt file every time you add a new partner.