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.
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.