How to edit ads.txt without Cpanel in WordPress

I will discuss “How to edit ads.txt without Cpanel in WordPress”. Sometimes If you logged into your Google Adsense account, then you might have seen this “Earnings at risk – One or more of your ads.txt files doesn’t contain your AdSense publisher ID.
Fix this now to avoid severe impact to your revenue.” This is a blood red banner at the top that reminds about Adsense Earning at risk.
{Read:- Best PWA WordPress Plugins 2021 }
I also got an ads.txt fixing message and I was searching on Google for the right solution.
You know the proper solution for this. It is you have to upload ads.txt file on your File Server or in the root directory of your Website.
{Read:- Auto Ads for Better Placement and Monetisation }
The main problem was that I was using WordPress hosting and I don’t have Cpanel access. With Cpanel adding/editing/deleting an ads.txt file is very easy.
You just need to find out ads.txt in public_html folder, which is very easy and then you have options to delete, upload, edit and view in the upper menu bar.
But with WordPress, It is more easier once you know the entire process.
{Read:- Fix Valuable Inventory Under Construction & No Content Violation }
You know I was looking for an ads.txt plugin and I found some also. But they didn’t fulfill my criteria.
All ads.txt plugins have some restrictions. Let me tell you which Plugins I have used.
Ads.txt Manager – This plugin is good when you don’t have ads.txt on your server. But If you already have an ads.txt on the server and you want to edit or change it, then this plugin is not for you. It is clearly mentioned –
Note: If you already have an existing ads.txt file in the web root, the plugin will not read in the contents of that file, and changes you make in WordPress admin will not overwrite contents of the physical file.
{Read:- Does Website Affiliate Links Affect Google Adsense Approval Process }
Ads.txt Admin – This plugin also has a restriction. It will work with WordPress Multisite.
oh, what to do now? I have to change publisher Id in my ads.txt file. But the plugins are not working properly and I also don’t have Cpanel access.
How to edit ads.txt without Cpanel in WordPress?
Go to Apperance-> Plugin-> Add new and search and install WP File Manager.
Note: There is a several WordPress File Manager Plugin will be there But you need to download WP File manager created by mndpsingh287
Once You have downloaded, Just make them active.
{Read:- How to Prevent Google Adsense from Invalid Clicks? }
Once you’ve activated it, “WP File Manager” should have been added to your WordPress left-hand navigation. Click on “WP File Manager” and the main screen should show all the files in your root domain such as wp-admin, wp-includes, .htaccess file, favicon.ico, ads.txt and more
Once you see that, you’re in your site’s root domain. WP File Manager plugin allows you to just drag and drop or upload files into it. So, What are you waiting for? Drag your ads.txt file into the WordPress screen and you should see that it was successfully added. Here’s what it should look like:
You also have options to Delete, View, Edit which you can use for different purpose.
Once you have either uploaded or edited ads.txt then you can easily verify them on https://yourdomain/ads.txt.
That’s it. Your ads.txt file is now in the root domain of your WordPress-powered website. Congrats. Now do this for any other sites you may have.
Now you have to wait at least 24 hours while Google Adsense process it and after then your red banner will automatically be removed from Adsense Account.
Sample of Ads.txt file
Here I am showing you a sample of an ads.txt file of one of my Website. You can check your on http://yourdomain.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
infolinks.com, 3062648, RESELLER (*Enter your Infolinks publisher ID number) infolinks.com, 3062648, DIRECT (*Enter your Infolinks publisher ID number) appnexus.com, 3251, RESELLER appnexus.com, 3251, DIRECT openx.com, 118151, DIRECT, 6a698e2ec38604c6 openx.com, 118151, RESELLER, 6a698e2ec38604c6 google.com, pub-6373315980741255, RESELLER, f08c47fec0942fa0 lkqd.net, 295, RESELLER, 59c49fa9598a0117 lkqd.com, 295, RESELLER, 59c49fa9598a0117 aol.com, 6202, RESELLER aol.com, 17744, RESELLER Freewheel.tv, 480577, RESELLER Freewheel.tv, 480593, RESELLER vi.ai, 913453223927387, RESELLER, # 41b5eef6 |