How to Create Ads.txt and Upload it to Domain Root Directory

Google has now made it compulsory for all AdSense publisher to create and upload ads.txt file to declare AdSense as one of the authorized sellers on their website to help improve advertisers transparency.

If you check through your Google AdSense dashboard you will see a notification saying: earning 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.

Earning at risk

You can have as many as possible publishers on your ads.txt file. It’s not only for AdSense. But, it’s not advisable to have two ads.txt files. You can have as many as you like advertisers information in your ads.txt file.

If you run give different advertisers like Amazon, Media.net, Content.ads, Tabaola, and many more.

All you just need to do is declare these advertisers in your ads.txt file and upload it to your site domain root.

Don’t worry we will take your different approach to create ads.txt file and upload it to your root domain.

Create ads.txt file and upload it

What is Ads.txt File?

Ads.txt file is a file containing advertisers declaration information on your site that you are the one that authorized them to advertise on your website.

Without uploading the Ads.txt file to your root directory won’t affect your account though but it will affect your earning and it won’t give much transparency about your advertisers.

Ads.txt Sample

If you go through the information in your Google AdSense account and click on learn more, you will see a sample Google recommend for users and how to create ads.txt file and upload it to site root domain.

This recommended approach is what we will walk you through in this article and then put you through how to upload it to your root directory.

Here is an example of an ads.txt file.

google.com, pub-xxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0

Where “xxxxxxxxxxxxx” is your Google AdSense publisher ID.

Create Ads.txt file without Plugin

You need to create an ads.txt file in your notepad or text editor and save it as a .txt file.

1. Open notepad on your PC. Use your Mac text editor if you are using MacOS.

2. Copy and paste “google.com, pub-xxxxxx, DIRECT, f08c47fec0942fa0″ and replace your publisher ID with “xxxxxx”

3. Click on save and save the file as ads.txt

You have successfully created your ads.txt file without a plugin. Next if to upload it to your domain root directory.

Upload Ads.txt

If you host your WordPress blog on a host with a Cpanel, follow the procedure I’ll share with you below to upload your ads.txt file.

1. Log into your Cpanel

2. Click on the file manager

3. Click on public_html

4. Click upload on the menu

5. Click on upload on the new tab and select the ads.txt file.

6. Click on back to public_html

The ads.txt file is now uploaded to your root directory.

Check Ads.txt 

The above steps help you to upload your ads.txt file. Then how do you check whether the file has been uploaded successfully into your root domain directory?

1. Open a browser

2. Type your website URL and add ads.txt after the forward slash, as, https://yoursite.com/ads.txt

3. You will see the uploaded file

If you didn’t see the uploaded AdSense publisher ads.txt file then something is wrong and you have to do it again.

Create and Upload Ads.txt on Blogspot

For the blogger platform, here is how to manually create your own ads.txt file if not automatically created by Google.

1. Sign in to Blogger at blogger.com

2. In the top left, click the Down arrow Down Arrow 

3. Click the blog you want to set up an ads.txt file on.

4. On the left, click Settings.

5. Under “Settings,” click Search preferences.

6. Under “Monetization,” find “Custom ads.txt” and click Edit.

6. Click Yes.

7. Copy and paste “google.com, pub-xxx, DIRECT, f08c47fec0942fa0” without the quotes

8. Click Save settings.

Do not forget to replace the “xxx” with your Google publisher ID.

Leave a Comment