Ads.txt Generator

What is Ads.txt?


Ads.txt, or Authorized Digital Sellers, is a flexible, and secure method for publishers and distributors to publicly declare the companies they authorize to sell their digital inventory. It helps that only authorized sellers can sell the publisher’s inventory, protecting against counterfeit inventory and domain spoofing.Ads.txt aims to increase transparency in the digital advertising ecosystem and reduce fraud. If you’re a publisher using AdSense, it’s essential to ensure your Ads.txt file is correctly configured to include authorized sellers and exclude unauthorized ones.

How to find Adsense Publisher ID?

  • Login to your Adsense Account
  • Once logged in, click on “Account” in the left sidebar
  • Under “Account information” you should see your publisher ID

Or, The most easy ways to find AdSense Publisher ID. Adsense Publisher ID is mentioned in the URL, ie.

Adsense Publisher ID

Google Adsense Help Ads.txt guide

How to add Ads.txt code to the website

There are many ways to implement ads.txt code in a website some of them are:

WordPress

  • Plugin: The easiest and simplest way to add ads.txt code to WordPress sites is by using the plugin.
    • Go to WordPress Admin Dashboard
    • Install a New Plugin: There are many ads.txt plugin tools installed one of them. [Be sure to use a highly trusted plugin]
    • Access Plugin Setting: Once the plugin is installed and activated, open the plugin. you will see the ads.txt code add option or box to add ads.txt code
    • Add Adsense Ads.txt code: After finding the ads.txt code option or box, add your generated ads.txt code
    • Save Change: After pasting the Ads.txt code, save the changes within the plugin setting.
    • Verify: Once Saved, verify that the ads. txt file is correctly added to your sites by accessing “httpsL//yourdomain.com/ads.txt” in the web browser. You will see the Ads.txt file displayed in the browser.
  • Through Root Directory
    • Access your website’s Root Directory: First, you will need to access the website root directory of your website, where your website files are stored
    • Creating a New Text File: Inside the website root directory, create a new text file. the file name should be “ads.txt”
    • Paste Ads.txt code: After creating the ads.txt file place the ads.txt code inside. Copy the above generated code.
    • Code: google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0 [Replace “pub-xxxxxxxxxxxxx” with your Adsense publisher ID.
    • Save the file: After adding your Ads.txt code save the file
    • Verify: Once Saved, verify that the ads. txt file is correctly added to your sites by accessing “https://yourdomain.com/ads.txt” in the web browser. You will see the Ads.txt file displayed in the browser.

Blogger

  • Sign in to Blogger account: Go to www.blogger.com and sign in with your Google account.
  • Access Dashboard: After signing in, you will see a list of your blog. Choose the where you want to add the ads.txt file.
  • Click on setting: Go to setting: In the left-hand menu side, click on “setting”
  • Monetization: Find”Monetisation”: Inside the setting find “Monetisation”
  • Enable custom ads.txt: In Monetisation” you will see “Enable custom ads.txt” Enable it if disabled.
  • Add custom ads.txt: After enabling custom ads.txt, you see the “Custom ads.txt” click on it and past the generated ads.txt.
  • Save: After adding custom ads.txt code click on save.
  • Verify: Once Saved, verify that the ads. txt file is correctly added to your sites by accessing “httpsL//yourdomain.com/ads.txt” in the web browser. You will see the Ads.txt file displayed in the browser.