Add an ads.txt file

An ads.txt file is a mandatory file that you need to store when you place advertisements on your site. In this article we will show you how to use this file.

Table of contents

Basic knowledge

The ads.txt file is a text file from the IAB Initiative (external link). Similar to a robots.txt, you deposit this file on our web server and offer it for download. This file shows which providers are authorized to sell on your website. The file is public and can be viewed and crawled by platforms, buyers and third-party providers.

Note: For more tips and tools, we recommend our article on frequently asked questions about search engine optimization. Please note that neither SEO strategy nor problems with submitting the Robots.txt file to the search engines are our responsibility. We recommend our community, where you can exchange ideas with other professionals.

Add an ads.txt file to your project

In order for the search engines of platforms, buyers and third-party providers to find the file, it must be located in the main directory of the domain. If the file is hidden somewhere else, the crawlers assume that there is none. We can achieve this with a simple trick.

1. Upload your ads.txt into the media manager of your website.

2. From the File Manager, open the file in a new browser tab. This way, you will get to know the URL that you need. You could also click on "Get Link". This way, the link is directly copied into your clipboard.

3. From the new browser tab, copy the part of the URL highlighted in the image below.

4. Go back to the Website Editor tab and click on the burger menu in the top left corner.

5. Click the "Redirections" menu item

6. Click "+ Add rule"

7. Select either "301" or "302" in the redirect "Type" field. We recommend a 301. Paste the copied URL as described. 

Your ads.txt file can now be found by search engines at its expected location.

Become a part of our Community!

Exchange ideas with other web designers about current developments, tips, and tricks and show your favorite sites. Get advice and talk to us about possible features you would like to see on Sitejet. You can join the Sitejetters community here.

Back to the top

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us