What is app-ads.txt?
App-ads.txt is a text file that helps prevent ad fraud in mobile apps. It's similar to ads.txt for websites but specifically designed for mobile applications. This file lists all ad sources authorized to sell your app's ad inventory, helping advertisers verify they're buying legitimate ad space.
Why Your App Needs app-ads.txt
Having an app-ads.txt file provides several benefits:
- Prevent Ad Fraud: Stops unauthorized parties from selling ad space in your app.
- Increase Revenue: Many advertisers only buy from apps with app-ads.txt verification.
- Build Trust: Shows advertisers you're committed to transparency.
- Industry Standard: Increasingly required by major ad networks and platforms.
App-ads.txt Format
The app-ads.txt file follows a simple format with each line containing:
domain.com, publisher_id, RELATIONSHIP, certification_authority_id
Example:
google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0
facebook.com, 1234567890, RESELLER, c3e20eee3f780d68
You'll need to get these details from each ad network you work with.
Creating Your app-ads.txt File
To create your app-ads.txt file:
- Get the correct entries from each of your ad partners (Google AdMob, Facebook, etc.)
- Create a plain text file named exactly "app-ads.txt"
- Add each entry on a separate line
- Upload the file to the root of your developer website
Where to Place Your app-ads.txt File
Your app-ads.txt file must be placed at the root of your developer website domain that's listed in the app stores. For example:
https://YOUR-DOMAIN.appsetup.dev/app-ads.txt
This is the same website you've linked in yourmarketing and support sitefor your app store listings.
Connecting app-ads.txt to App Stores
The app stores automatically look for your app-ads.txt file at the root of the developer website you've provided in your app store listings:
- Google Play Store: Uses the website URL from your store listing.
- Apple App Store: Uses the support URL from your App Store listing.
Make sure these URLs point to the same domain where your app-ads.txt file is hosted.
Google Play Store Setup
The Google Play Store will look for your app-ads.txt file at the root of the website URL you've provided in your store listing, as shown below.

Apple App Store Setup
The Apple App Store will look for your app-ads.txt file at the root of the support URL you've provided in your App Store listing, as shown below.

Video Tutorial: Setting Up app-ads.txt
Watch this step-by-step tutorial to learn how to create and implement an app-ads.txt file for your mobile app. This video covers the entire process from creation to verification.
Verifying Your app-ads.txt File
After uploading your app-ads.txt file, you should verify it's working correctly:
- Check that the file is accessible by visiting
https://YOUR-DOMAIN.appsetup.dev/app-ads.txt
in your browser - Verify the content is correct and there are no formatting errors
- Use validation tools provided by ad networks to check for issues
Most ad networks provide tools to verify your app-ads.txt implementation.