AdSense - ads.txt file

Solved
Highlighted
Excursionist
14 1 4

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

1 Like
Highlighted
Shopify Partner
2176 105 309

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

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes
Highlighted
Excursionist
11 0 2

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.

0 Likes
Highlighted
Shopify Partner
2176 105 309

@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

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes
Highlighted

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.

Shopify Partner | Klaviyo Master
0 Likes
Highlighted
Excursionist
14 1 4

Did you end up getting it to work? It still shows up on mine.

0 Likes
Highlighted
Yes!
We got this to work and the warning's gone.
What steps did you take in your attempt to solve your issue?
Shopify Partner | Klaviyo Master
0 Likes
Highlighted
Tourist
5 1 5

This is an accepted solution.

Here is the solution to this issue:

  • Log in to your Shopify store account
  • Go to Settings > Files
  • Take the generated ads.txt file from AdSense
  • Upload the file on Shopify
  • Copy the URL of the file

Upload Adsense txt file to shopify assets folderUpload Adsense txt file to shopify assets folder

 

 

 

  • Go to Online Store > Navigation > Url Redirects

Shopify-Navigation-URL-RedirectsShopify-Navigation-URL-Redirects

  • Create a redirect rule from /ads.txt to /file_url

Creating Adsense txt redirect for shopifyCreating Adsense txt redirect for shopify

 

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.

5 Likes
Highlighted
New Member
1 0 0

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. 

0 Likes
Highlighted
New Member
1 0 0

Thank you for such a great answer.

0 Likes