Got a warning banner alert in your AdSense account? said something like this: “Earnings at risk – One or more of your ads.txt files doesn’t contain your AdSense publisher ID.” Or something like shown in the picture below.
Then, probably your site doesn’t have or missing required ads.txt files. Not only Adsense, but all of the Ads
Placing an ad on a website is one of the legit ways for a website owner can monetize their site. But did you know! that in order to create transparency in the programmatic advertising ecosystem. As a publisher, you have to be transparent too.
So, to declare your transparency as publisher and site owner, the only way is by adding Ads.txt code snippet to your site.
That’s why here we want to share with you guys how to put the ads.txt code snippet on your site. But before that, you might need to know a little bit about what is ads.txt?
What is Ads.txt?
Ads.txt is an initiative by the Interactive Advertising Bureau to enable publishers to take control over who can sell their ad inventory.
Ads.txt is a
This is designed to allow online buyers to check the validity of the sellers from whom they buy.
It’s really important for the purposes of internet fraud prevention.
And as a publisher, advertising company require you to have an ads.txt file on your website/blog in order to receive revenue share by becoming their ad publisher.
For more info about ads.txt, later you can Google about this, or read the article about ads.txt on Wikipedia here.
Okay, let’s find out how to put the ads.txt code snippet on your site. This tutorial is for you guys who use Blogger Blogspot, WordPress, and also other self-hosted CMS application by creating it directly from cPanel.
How to put Ads.txt code snippet on WordPress site
If you are using self-hosted WordPress, there is an easy way to put the ads.txt code snippet on your website by using a plugin.
The best plugin I found handy for this task is Ad Inserter. Besides you can use the plugin to easily place ads slot on your WP site. Ad Inserter also has a feature for you to create ads.txt file easily. You can search the plugin in Plugins page in your WP Admin.
To create an ads.txt file using Ad Inserter plugin. First, you need to install Ad Inserter on your WordPress site and activate it. Once the plugin is active, go to the left menu WP Admin > Settings > Ad Inserter.
In Ad Inserter setting page, click on the gear icon in the top right. Then, you’ll see there the ads.txt button. See screenshot below.
Click on that button to edit it. Then scroll the page down to go to the ads.txt editor. Next, put this line in the ads.txt editor: google.com, pub-XXXXXXXXXXXXXXXXX, DIRECT, f08c47fec0942fa0
Replace the XXX with your Adsense pub. Then click the upload icon to create and save ads.txt to root domain in your host. See screenshot below for the example.
To test the ads.txt page you have created, click the ads.txt button in the editor like shown on the screenshot above.
There you can also place your code snippet from another Advertising Network you join with. You can place different code from different advertising network on each line.
Put Ads.txt code snippet on Blogger B
If your blog i
When you’ve done, don’t forget to click the Save changes button.
Basically, when you connect Blogger Blogspot to your Adsense account it will automatically generate ads.txt files that contain your publisher ID.
But in case you are want to monetize your blog who hosted in Blogger Blogspot with another Ad network. Then this is how to plac the ads.txt content.
Adding ads.txt manually in cPanel hosting
Alternatively, you can also ads.txt manually in cPanel. To do it, simply login to cPanel and go to File Manager > public_html.
Then click on +File on the top left to create a new file. Name it ads.txt then click Create New File button. See screenshot below.
Next, edit the ads.txt file you’ve create by right click on it.
Then, just put your Google Adsense ads.txt code there. And don’t forget to click the
And that’s it!
Need to test it out? hmm.. simply put the /ads.txt at the end of your site URL. Here is, for example, you can copy and paste this URL: https://digimanx.com/ads.txt into your browser to check how the page looks like. Please change the site name with yours.
If you just sign up as a publisher on some advertising network that requires you to put Ads.txt code snippet on your site. Then, I hope this post will useful. It’s also useful if you want to place multiple Adsense ads from a
Okay, until next post take care and peace out!