Unable to set up ads.txt file

A problem that I have been facing for quite a few days is that I am not able to set my ads.txt file.

I have uploaded the file in htdocs and is accessible through my domain.
My domain is learningprogrammer.tech
The ads.txt file can be accessed as https://learningprogrammer.tech/ads.txt

Here are a few things I have tried to change which didn’t work:
Changing the chmod of the file in case that’s causing an issue
Uploading file starting with an uppercase letter (Ads.txt)
Uploading file with all uppercase letters (ADS.txt)
Just waiting (2 days now) in case it need some time to fetch the file from my domain.

However, the advertising console keeps showing ‘Status not resolved’ (System encountered an error fetching the ads.txt file from the domain), I am using media.net in case that makes any difference.

I am not aware of setting up the ads.txt file from the settings somewhere, in case their exists any such operation kindly let me now.
Please help me solve this issue.
Thanks in advance.

If your ads.txt are supposed to look like this;

media.net, 8CU577238, DIRECT
google.com, pub-7439041255533808, RESELLER, f08c47fec0942fa0
rubiconproject.com, 19398, DIRECT, 0bfd66d529a55807
rubiconproject.com, 19398, RESELLER, 0bfd66d529a55807
pubmatic.com, 157599, DIRECT, 5d62403b186f2ace
pubmatic.com, 157599, RESELLER, 5d62403b186f2ace
openx.com, 537100188, RESELLER, 6a698e2ec38604c6
districtm.io, 100600, DIRECT
rubiconproject.com, 17054, RESELLER
pubmatic.com, 156181, RESELLER
spotxchange.com, 211156, RESELLER, 7842df1d2fe2db34
spotx.tv, 211156, RESELLER, 7842df1d2fe2db34

Then It is working

It is indeed supposed to look like that but the console it keeps showing ‘Status not resolved’ no matter how many times I refresh the status.

I don’t know but that might be the fact due to this article;

I recomment contacting them directly and asking them to check without their automated api doing it.

Because of this security system, the following things will not work correctly or at all on websites on free hosting.

Access through Android or iOS mobile apps (mobile browsers work fine).
API access to websites (like WordPress XML-RPC).
Access from cURL or other command line clients.
Website code validators and SEO checkers.
Domain ownership verification checks which look at website URLs or HTML code. Some webmasters tools and ad networks do this.
Let's Encrypt and websites providing certificates through Let's Encrypt (like sslforfree.com or zerossl.com).
AJAX requests from other websites (CORS). AJAX requests are only possible on the same (sub)domain.
Hotlinking and embedding images and other (static) files on other websites.

This can definitely be the reason causing that issue. Thanks for sharing the article.

I’m not sure if it will help but check this too:


Yeah, I have read this article and that’s when I deceided to try putting ads on my website. Thanks for sharing it though.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.