Set up An Ads.txt File for Your Website

Create ads.txt File at the Root level of Your Website

Create your ads.txt file using the following file format and data record:

File Format

Data encoding details:

  • Use 'text/plain' as the HTTP content type; treat other types as errors.
  • Core syntax: Comma-separated format with three fields per line.
  • Records are separated by an end-of-line marker.
  • Records follow a specific line format.
    • <FIELD #1>, <FIELD #2>, <FIELD #3>, <FIELD #4>
      placeholder.example.com, placeholder, DIRECT, placeholder
Field Name Mandatory/Optional Description
Field #1 Domain name of the advertising system Mandatory The canonical domain name of the SSP, Exchange, Header Wrapper, and so on that bidders connect to.
Field #2 Publisher’s Account ID Mandatory The identifier associated with the seller or reseller account within the advertising system in field #1.
Field #3 Type of Account/Relationship Mandatory Indicates the type of account.
‘DIRECT’ indicates that the Publisher directly controls the account. This means a direct business contract between the Publisher and the advertising system.
‘RESELLER’ indicates that the Publisher has authorized another entity to control their account and resell their ad space.
Field #4 Certification Authority ID Optional An ID that uniquely identifies the advertising system within a certification authority (this ID maps to the entity listed in field #1).

Add Your Personalized Code Snippet

For the ads.txt setup, you must ensure to:

  • Add business/payment info to generate entries. For more information, see Payment Settings.
  • Use InMobi's personalized ads.txt entries.
    • Inmobi's line: This a mandatory line to be included in your ads.txt file to authorize Inmobi to sell your inventory.
    • Priority lines: This list includes the above mandatory line and the reseller lines to help you achieve optimal monetisation through Inmobi.
    • Maximum lines: This list includes Inmobi's line and all the reseller lines suggested by Inmobi to maximize your earning potential on Inmobi's platform.
  • Append entries to your ads.txt file.

Follow the instructions below to get your personalized ads.txt entries, which include your InMobi payment ID:

  1. Log in to InMobi.
  2. Navigate to Inventory >> ads.txt.
  3. Scroll down and download the ads.txt file.
  4. Post the file in your website's root directory.
  5. Ensure correct formatting and line breaks after updating InMobi’s entries into your ads.txt file.

Publish ads.txt File on your Website

InMobi's ads.txt crawler locates your file using the website URL provided for that inventory on the dashboard. Per ads.txt specs, the crawler checks the file at:

  • https://<<hostname>>/ads.txt
  • http://<<hostname>>/ads.txt

Determine the hostname from your website URL. It's the website's root domain, as explained below.

Refer to the table for examples where the InMobi crawler checks for an ads.txt file based on different website root domains.

If the website is: Crawler looks in the following order:
https://example.com/game https://example.com/ads.txt
http://example.com/ads.txt
http://help.example.com/game https://example.com/ads.txt
http://example.com/ads.txt

The ads.txt specification outlines rules for root domains and subdomains. Crawlers will explore up to five redirections within a root domain and one outside the root domain.

To verify correct publication, ensure the ads.txt URL displays its content when accessed through your web browser. If it is visible in your browser, crawlers will probably locate it successfully.

Ensure Crawlable ads.txt File

Ensure the ads.txt is accessible via both HTTP and HTTPS.

Check Verification Status of ads.txt File

Monitor your ads.txt files in your InMobi account:

  1. Log in at https://publisher.inmobi.com/.
  2. Navigate to Inventory on the left menu.
  3. Select ads.txt.
  4. After you add the ads.txt with seller information, you can view the verification status loading below.

If your file wasn't located or verified, review the details in your InMobi account or explore troubleshooting tips for ads.txt issues.

Note

If you've recently updated your ads.txt file, it may take at least 24 hours for the crawler to display the latest verification status.

First-time Setup Process

Upon creating your account on InMobi and establishing your inventory, access the verification status through Inventory >> ads.txt. Activation of the InMobi crawler occurs once any of the added apps has generated 10 thousand bid requests.

On This Page

Last Updated on: 26 Nov, 2024