How to Setup Ads.txt and Why You Should

Sharing is caring!

Disclosure: Please note that this article may contain affiliate links. You can read my full disclosure here.
    Need help with the Tech-side of blogging? Join my Facebook Group and get some answers.
~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~

First why should setup ads.txt

If you use any advertising on your website, from starting with adsense in the early days to going to a premium adnetwork like Monumetric, Mediavine or Adthrive, you will want to setup the Ads.txt file on your site.
 

Monumetric has a post on this here: ADS.TXT: Taking Down the Black Market and that title really drew me in. The link opens in a new tab if you want to quickly read it, then come back to the instructions on how you can set it up.
 

“Ads.txt specifies a mechanism for publishers to list their authorized digital sellers, in order to fight against fraud and misrepresented domains” from https://iabtechlab.com/ads-txt/

You must declare each of authorized ad sellers on your site. If you are using Adsense this will just be your publisher ID from the Adsense settings, but if you are part of another Ad network, you may need to declare additional sellers. See this link from Google for more info.

Instructions to backup WordPress with UpdraftPlus

If you see the warning “Earnings at risk – One or more of your sites does not have an ads.txt file. Fix this now to avoid severe impact to your revenue” in Adsense, it takes up to 24 hours for Google to update for the warning to go away.

If you are on Squarespace and need to setup ads.txt for Adsense, you can try this Reddit post.

If you need to troubleshoot Adsense Ads, I recommend to install the Advanced Ads Plugin, the developer is fairly quick to reply to answer your questions too.

Creating your ads.txt file

If you are using Adsense. Login to your Adsense account and then down on the bottom left, click “Account”. This will open the page that shows you your publisher ID.
 

Screenshot of finding your Adsense Account Publisher ID
 

There are instructions below for Siteground and Bluehost, most hosts will be fairly similar as you will see between the two here.

Instructions on Siteground

Jump to Bluehost Instructions
 

  • Open a new tab and login to your host.
  •  

  • Click on “My Accounts”, then the “Go to cPanel” red button.
  •  

    Screenshot of Login to siteground click on My account then cpanel
     

  • Scroll down till you see the Files portion of the cpanel, click on ‘File Manager’
  •  

    Screenshot of Siteground File Manager further down page
     

  • You will see this popup, select ‘document root’ and make sure the document root drop-down is pointing to your domain, click ‘Go’.
  •  

    Screenshot of Siteground File Manager Popup
     

    This will open to the File Manager to the root of your domain.
     

  • Click the ‘+File’ near the top on the left of the page.
  •  

    Siteground add a file to public_html
     

    You will be prompted to name your new file

  • enter ‘ads.txt’ (without the quotes), click ‘Create New File’.
  •  

    Screenshot of new file ads.txt
     

  • Right-click the ads.txt file and select ‘Edit’ from the menu.
  •  

    Screenshot of right click ads.txt and click edit
     

    This is from Google’s instructions for Adsense.
     

  • Enter the following info, using your Publisher ID from the first step above, then click save.
  • google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

     

    Screenshot of Siteground file content click save
     

  • Open your site and add /ads.txt, like this https://example.com/ads.txt
  •  
    Here is the ads.txt from one of our sites.
     
    Screenshot of Live ads.txt
     
    You should see your ads.txt file you have created. If you run into trouble or need assistance, feel free to check out my services page and arrange a time for me to assist you with getting this setup.

     

     

    Instructions on Bluehost

  • Login to your Bluehost account
  • Click Advanced
  • Select the File Manager
  • Screenshot of finding the Bluehost cpanel File Manager
     
    Once inside the File Manager.

  • Click on ‘public_html’ on the lower left side of the screen
  • This is the root folder for your first site on the host, if you have multiple domains, you may need to click into the subfolder named for your domain.

  • Then click on the ‘+File’ on the top left
  • Screenshot of Bluehost Create File

  • Name your file ads.txt
  •  

    Screenshot of Bluehost name file

  • Right-click on ads.txt and select edit
  •  

    Screenshot of Bluehost name file

  • Enter the following information and save the file
  • This is from Google’s instructions for Adsense.
     

    Enter the following info, using your Publisher ID from the first step above, then click save.

    google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

     

    Screenshot of Bluehost ads.txt

    Open your site and add /ads.txt, like this https://example.com/ads.txt
     
    Here is the ads.txt from one of our sites.
     
    Screenshot of Live ads.txt
     
    You should see your ads.txt file you have created. If you run into trouble or need assistance, feel free to check out my services page and arrange a time for me to assist you with getting this setup.
     

    Check for old sites on Adsense

     
    Check under Adsense sites and confirm all old sites you are no longer using are removed.

    adsense sites

    If you see an old site, make sure to click the drop-down and remove it.
    If you have an old site, click the drop down and select remove

    Test that Google can reach your Ads.txt file

     
    Go to the Old search console Robots.txt tester here, link will open in a new window. Make sure you are logged into your Google Search Console account.

    Test to make sure that Google can reach your ads.txt file, especially the last two bots Adsbot-google and MediaPartners-google.

    Robots.txt-tester

    That’s all. Your ads.txt file is setup for adsense. Make sure to check with your ad network for what they want you to use in your ads.txt file if you are with another ad publisher.
     

    Instructions for Mediavine

    Instructions for AdThrive

    Got blogging questions? Join my Facebook group here WP Blogger Assist Questions Advanced WordPress user with coding knowledge? Advanced Coding on WordPress
  • Tara, WP Blogger Assist

    I have over 15 years experience in IT. Over this time: managing server infrastructure, building websites and more. This website is dedicated to helping WordPress bloggers with setting up their blogs and websites; optimizing fast page loading, SEO and social media marketing - such as; Pinterest, Facebook and more.

    4 thoughts on “How to Setup Ads.txt and Why You Should

    • June 14, 2019 at 4:48 pm
      Permalink

      Thank you so much for guiding me through this. I appreciate it so much!

      Reply
      • June 14, 2019 at 4:58 pm
        Permalink

        I’m so glad you found it helpful.

        Reply
    • July 9, 2019 at 10:42 am
      Permalink

      Thank you so much for helping us with this! I can’t handle anything technical and this was the simplest step-by-step guide I found online!

      Reply
      • July 9, 2019 at 5:42 pm
        Permalink

        Hi Sofia, I’m so glad my post was helpful to you.

        Reply

    Leave a Reply

    Your email address will not be published. Required fields are marked *