How To Fix Earning at risk ads.txt files in WordPress
Share this post...

“Earning at risk ads.txt files”… This is a common issue that many beginners face When they first get approved by Google AdSense. This is not something you should be worried about.

Perhaps, you only need a few simple steps to fix “Earning ar risk ads.txt files’ In this blog, I will show you two methods you can implement to solve the issue.

Choose the one that looks simple to implement. Without wasting much of your time, let us get started …

Log in to your Google AdSense account

To log in to your Google Adsense, use this link. On the home page, you might see these two notifications (see image below).

how to fix earning at risk ads txt file
  • How to fix “Earning at risk ads.txt files”
  • How to “Publish your seller information in the Google sellers.json file”

These two are critical steps in helping google determine the types of ads to display on your website. It also helps to display transparency between you as the Publisher, Advertisers, and Google AdSense.

We will start with the first issue and then the second one later in this blog. (Use the “table of contents” to skip to any part)

– How to fix “Earning at risk ads.txt files”

how to fix earning at risk ads txt file

To fix the issue “Earning at risk ads.txt” click on “Fix now“. You can see the sites that have been affected if you have multiple websites.

how to fix earning at risk ads txt file

X1 – See the site that is affected

X2 – Learn more on how to solve the issue (see image below)

DOWNLOAD” the file to your computer or laptop. We will use the file later. Make sure you download it.

Note!!! I will teach you how to tackle step 6 using two methods:

(On my site I have used the first method, but the second method is simpler and most people prefer it)

Method 1

Login to your hosting provider Cpanel. In my case am using Hostinger. This works the same in every hosting you have. You just have to follow the steps.

how to login to hostinger cpannel

Log in > Cpannel > manage (see image above)

On the next page, scroll down until you see “file manager” and click on it.

how to access your file manager in hostinger

Click File manager (don’t use the beta version) > public_html

Expand the option “public_html. That is where you want to add the “ads.txt files”

how to access your public-html in hostinger
  • 1 – public_html
  • 2 – Use this option to “add a new file” see the image below.

Add the name of the file (use the one I have used) and then “create” file.

how to add ads.txt file in your public-html

When done, you should see this option “ads.txt” (see image below)

how to add ads.txt file in your public-html 2

Right-click” on the option “ads.txt” to see more options. Click “edit“.

Remember the file we downloaded, (go to your downloads and open the file). Alternatively, Click “Ctrl+J” to open all downloads, and double click it to open it in a notepad.

how to locate downloads in chrome
  • 1 – chrome downloads “Ctrl+J
  • 2 – Your ads.txt code
  • 3 – Copy the ads.txt code

Copy the code and paste it on the “ads.txt” you just created. See the images below. Then “save &Close

how to add ads.txt file in your public-html

If for some reason it doesn’t work, You will get an option to “upload file

how to add ads.txt file in your public-html

Click on it and select the “ads” file in your downloads then open it.

how to add ads.txt file in your public-html
  • 1 – ads.txt file
  • 2 – File that is chosen
  • 3 – Open the file to upload it

The file has now been imported, you need to click “upload”. This copies the code to your “ads.txt file” and adds them to your public.html.

how to add ads.txt file in your public-html
  • 1 – completed
  • 2 – The imported file “ads.txt file”
  • 3 – Upload it

You should see a page like this, if it appears to be empty click “save & close” and open the “ads.txt” on your public.html again and you should see the code. Confirm whether it is correct then “save & close”

To confirm whether it has been added, Visit your site and add /ads.txt

Here is what I mean …

example.com/ads.txt

How to locate your ads.txt file using your domain name
  • 1 – Your ads.txt file code
  • 2 – Close page

You should see a page like this, once again confirming whether all details are the same. Close the page. Yes, you are done!

Note!!! The error “Earning at risk ads.txt file” can take up to a few days before it disappears. So don’t worry. just wait (you can see this on the fourth image on this blog)

The second method …

Method 2

This is the simpler method. The reason I don’t recommend it is you might deactivate or delete the plugin by mistake. Yes, we are going to use a plugin.

Log in to your WordPress account and head over to plugins > add new > Ads.txt Manager

how to install Ads.txt Manager plugin in wordpress

Install the plugin and activate it. Go to settings > ads.txt

how to locate Ads.txt Manager plugin in wordpress

Right-click and paste the code (see images 1 & 2 below)

how to add Ads.txt Manager plugin in wordpress
image 1
how to add Ads.txt Manager plugin in wordpress
image 2

Once again, you need to confirm. To confirm whether it has been added, Visit your site and add /ads.txt

Here is what I mean …

example.com/ads.txt

How to locate your ads.txt file using your domain name
  • 1 – Your ads.txt file code
  • 2 – Close page

You should see a page like this, once again confirming whether all details are the same. Close the page. Yes, you are done!

Note!!! The error “Earning at risk ads.txt file” can take up to a few days before it disappears. So don’t worry. just wait (you can see this on the fourth image on this blog)

– How to fix “Publish your seller information in the Google sellers.json file”

This is not as complex as the previous issue. Again, you need to log in to your Google AdSense account. The error appears as seen in the image below.

how to fix  "Publish your seller information in the Google sellers.json file"

Click on “action” or “Home > Account > settings > account information

Change the details from “confidential to transparent”. Note!!! the status will update automatically so you don’t need to save anything.

how to fix "Publish your seller information in the Google sellers.json file"

You can learn what types of domain names are accepted. To learn more click the caption of the image below

Refresh the page and the issue should be gone.

how to fix Publish your seller information in the Google sellers.json file

Also Note!!! The error “Earning at risk ads.txt file” can take up to a few days before it disappears. So don’t worry. just wait (you can see this on the fourth image on this blog)

Conclusion

There you have it, all the steps you need to take to solve the “Earning at risk ads.txt file” message.

Suggested Blogs?


Thanks for reading.

We hope you enjoyed reading this blog, please do give it a share. Do you have any questions or concerns we didn’t address above? Please let us know in the comments below! We would love to hear from you.

Have A Nice Day.


Share this post...