A Shopify store owner received a critical AdSense warning about a missing ads.txt file that could severely impact revenue. The standard solution doesn’t work on Shopify because uploaded files are hosted on Shopify’s CDN (a different domain), not the main site domain.
Working Solution (most validated):
Upload the AdSense-generated ads.txt file via Settings > Files
Copy the full CDN URL of the uploaded file
Create a URL redirect at Online Store > Navigation > URL Redirects
Redirect FROM: /ads.txt TO: the complete CDN URL (e.g., https://cdn.shopify.com/s/files/...)
Allow 24-48 hours for Google verification
Common Mistakes:
Reversing the redirect direction (putting the CDN URL in the wrong field)
Truncating the CDN URL instead of using the complete path
Confusing this with domain TXT records for site verification
Alternative Method (less verified):
One user suggested adding the AdSense code directly to a robots.txt template via theme code editing, though this approach received less community validation.
Some users reported the Settings > Files option is missing from their Shopify admin, suggesting potential plan-level restrictions.
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
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.
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.