Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • ads.txt will always be up to date, ensuring an optimal configuration and improving revenue

  • No additional effort to manually update the file or implement automatic updates

Direct hosting

You can host ads.txt directly on your web server by downloading the latest ads.txt delivered through the Snigel CDN and adding it to your root domain and any subdomains as needed.

It is recommended that the ads.txt file is updated regularly, either manually or by implementing an automatic download or synchronization job.

Required HTTP response headers

The ads.txt file must be accessible via HTTP and/or HTTPS from the website path /ads.txt.

The HTTP response needs to contain the following headers to be accepted by the advertiser's crawlers:

  • Content-Type: text/plain; charset=utf-8

Additional implementation details can be found in the official IAB ads.txt specification.

Redirect

The recommended method of ads.txt hosting is to redirect /ads.txt to the Snigel CDN ads.txt file.

...

This will instruct the web server to return a permanent redirect 301 to the ads.txt file on the Snigel CDN.

Direct hosting

You can host ads.txt directly on your web server by downloading the latest ads.txt delivered through the Snigel CDN and adding it to your root domain and any subdomains as needed.

It is recommended that the ads.txt file is updated regularly, either manually or by implementing an automatic download or synchronization job.

Required HTTP response headers

The ads.txt file must be accessible via HTTP and/or HTTPS from the website path /ads.txt.

The HTTP response needs to contain the following headers to be accepted by the advertiser's crawlers:

  • Content-Type: text/plain; charset=utf-8

Additional implementation details can be found in the official IAB ads.txt specification.

Validate Ads.txt

Test that ads.txt is publicly accessible on the URL:

...