All things Shopify and commerce
Hi guys,
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
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.
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
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
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.
@CholeWess wrote: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?
https://help.shopify.com/en/manual/domains/managing-domains/advanced-settings
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Did you end up getting it to work? It still shows up on mine.
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.
Your instructions are the most helpful one I've come across, I've been trying to solved this problem for my site for quiet sometime now. Thanks for your help really appreciate it.
Thank you for such a great answer.
Hello
Its not working is deleting the "cdn.shopify" part and just leaving /s/files/1/2501/7648/files/Ads.txt
and the resulting links goes to nowhere https://www.iwaymagazine.com/ads.txt
@iway You need to use the entire url and you need to switch your inputs around. Your issue is that the url and ads.file are in the wrong boxes.
Example:
Redireccionar desde
/ads.txt
Redireccionar hacia
Place your https://cdn.shopify.com/s/files ...url
I couldn't find redirect rule.
If you're still seeing the warning after implementing the solution we can help.
All good now.
Thanks
Hi, we can solve this for you.
https://experts.shopify.com/prosale/domain-setup
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.
Here's how you can do it:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
Replace "pub-0000000000000000" with your unique AdSense publisher ID.
I'm trying to verify my app-ads.txt file for admob for my mobile app. Will this work for that?
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024