Fix Earnings at risk Adsense Error by creating ads.txt

Adsense Tips / WordPress Hacks

Fix Earnings at risk Adsense Error by creating ads.txt

How to edit an ads.txt file on your website? you might get this error – Earnings at risk – One or more of your ads.txt files doesn’t contain your AdSense publisher ID. Fix this now to avoid severe impact on your revenue. This error comes in Adsense. Other error is an Ads.txt file missing, corrupted or needs to be edited.

How to edit an ads.txt file in Your website

Today I will discuss these all things in this article. So let’s start with What is an ads.txt file?

Earning at Risk and Ads.txt Creation Youtube Tutorial

What is an ads.txt file?

In an ads.txt file, ADS means Authorised Digital Sellers

Ads.txt is a secure, flexible and simple method for advertisers and publishers to declare who is authorized to sell their inventory.

Ads.txt file is improving transparency for programmatic buyers. It is just a text file as you can easily see the extension .txt.

Ads.txt supports transparent programmatic digital media transactions and can remove the financial incentive from selling counterfeit and misrepresented media.

Similar to robots.txt, ads.txt can only be posted to a domain by a publisher’s webmaster, making it valid and authentic.

As a text file, ads.txt is easy to modify and update. The data required to populate the file is readily available in the OpenRTB protocol, making it simple to gather and target. And because publishers sell their inventory through a variety of sales channels.

Ads.txt supports the following types of supplier relationships:

  1. Content syndication partnerships where multiple authorized sellers represent the same inventory
  2. Networks and sales houses who programmatically sell on behalf of domain owners
  3. Domain owners who sell on exchanges through their own accounts

So, basically in simple words If you have an ad network like Google Adsense then You can share your ads with others website, but for that, there should be an ads.txt file on his server at the location public.html which must contain your Publisher Id and some other details.

It simply means you are verified to show/sell ads.

Note: Ads.txt should be visible at

Read Also: Top 7 Best Google Adsense Alternatives

Ads.txt file implementation on website server

Implementing ads.txt is very simple. You just need to create a text file using notepad named ads.txt. Now add one line per authorized partner.

How to edit an ads.txt file in Your website

On each line add the provided pieces of the information supplied by Adsense.

These are the four sections which you need to be added to your ads.txt file –

  1. The domain name of the advertising system (In case of Google it will be
  2. Publishers account ID (You better Know the Google Adsense Publisher Id of your account)
  3. Type of Relationship with the partner (It should be either DIRECT or RESELLER if you are working with a third party)
  4. Tag ID (optional)

TAG ID of the source if the Trustworthy Accountability Group certifies them. Once created simply upload that file to your web server so that it is visible at and you are done. tag Id is optional You can leave it blank.

Note: In case of Google, your Tag ID will always be f08c47fec0942fa0

Here is an example of Google Adsense Entry into my Site at location, pub-4843477176092525, DIRECT, f08c47fec0942fa0

Some Other Examples -, 4536, DIRECT, 12345, DIRECT, AEC242

As you can see the data –

Advertising System domain -> Adsense Publisher ID -> Relationship ->Google Tag ID

This simply means I am selling Google Inventory on my website.

Please Note: While creating an ads.txt file never miss the pub part. You should always include Pub-Adsense Id. which is a correct method to write Adsense Publisher ID, People generally do mistakes here.

So, If there is no ads.txt file on your web server then you are not authorized to sell those inventory.

Finding Your Adsense Publisher ID

If you are using Google Adsense Ads on your websites and want to implement ads.txt, You need to find your Adsense publisher ID First. This can be found by logging in to AdSense account and then navigating to –

Settings -> Account -> Account information. You will see Your publisher ID is in the format of pub-555555555555 with the fives replaced by your own 16 digit Publisher Id number.

How to edit an ads.txt file on your website?

Once You have created an Ads.txt file, you just need to upload this file to your web server in Public_html folder. Here are the important steps you need to follow.

Adding a missing ads.txt –

If you are getting an error that Ads.txt file is missing from your server then you need to follow these steps to fix it-

Step 1: Login to your CPanel Account and Go to File Manager

Step 2: Search for Ads.txt, if not found. It’s okay

Step 3: Go to the folder Public_Html and use the Upload Button to upload your created Ads.txt file.

Step 4: You are done, Nothing to do. Now you are authorized to sell the respective inventory.

How to edit an ads.txt file in Your website

Note: The authorization might take some time.

Editing an Ads.Txt File

To edit an Ads.txt file. you can simply follow these steps –

Step1: Login into your Cpanel Account and Go to File Manager -> Public_Html -> Ads.txt

You can simply search also ads.txt file using the search bar provided in the Cpanel.

Step 2: To edit an ads.txt either you can edit it using edit button or simply you can replace it if you have already created ads.txt.

Step 3: You are all set Hurr…ay

How to edit an ads.txt file in Your website
Wrapping up –

You don’t need to be panic if you ads service is stopped or disabled due to ads.txt file. Thena question comes to your mind  ” How to edit an ads.txt file on Your website?” So, You just need to add it or edit it according to proper publisher Id. You can use the above steps.

I hope after following the simple steps you re error “Earnings at risk – One or more of your ads.txt files doesn’t contain your AdSense publisher ID. Fix this now to avoid severe impact on your revenue” will be fixed.

People often get this error when they use different AdSense Ads for the same website or when they change their publisher Id. So, You need not worry more. You just need to get the authorization from that particular ad network just by adding an Ads.txt file to your web server.

This article is based on Search Queries – Ads.txt implementation, Ads.txt Adsense, How to edit ads.txt? ads.txt blogger, ads.txt website and more.

Yet having queries in mind then put below.

Thank You.

Read More: How to start a Blog and Be a Blogging pro?

Comments (10)

  1. Saif

    Hi Dear! I want to design a WordPress website. Can you design it for me? And how many you charge for WordPress Website?

  2. Hey, I saved it in the root domain but still no changes about it and its more than 2 months about that notification I can’t open Cpanel. I tried it several times please help me out.

    1. User Avatar

      Hi Shaikh, Please contact me personally.

  3. sheriff

    I use WordPress hosting of Godaddy , which would not provide a cPanel. I only use ftp program, please let me know how to update it there?

    1. User Avatar

      Hi Sheriff, Watch this Ads.txt YouTube video tutorial for making the changes on your hosting. Watch Now –

  4. Hello Okey, I saw your youtube channel and tried the same way as you told. now my ads.txt shows on the site if i add my website address with /ads.txt , and my google adsense ads is working and showing, however, the earning risks has still been there for more than 3 days. do you have any idea how could I fix it? thank you for the help .

    1. User Avatar

      Hi, Is this the same website you have used to comment. As I have verified the ads.txt existence on this and found nothing. If this is not the website you are talking about then do comment your domain name below or get in touch with me on WhatsApp.

    2. Ken

      I hosted my site on Domainking Host and it has Cpanel But am going to use the without cpanel method because it seem more easy to me

      Anyway thanks for the wonderful post

      1. User Avatar

        Cool, By the way, CPanel method is very easy. No need to add an extra plugin to increase site load speed.

  5. User Avatar

    Hello dear, you have to do a lot of things before applying google adsense, I have seen your site. read this article it will help You. If any problem occurs ask me anytime

Comments are closed.