Placing ad on website is one of legit way for website owner can monetize their traffics. 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.
Thats why, here Digimanx want to share with you guys how to put 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 specifies text file that companies can host on their web servers, listing the other companies authorized to sell their products or services.
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 publisher, advertising company require you to have ads.txt file on your website/blog in order to receive revenue share by become their ad publisher.
For more info about ads.txt, later you can Googling about this or read article about ads.txt on Wikipedia here.
Okay let’s find out how to put ads.txt code snippet on your site. This tutorial is especially for you guys who use Blogger blogspot and WordPress as your CMS platform.
How to put Ads.txt code snippet on website
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.” then probably your site don’t have or missing required ads.txt files. Not only Adsense, all Ad network will warn you if your site is missing ads.txt files.
If you are using self hosted WordPress to host your site, there is an easy way to put ads.txt code snippet on your website by using plugins.
It’s better to use plugin to put code snippet rather than manually create ads.txt file. In most case it won’t work. And if you don’t know what you are doing, please don’t do that.
So let’s take advantage by using WordPress plugin to put the code on your site. And the WordPress plugin that we recommended this time is Ads.txt Manager by 10up
You can find this plugin in your WP Admin > Plugins > Add New use keyword Ads.txt Manager on search bar in WP plugins page.
How to use it?
To use the plugin, after you install and activated it, simply by go to Settings > Ads.txt to open the Ads.txt Manager plugins page.
There you can place your code snippet from Advertising network you join with. You can place very different code from different advertising network on each line. Don’t forget to click the Save button to save the changes.
See the example screen shot below
The changes usually take effect within 24 hours.
Put Ads.txt code snippet on Blogger blogspot
If your blog are hosted on Blogger, to place the code in Blogger dashboard you can go to Settings > Search preferences > Custom ads.txt > Edit. See screenshot below for example.
When you done don’t forget to click 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 placing the ads.txt content.
Adding ads.txt manually in cPanel hosting
Alternatively you can also adding ads.txt manually in cPanel. To do it simply put given ads.txt code snippet in Note pad or any text editor and name it ads.txt
Jus make sure you save it as plain text. And then upload it to your cPanel. The path is should be in public_html folder.
And thats 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 onto your browser to check how the page looks like.
If you just sign up as publisher on some advertising network thats require 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 different account on one site.
Okay, until next post take care and peace out!