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. Make sure you are running the latest version of the Mediavine Control Panel plugin. 

2. Navigate to your Mediavine Control Panel plugin settings. 

In your WordPress dashboard, this option is under Settings > Mediavine Control Panel.

3. In the Mediavine Control Panel plugin settings, scroll down to the Advanced section.

4. Click the button that says, "Attempt to Force Update Ads.txt and Check if Up to Date" button, then click "Save Changes" at the bottom of the page. 

5. Clear your site cache! 

Many WordPress sites utilize caching plugins. If yours doesn't have one, your host or tech help should be able to assist.

6. 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.

7. If you get a message that the update failed... 

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.

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?