Fixed: 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.
These are the four sections which you need to be added to your ads.txt file
- The domain name of the advertising system (In case of Google it will be google.com)
- Publishers account ID (You better Know the Google AdSense Publisher Id of your account)
- Type of Relationship with the partner (It should be either DIRECT or RESELLER if you are working with a third party)
- 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.
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.
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.