Recently I've been getting an Red alert at the top of my Adsense account that says:
"Earnings at risk – One or more of your sites does not have an ads.txt file. Fix this now to avoid a severe impact on your revenue."
How do I add this ads.txt file to my shopify site? You can see the instructions here: https://support.google.com/adsense/answer/7532444?hl=en-GB
I searched this forum and someone asked this in 2017 but no one could answer it. https://community.shopify.com/c/Shopify-Discussion/How-to-add-an-Ads-txt-file-to-a-Shopify-site/td-p...
Solved! Go to the solution
Did you try the redirect method outlined in the post you linked?
Main issue is assets go on shopifys cdn with is a different domain that .myshopify.com
The work around suggested doesn't work for the required txt file, it only allows google to verify your domain. I've tried using the code they provide as a txt record as well but it did not work. This is so frustrating. I asked Shopify after Google instructed me to contact my domain administrator and they provided me the same link in the original question above. I tried it just to see if maybe it would work and it didn't. Disheartening that our own platform can't assist with this.
I've tried using the code they provide as a txt record as well but it did not work.
You mean as Domain TXT record in your domain ?
Or as a file you added to the shopify admin assets?
Is shopify your domain name registrar?
Hi, we can solve this for you.
We'll need your ads.txt file + full access to your store and Google will verify within 24-48 hours (or your money back!).
Clean, white-hat methods only - we do this on our own stores too.
This is an accepted solution.
Here is the solution to this issue:
Hope this helps everyone and please allow 24 - 48 hours for your Adsense account to approve your txt file has been uploaded to your domain server.