How To Do Ads.txt For Google

Ads.txt is a file that helps prevent fraudulent ads from appearing on your website. It tells advertisers which companies are authorized to sell your ad space, and which ones aren’t. If you have a website with ads, it’s important to have an ads.txt file to protect yourself and your visitors.

Why Use Ads.txt?

Ads.txt helps prevent fraudulent ads from appearing on your website. Fraudulent ads can be harmful to your visitors, and they can also hurt your reputation as a trustworthy website. By using ads.txt, you can make sure that only authorized companies are selling your ad space, which helps keep fraudulent ads off your site.

How to Create an Ads.txt File

Creating an ads.txt file is easy. Here’s how you can do it:

  1. Open a text editor or a word processing program like Microsoft Word.
  2. Create a new document and save it as “ads.txt” in the root directory of your website.
  3. Add the following line to the file: “google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0” (replace “pub-1234567890123456” with your own Google Publisher ID).
  4. Save the file and upload it to the root directory of your website.

Conclusion

Ads.txt is an important file for any website that has ads. It helps prevent fraudulent ads from appearing on your site, which can be harmful to your visitors and hurt your reputation. By creating an ads.txt file, you can make sure that only authorized companies are selling your ad space, which helps keep fraudulent ads off your site.