If your Google AdSense account shows the warning: “Earnings at risk – You need to fix some ads.txt file issues to avoid severe impact to your revenue,” this guide will help you fix it using two simple methods.

Note: This isn’t an instant fix, AdSense may take a few days (typically 3–4) to verify the ads.txt integration. In some cases, it may take up to a week or more.

For full details, visit the official AdSense Ads.txt Guide.

How to Fix AdSense ads.txt Error in WordPress?

There are two simple ways to fix the ads.txt issue in WordPress:

Method 1: Fix ads.txt Without Plugin (Using File Manager)

Step 1: Sign in to your Google AdSense account and click “Fix Now” on the error message.

Sign in to your Google AdSense account and click “Fix Now” on the error message.

Step 2: Download the provided ads.txt file.

Download the provided ads.txt file.

Step 3: Log in to your hosting cPanel > Open File Manager.

Log in to your hosting cPanel > Open File Manager.

Step 4: Navigate to the root directory or site’s folder (usually public_html) of your website.

Navigate to the root directory (usually public_html) of your website.

Step 5: Click Upload in File Manager

Click Upload in File Manager

Step 6: Upload the ads.txt file > After the upload completes, click Go Back.

Upload the ads.txt file > After the upload completes, click Go Back.

Step 7: The ads.txt file is now live on your domain at: https://domain.com/ads.txt

The ads.txt file is now live on your domain

Alternative: Instead of uploading, you can manually create a file named ads.txt, paste the code provided by AdSense, and save it in the root directory.

Method 2: Fix ads.txt Using a Plugin (Ads.txt Manager)

Step 1: Go to your WordPress Dashboard > Install and Activate “Ads.txt Manager by 10up” plugin.

Install and Activate “Ads.txt Manager by 10up” plugin.

Step 2: Navigate to Settings > Ads.txt > Paste the following line into the box:

Step 3: Replace pub-0000000000000000 with your own AdSense Publisher ID.

Navigate to Settings > Ads.txt > Paste the Ads.txt code into the box:

Step 4: Clear your site cache if you’re using any caching plugin.

How to Fix AdSense Ads.txt Error in Blogger?

Step 1: Sign in to your Blogger Dashboard > Navigate to Settings > Scroll to the Monetization section.
Step 2: Click on Custom ads.txt and enable it.

Blogger Dashboard > Settings > Monetization > Click on Custom ads.txt and enable it.

Step 3: In the text box, copy and paste the following line:
Step 4: Replace pub-0000000000000000 with your own AdSense Publisher ID.
Step 5: Click Save.

Paste the Ads.txt code into the box:

Note: The ads.txt file must be placed in the root directory of your domain (domain.com/ads.txt). After submission, Google AdSense will automatically verify within 3-7 days. Once verified, the warning will disappear from your account.

FAQ

What is the ads.txt file?

Ads.txt (Authorized Digital Sellers) is an IAB Tech Lab initiative to improve transparency in digital advertising. It allows website owners to declare who is authorized to sell their ad inventory (ex: Google AdSense).

Why is the ads.txt file important?

It helps reduce ad fraud by ensuring that only authorized sellers can represent a publisher’s ad space. Advertisers can verify this file before purchasing ad inventory, increasing trust and transparency.

How long does it take to fix the AdSense ads.txt issue?

Typically, changes are reflected in 3–7 days, but if your site doesn’t generate many ad requests, it may take up to a month.

What is the AdSense ads.txt code?

google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0“. Replace pub-0000000000000000 with your actual AdSense Publisher ID.

Where do I place the ads.txt file?

You must place it in the root directory of your domain, so it is accessible at: https://domain.com/ads.txt.

Wrap Up

I hope this guide helped you fix the AdSense ads.txt warning. If you found it helpful, feel free to share it with friends or fellow bloggers on social media.

Similar Posts