If you’ve applied for Google AdSense and seen a message saying “Earnings at risk—One or more of your sites does not have an ads.txt file,” you’re not alone. This is a common warning that many new bloggers face—but the good news is, it’s easy to fix.
In this step-by-step guide, we’ll show you how to add the ads.txt file to your Blogger (Blogspot) blog so you can stay compliant with AdSense policies and keep your earnings safe.
🔍 What is ads.txt?
Ads.txt stands for Authorized Digital Sellers. It’s a simple text file that lists the companies authorized to sell ads on your website. It helps prevent ad fraud by ensuring that only verified partners like Google can serve ads on your content.
Without this file, your earnings can be at risk, and AdSense may limit your ad serving or reject your site altogether.
🛠️ Why You Need ads.txt for Blogger
Even if you use Blogger.com, which is a Google-owned platform, you still need to manually add the ads.txt file to your blog. AdSense doesn’t add it automatically.
✅ Benefits of Adding ads.txt:
Protects your ad revenue
Builds trust with advertisers
Follows AdSense’s recommended best practices
Reduces the chance of AdSense approval delays
📋 What Should Be in Your ads.txt File?
The default format recommended by Google is
google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0
Replace pub-xxxxxxxxxxxxxxxx
with your own AdSense Publisher ID.
To find your Publisher ID:
Go to AdSense Dashboard
Click on Account > Account Information
Copy your Publisher ID (starts with pub-)
✅ Step-by-Step: How to Add ads.txt in Blogger
Here’s how to do it in just a few minutes.
🔹 Step 1: Log In to Your Blogger Dashboard
Go to www.blogger.com and sign in with your Google account.
🔹 Step 2: Select Your Blog
From the Blogger dashboard, click on the blog where you want to enable ads.txt.
🔹 Step 3: Go to Settings
In the left-hand menu, click on “Settings.”
🔹 Step 4: Scroll to Monetization Section
Under “Settings,” scroll down until you see the Monetization section.
You will find an option labeled
👉 “Enable custom ads.txt”
🔹 Step 5: Turn ON Custom ads.txt
Click the toggle to turn it ON.
After enabling it, you will see a field where you can paste your ads.txt content.
🔹 Step 6: Paste Your Code
In the field, paste the following code:
google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0
➡ Replace pub-xxxxxxxxxxxxxxxx
with your actual AdSense Publisher ID.
✅ Example:
google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0
🔹 Step 7: Save Settings
After pasting the code, click "Save" in the bottom right corner.
That’s it—your ads.txt is now active on your Blogger site.
🔎 How to Check If ads.txt Is Working?
To verify that your ads.txt file is live:
Open your blog in a browser.
Add /ads.txt
to the end of your URL.
Example:
https://yourblogname.blogspot.com/ads.txt
If everything was done correctly, your browser will show the content of your ads.txt file.
🧠 Pro Tips for Managing ads.txt in Blogger
Keep it updated: If you use other ad networks in the future (e.g., Media.net, Ezoic), they will also give you ads.txt lines to add. Just paste them below your existing line.
One line per network: Don’t mix everything into one line. Use separate lines for each ad partner.
Don’t delete Google’s line: The AdSense line must always remain in the file.
Changes take time: After saving, it might take a few hours to reflect on your live site.
❗ Common Mistakes to Avoid
Mistake | Why It’s a Problem |
---|---|
Wrong Publisher ID | Google won’t recognize it—no earnings |
Forgetting to turn ON custom ads.txt | Your file won’t be live |
Adding extra spaces or commas | Can break the file structure |
Using quotes or HTML tags | Not allowed in plain text ads.txt |
Not checking the live URL | Can miss errors that prevent verification |
Always verify your ads.txt using the browser method above.
🧾 Final Thoughts
Adding ads.txt to your Blogger blog is an essential step to keep your AdSense earnings safe and your site compliant with Google’s policies.
It only takes a few minutes, and it shows advertisers that you’re a legitimate and authorized publisher.
By following this simple guide, you’ve just taken one more step toward full AdSense approval and better earnings in the future.
👍 Want More Help?
Need help with:
AdSense approval tips
Fixing common errors
Adding meta tags or custom ads
👉 Browse more tutorials on our blog or leave a comment below. We’re here to help!