What is Ads.txt?

Similar to the infamous Robots.txt file, it’s a “plain text” file that is hosted on your root domain, at the top level of your website, and it contains a list of authorized sellers of your advertising inventory.

What is the point of Ads.txt files?

The Ads.txt initiative was started to combat ad fraud and in particular, two main types – unauthorized reselling of your ad inventory through arbitration, and more importantly, ad fraud through misrepresentation or counterfeit ad impressions.

For more information and explanation about what this is and why it is important, please see this blog post.

WORDPRESS SITES

We recommend you install and use the Mediavine Control Panel plugin. The Control Panel will set up and host your ads.txt automatically.

If you are already running MCP, please check and make sure it is the most recent version. If there is an error message in your Wordpress admin please see the section in this article that will walk you through correcting that.

NON-WORDPRESS SITES

If you're not running Wordpress, you can download your site's specific ads.txt in your Dashboard under Settings > Ad Set Up and you should see a button that says Download Ads.txt.

You'll need to take this file and upload it to the root directory of your site so it's accessible when you visit this page of your site:

http://www.yourdomain.com/ads.txt

You may need to get FTP access in order to upload a file to your root directory, so please check with your hosting company or your CMS's support portal.

SQUARESPACE ADS.TXT

Squarespace sites don't allow for the direct upload of files to your root directory, but we came up with a custom solution for this that you can read about here. Please email publishers@mediavine.com for help implementing this solution.


BLOGGER ADS.TXT 

Blogger implemented a solution that allows you to copy and paste your ads.txt file directly into your backend. You can follow those instructions here. 

What to do if your Ads.txt file needs updating

If you get an error in your Wordpress Admin letting you know that your Ads.txt file is out of date or failed to update, please follow these steps:

1. Verify the installed version of Mediavine Control Panel is 2.6.0 or higher.

2. Check your Mediavine Control Panel settings.

Depending on your site's server configuration, you may see an option to update the ads.txt file. Click the "Update Ads.txt" button and move to step 3:

If you get an error message after clicking "Update Ads.txt", then it is likely that there are settings on the server level that are preventing us from properly writing that file. You'll need to contact your host to see if they can change that setting, or the file will need to be manually added via FTP to ensure it is up-to-date. For instructions on that, please see this help page.


If you are running Sucuri, please follow these instructions in Sucuri to set ads.txt as a non-cache URL.

Otherwise, if you don't see that button then it means your server and WordPress installation is configured in a manner that would allow our plugin to automatically handle a redirect to an updated ads.txt file on our server.

If this is the case, then you can go to step 3.

3. Clear your site's cache.

If you have any caching plugins installed, you'll want to clear their caching. The option to clear cache can be found along the top menu bar in your WordPress Admin:

4. Check your dashboard's ADS.TXT site health check to make sure it is teal. The status should update near 5pm EST.

5. If your Ads.txt file updates successfully... 

Then you're all set. The error message should disappear. If it does not, please email publishers@mediavine.com.

Let us know if you have any questions! We're available via the blue chat bubble in the bottom right of your screen, or via publishers@mediavine.com. 

Did this answer your question?