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:

  1. Get the correct entries from each of your ad partners (Google AdMob, Facebook, etc.)
  2. Create a plain text file named exactly "app-ads.txt"
  3. Add each entry on a separate line
  4. Upload the file to the root of your developer website

See below for where to place this file

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:

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.

Google Play Console website URL field for Android apps

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.

App Store website URL field for iOS apps

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:

  1. Check that the file is accessible by visiting https://YOUR-DOMAIN.appsetup.dev/app-ads.txt in your browser
  2. Verify the content is correct and there are no formatting errors
  3. Use validation tools provided by ad networks to check for issues

Most ad networks provide tools to verify your app-ads.txt implementation.