How to edit an ads.txt file on Your website

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?

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 www.yourdomain.com/ads.txt

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 google.com)
  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 example.com/ads.txt 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 www.okeyravi.com/ads.txt.

google.com, pub-4843477176092525, DIRECT, f08c47fec0942fa0

Some Other Examples -
blueadexchange.com, 4536, DIRECT
greenadexchange.com, 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?

References :

http://oko.uk/blog/ads-txt
99MedaiSector

Spread the love

Okey Ravi

System Engineer at Infosys limited, Blogger,and a YouTuber. I am very enthusiastic to "Update myself with the Latest technologies" & the things which I learn, I deliver to you with this blog. So, Be in touch & Follow Okey Ravi to be updated with the SEO/WordPress and topics related to Online Money Generation.

Okey Ravi has 161 posts and counting. See all posts by Okey Ravi

4 thoughts on “How to edit an ads.txt file on Your website

Leave a Reply

Your email address will not be published. Required fields are marked *