All things Shopify and commerce
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
Google are encouraging advertisers to host an ads.txt file at the root level of their domain. e.g. example.com/ads.txt. (https://support.google.com/dfp_premium/answer/7441288?hl=en)
How can this be done with Shopify?
Uploading an assets doesn't work because the file is hosted at a Shopify CDN URL, e.g. https://cdn.shopify.com/...
Uploading to the Files section results in the same issue.
Using either of those options and creating a redirect also does not work.
Paddy,
I'm pretty sure there isn't a way for you to explicitly host a file at the root level, but there might be a work around depending on how Google follows the URL redirects.
Basically, you upload your ads.txt file in the Shopify File Upload (which goes into their CDN). Then you create a URL Redirect which can be at the root level (example: yourdomain.com/ads.txt).
Look at the bottom of this documentation page that explains how to do this step-by-step.
https://help.shopify.com/themes/customization/store/verify-domain-with-third-party-services
Let us know if Google accepts this method and I hope this helps!
Joe
Thanks for the reply Joe, Google doesn't support this method. Any other ideas?
I need help with that too. How do you host a ads.txt file?
Hello, Download your Ads.txt. Go to setting then Files upload your downloaded ads.txt Copy the URL. Then go to your navigation create URL directs. Paste the direct URL to Redirect to and add ads.txt to Redirect from. Thanks, Vince Servidad.
hi i dont see navigation . Solution ?
Hi,
1. First go to settings > files - and upload the file ads.txt
2. then go to online store > navigation and on the top you will see "URL redirection". click on it
3. press Create URL redirection
4. Redirect from /ads.txt
5. Redirect to add the relevant URL. You need to add the relevant URL from settings>files>ads.txt there you will see the URL
Alex
Thank you!
Your answer is a very easy way to set this! Really appreciate!
Hi, Even I am getting the same error on my Adsense account: Earnings at risk - You need to fix some ads.txt file issues to avoid severe impact to your revenue. My website address is: https://www.chembondindia.in and I am able to successfully get the ads.txt on appending this with ads.txt Kindly help resolve this issue or else advise on who to speak to. Thanks.
@papavince wrote:Hello, Download your Ads.txt. Go to setting then Files upload your downloaded ads.txt Copy the URL. Then go to your navigation create URL directs. Paste the direct URL to Redirect to and add ads.txt to Redirect from. Thanks, Vince Servidad.
Perfecto, this is the solution. Thank you very much! ... Don't forget to copy the real url of the ads.txt right when you uploaded it to files, so you dont have to go back from redirect url.
Always welcome. Happy to help. 🙂
Hi,
I got this message every month since last 1 year and did nothing, as I don’t understand the reason and it’s not described in their message.
Still getting My money from google and there is no issue.
in other words - just ignore it :))
Just ignore it...I did the same since last year. No risk there and money are safe..
hi
a question
I have an issue with adding a file text
what do I have to paste in "redirect from"?
thanks
this is recommended setting, It works
I'm trying to do this the opposite way. Google is requesting a proof of domain. They're asking us to add a file to the root of Shopify, which I know isn't going to happen. But I've tried this both ways and it still goes to the file url and not the redirect.
Redirect this file:
https://cdn.shopify.com/s/files/1/****/****/files/analytics.txt?v=*********
to this url
example.com/analytics.txt
and it does nothing. What am I doing wrong?
Thanks
Thank you!!! This is super clear & helpful!!!
I was trying to fix that through the DNS record, lol... thank you for the detailed and compact explanation
User | RANK |
---|---|
65 | |
45 | |
30 | |
29 | |
26 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022