Ads.txt: AdSense Requirement to Monetize Your Site


For a few days, those who acquire profits through the monetization system of Google AdSense began receiving alerts about a new requirement that must be completed to continue receiving the profits from the Google platform.

The notification: “Earning at risk: one or more of your ads.txt files do not contain your AdSense publisher ID. Solve this problem now to prevent it from significantly affecting your income. ” surely has a way of causing fear, particularly when it is made known that your precious website would lose revenue.

Adsense dashboard warning about the absence of ads.txt

While AdSense announces that the initiative is not mandatory, although surely it will be in a while, many content publishers panicked upon receiving the aforementioned alert by ignoring in some way how to proceed. 

Do not worry, it is very easy to solve this problem. Here, I will explain everything you need to know about this new standard – the ads.txt file and how to fix it on Adsense.

What is the ads.txt file?

Authorized Digital Sellers (or ads.txt)  is an initiative of the interactive advertising agency (IAB) to improve the transparency of programmatic advertising. Thus, publishers can create their own ads.txt files to identify who is authorized to sell their inventory. These files are public and both buyers and external suppliers and exchanges can track them.

It is not mandatory to use ads.txt, but we strongly recommend it; With this file, you can protect your brand from counterfeit inventory that has been intentionally mislabeled as coming from a specific domain, application, or video. Declaring authorized sellers can help you receive more investment from advertisers; an investment that could otherwise have been destined for counterfeit inventory.

In the case of owners of digital newspapers or newspapers that own their systems created with the CMS Media platform, they must include the line of code (which I will detail later) entering the advanced configuration, in the field indicated as ads.txt.

In the case of content publishers that have other platforms, they must request their developers to create the ads.txt file and indicate the line of code that will be included, within the site directory, if they have not yet been created.

What is the code to implement?

According to the official Google and Doubleclick documentation, the line of code consists of four parts, which must be separated by commas. (Patience and continue reading)

  • The first part is the domain of the advertising system.
  • The second is the account ID of the publisher or AdSense account.
  • The third is the type of account or relationship
  • The fourth is the ID of the issuing entity

In the case of most publishers who own a self-managed AdSense account, the code is generated as follows:

  1. The domain of the advertising system is
  2. The publisher account ID is the ID of your AdSense account. You should look for it by entering your AdSense account > Settings> Account information. Ex: pub-0000000000000000
  3. The type of account or relationship indicates whether the publisher controls his account or not. In the case of AdSense, if you control your account you must indicate the word DIRECT
  4. The ID of the issuing entity, in the case of AdSense, is  f08c47fec0942fa0
  5. Therefore, the line of code you should implement would be the following:, pub-0000000000000000, DIRECT, f08c47fec0942fa0

To summarize, in the same line of code that I indicated above, you simply have to replace the second field (pub-0000000000000000) with your own AdSense account ID. Once that line of text is completed, you can paste the complete code into your ads.txt file

If you still don’t quite understand how to fix this, I suggest you visit this link, I have detailed how to fix the ads.txt file on Adsense dashboard using various methods.

You might also like
0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x