How to Fix Ads.txt Error in Adsense
How to Fix Earning in Risk Warning in Adsense
To fix Ads.txt file missing error make ads.txt file and upload ads.txt file in your cpanel with below code.
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
NoteMake sure you replace pub-0000000000000000 with your own publisher ID.
Host your ads.txt file at the root level of your domain. (for example, https://example.com/ads.txt).
Steps to Cteate Ads.txt file
- Open Notepad
- Paste above code on ontepad
- Replace Publisher id with your own Adsense Publisher ID
- Upload this text file in your Cpanel at the root level of your domain.
Confirm that the file is reachable from the root Domain
To Confirm that the file is reachable from the root domain open this URL www.domain.com/ads.txt first replace domain with your website domain name