If we don’t use ads.txt code then AdSense publisher will see a warning message in their AdSense dashboard. And by inserting the ads.txt code we can solve this issue. After inserting the AdSense publisher ID it will be verified or detected by AdSense system and later within 24 hours the
red banner with warning message will be remove from your AdSense account.
For inserting the AdSense Publisher ID in Blogger through Custom ads.txt option just go through the below steps-
Go to your AdSense account and get
the publisher id. For locating the publisher ID from
AdSense dashboard, in the left navigation panel,
Click Settings -> Account , then click Account
information .
You will see the publisher ID under Account
information.
Now sign in to your Blogger account.
The sign in process requires entering your Gmail
account and password. And select the Blog where
you want to insert AdSense Publisher ID.
just go to Search preferences
under Settings as shown in the screenshot
below:
You will find an option to enable custom ads.txt under Monetization option. Just click Edit and then select radio button next to Yes option to enable custom ads.txt feature as shown in the screenshot below.
After enabling the ads.txt feature, a
text box will appear. Now insert the AdSense
publisher ID like below.
Don’t forget to replace xxxxxxxxxxxxxxxx by your AdSense publisher ID. ads.txt settings. You can write here maximum 10,000 characters.
Once everything is done, click Save
changes .
After adding the publisher id into ads.txt you can check the code by navigating to your domain like this www.90campus.com/ads.txt
Replace “90campus” by your domain name.