If you see the warning “Earnings at risk – You need to fix some ads.txt file issues” in your AdSense account, don’t worry. This is a common issue and can be fixed easily.
Once fixed, your status will change to Authorized, and your earnings will be safe.
Follow this step-by-step guide to solve the ads.txt problem.
📌 What is ads.txt?
ads.txt (Authorized Digital Sellers) is a file used to verify which companies are allowed to sell your ad inventory.
It helps:
Prevent ad fraud
Protect your earnings
Improve advertiser trust
⚠️ Why “Earnings at Risk” Warning Appears?
This warning appears when:
ads.txt file is missing
File not uploaded correctly
Domain mismatch
Changes not yet verified
✅ Step 1: Get Your ads.txt Code
Open your Google AdSense account
Go to Sites
Click your website
Copy the provided ads.txt line
Example:
google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0
📂 Step 2: Upload ads.txt File to Root Directory
You need to upload this file to your website root.
For Blogger Users:
Go to Blogger Dashboard
Open Settings
Enable Custom ads.txt
Paste the code
Save
For WordPress Users:
Use File Manager or Hosting Panel
Go to public_html
Create file named:
ads.txt
Paste the code
Save
🌐 Step 3: Check ads.txt File
After uploading, open:
https://yourdomain.com/ads.txt
If your code appears, it is uploaded correctly.
⏳ Step 4: Wait for Verification
It may take 24–48 hours
Sometimes up to 7 days
Status will change to Authorized automatically
🔄 Step 5: Refresh AdSense Dashboard
Reopen AdSense
Check Sites section
Status should show Authorized
🚀 Important Tips
Use correct publisher ID (pub-xxxx)
Do not add extra spaces or lines
Upload only one ads.txt file
Keep file publicly accessible
📝 Final Words
The “Earnings at Risk” ads.txt issue is simple to fix but very important for your AdSense revenue. Once you upload the correct ads.txt file, your site becomes authorized and your earnings stay protected.
Always verify your ads.txt after uploading.
For more AdSense and blogging guides, visit CodeSardar.
❓ Frequently Asked Questions
Q1. How long does ads.txt verification take?
Usually 24–48 hours, sometimes up to 7 days.
Q2. Is ads.txt mandatory?
Yes, it is important to avoid revenue loss.
Q3. What if status is still not authorized?
Check file path and code, then wait again.
🔜 Next article options:
AdSense Low CPC Fix Guide
Increase Website RPM Tips
AdSense Approval Fast Trick
Bas next title bhejo 😄🚀
