Wednesday, March 31, 2021

How I fixed ads.txt error in Adsense account of blogger website

Finally, I fixed the ads.txt error on the blogger website

My other website which is hosted on blogger was approved by Adsense in November month of 2020 and after few days in December, I received the notification of ads.txt error. 

It said "Earnings at risk – You need to fix some ads.txt file issues to avoid a severe impact on your revenue". Also, it was followed by the required solution to fix this error. I did everything as it was mentioned in the Ads.txt guide - Adsense Help to fix this issue. Like, I enabled "Custom ads.txt" and added "google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0" (after replacing the pub number). After following the required fixing steps I had to wait for some days for the error to go away.


solution to fix ads.txt error in blogger adsense


I waited and kept on checking regularly to see whether it is gone or not. Ads were still showing but they were limited I think till the period the same error flashing on the Adsense account.

Days passed, weeks passed, and like this 4 months passed away but the ads.txt error was still there.

Along with this, I was facing one more issue in the Adsense Auto ad settings preview of the same website. It was "We can't preview this area of your page because it's in an IFRAME". Auto ads were not displayed in the body of the website due to this issue. I searched everywhere but found nothing that worked on it so I was thinking to change the theme of this website which might help to resolve the Auto ads iframe issue.

I was preparing myself to change the theme and then suddenly I found something that fixed both the issues mentioned above.

The solution to fix the ads.txt error and Auto ads iframe issue

While reviewing the Settings tab in Blogger I found that my website's non-www URL did not redirect to the www URL while I had enabled the "Redirect domain". I switched the setting ON to redirect domain while setting up the website in blogger initially but forgot to check whether it is redirected or not and here I made a mistake which led to various other issues I think. 

I am not sure about it, this is just my perception that it might be the direct or indirect possible reason for the various issues encountered in the Adsense account because when I solved this, it fixed everything in few hours. Ads.txt error was gone the next day and Adsense Auto ads settings preview was also showing ads in the body of the blogger website.

I have redirected the non-www URL of the domain to the www URL in blogger but did not add A records in DNS settings of the same domain in the domain provider's account (Godaddy in my case). So I followed an article in the Blogger help which is meant to set up a custom domain in blogger and entered the 4 A records as mentioned there. It redirected from non-www to www URL and yes it solved the iframe issue in Adsense Auto ads preview settings.

The next day I checked and the ads.txt error was gone. I was so happy and grateful that finally, I found the solution to all the issues at the same time.

If you are also one of them who has the same issue then you check your settings and treat it if required.

Conclusion

I am not a pro blogger and I do not write on blogging regularly but I have sufficient knowledge to run a blog successfully. I do not have the complicated reasoning behind all these issues and how this solution fixed all the errors at the same time. It worked for me so I wanted to let others know about this so that if they are falling under the same circumstances then they can also follow the same and fix their own issues.

2 comments:

  1. sir i need help
    same problem
    We can't preview this area of your page because it's in an IFRAME

    ReplyDelete
    Replies
    1. Did you follow the method mentioned in above article? What else you want to know? Please explain.

      Delete