ads.txt in AdSense

How to Create & Upload ads.txt in AdSense

How to Create & Upload ads.txt in AdSense:

Advertising is a vital revenue stream for many website owners and publishers. As an AdSense user, it’s crucial to maintain a healthy advertising ecosystem by protecting your inventory from unauthorized sellers. One effective way to achieve this is by creating and uploading an ads.txt file. In this blog post, we’ll guide you through the process of generating an ads.txt file in AdSense and uploading it to your WordPress site or cPanel.

What is ads.txt?

Authorized Digital Sellers (ads.txt) is an IAB initiative that allows publishers to declare who is authorized to sell their digital inventory. By implementing ads.txt, you ensure that only authorized ad exchanges and sellers can monetize your website, reducing the risk of counterfeit inventory and improving transparency in the digital advertising ecosystem.

Step 1: Generating / Create the ads.txt file in AdSense:

  1. Log in to your Google AdSense account.
  2. Navigate to the “Ads” tab.
  3. Click on “AdSense Setup.”
  4. Choose the “Ads.txt” option.
  5. You will see a box labeled “Publishers Authorized to Directly Sell Ads (optional).” Here, you can enter the names of ad networks or exchanges you authorize to sell ads on your behalf. Each entry should be on a new line in the format “, Publisher ID, Type” (e.g., “, 123456789, DIRECT”).
  6. Save your changes.

Step 2: Upload ads.txt to WordPress:

  1. Log in to your WordPress admin dashboard.
  2. Go to the “Plugins” section and click on “Add New.”
  3. Search for the “File Manager” plugin and install it.
  4. Once installed, go to the “File Manager” section and select the root folder of your WordPress installation.
  5. Look for the “public_html” or “www” folder (may vary depending on your hosting setup) and open it.
  6. Click on the “Upload” button and select the ads.txt file you generated in AdSense.
  7. After the upload completes, you should see the ads.txt file listed in the directory.

Step 3: Uploading ads.txt to cPanel:

  1. Log in to your cPanel account.
  2. Locate the “File Manager” icon and click on it.
  3. In the File Manager, navigate to the public_html folder or the directory where your site is hosted.
  4. Click on the “Upload” button in the top toolbar.
  5. Choose the ads.txt file you generated in AdSense and upload it.
  6. Once uploaded, you will see the ads.txt file listed in the directory.

Final Steps:

  1. Verify the ads.txt file is accessible by visiting “” in a web browser. Replace “” with your actual domain name.
  2. Double-check that the file contains the correct entries you added in AdSense.
  3. Confirm that the file is publicly accessible and not blocked by any security plugins or configurations.

Implementing ads.txt in AdSense is a proactive measure to protect your ad inventory and maintain a trustworthy advertising ecosystem. By following the steps outlined above, you can easily generate and upload the ads.txt file to your WordPress site or cPanel, safeguarding your website’s ad revenue and ensuring transparency with authorized sellers. Remember to periodically review and update your ads.txt file as necessary to reflect any changes in authorized sellers.

Please read this if you want to know how to Upload website on Google :

This Post Has One Comment

  1. Free Private Proxies

    Wow! This blog looks exactly like my old one!
    It’s on a entirely different subject but it has pretty much the same layout and design. Great
    choice of colors!

Leave a Reply