How to Setup Ads.txt and Why You Should

Disclosure: Please note that this article may contain affiliate links. You can read the full disclosure here.

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

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.
  •, pub-0000000000000000, DIRECT, f08c47fec0942fa0


    Screenshot of Siteground file content click save

  • Open your site and add /ads.txt, like this
    Here is the ads.txt from one of our sites.
    Screenshot of Live ads.txt



    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., pub-0000000000000000, DIRECT, f08c47fec0942fa0


    Screenshot of Bluehost ads.txt

    Open your site and add /ads.txt, like this
    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.


    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

  • Avatar for 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.

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

    1. 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!

    2. Great article!
      Here is where I am at… Mysite is set up with a www. and I keep getting that error telling me “make sure it can be crawled”
      I then came across this in google help, yet I have no idea how to redirect a txt file !?

      –Confirm that the file is reachable from the root domain

      Redirects from to are fairly common. Ads.txt crawling will start at the root domain, and the root domain needs to return from, or redirect to, the ads.txt file.

      An ads.txt file on will only be crawled if redirects to it.

      Any help would be great.

      Thanks Tara!


      • Hi Mike,

        What is your domain? I am thinking that may be an htaccess redirect, depending on the host and if this is on WordPress, please feel free to reply with more info and share your domain and I’ll take a look for you.

        Thank you

    3. awesome! Thanks for the information. I do not like using apps/plugins to do stuff for me that i think i can do manually. Your detailed instruction is really helpful.

    4. This was one of the most helpful and informative blogs ever!! I was so confused and ready to give up altogether because it seemed so complicated! You made it sound easy. Thank you!


    Leave a Reply to Kathaleen Kopf Cancel reply