Website Designing

ads.txt – What is ads.txt? How to implement for WordPress or AdSense and others sites

What is ads.txt?

It is an IAB-approved text file that aims to prevent unauthorized inventory sales.  Ads.txt file protects publishers from ad fraud, and it can potentially increase your ad revenue. The initiative is supported by Google’s advertising platforms like Google Adsense, Doubleclick, and Ad Exchange.

How does it work?

Publishers drop a text file on their web servers that lists all of the companies that are authorized to sell the publishers’ inventory. This allows buyers to check the validity of the inventory they purchase.

How to Fix ads.txt error message

Step 1 

Access your website via ftp and create a file ads.txt under the root directory

Step 2 

Copy and paste the code from your adsense account to the ads.txt

google.com, **pub-xxxxx, DIRECT, f08c47fec0942fa0

**Don’t forget to replace pub-xxxxx  with your own publisher ID.

Step 3

Make sure you save the file and verify that you have the file now by visiting www.yourwebsite.com/ads.txt


WordPress Websites

Step 1 

Download and activate this plugin if you are using WordPress

Step2

Under Settings go to Ads.txt page to configure plugin settings.

Step3

Copy and paste the code from your adsense account to the ads.txt

google.com, **pub-xxxxx, DIRECT, f08c47fec0942fa0

**Don’t forget to replace pub-xxxxx  with your own publisher ID.

Step 4

Save changes and verify that it works by visiting www.yourwebsite.com/ads.txt

Take, as an example, the ads.txt file for any website :

#Ads.txt for 7starmedia.in

google.com, pub-00007555537000, DIRECT #video, banner, native, app
rubiconproject.com, 10306, DIRECT #banner
indexexchange.com, 183963, DIRECT #banner
indexexchange.com, 184913, DIRECT #banner
openx.com, 537147789, DIRECT #banner
openx.com, 538986829, DIRECT #banner
appnexus.com, 7161, DIRECT #banner
appnexus.com, 3364, RESELLER #native
facebook.com, 1325898517502065, DIRECT #video, banner, app
liveintent.com, 87, DIRECT #banner
taboola.com, 688168, DIRECT #native
triplelift.com, 4139, DIRECT #native
teads.com, 11643, DIRECT #outstream
teads.com, 11445, DIRECT #outstream
google.com, pub-0005000659155557, RESELLER #native

Thanks for your time to read this article. also watch this below video for better understand in Hindi.

Video Link: https://www.youtube.com/watch?v=1uT9wTNmMnk

31,450 total views, 0 views today

Your Comment by Facebook Login

Leave a Reply

Your email address will not be published. Required fields are marked *