Graesen Arnoff

View Original

Resolve Google AdSense: Your Earnings May Be At Risk Error for SquareSpace

Earnings at risk message from Google AdSense

If you find this helpful, please help support my site and my work by either donating with the button below or by ordering a print of your favorite photo from my shop.

See this content in the original post

Google AdSense requires you to add a text file to the root directory of your website to give you credit for the ads on your site. The problem is, SquareSpace doesn’t offer any tools to let you do this. You upload a file to SquareSpace and it goes wherever they dictate. You can’t even move the file location. The steps below will use some web tricks to make Google think the required file is where it needs to be.

There are three major steps in this process and I will break this guide into sections to address them. First, you will upload the ads.txt file. Then you will find the real web address of the uploaded file. Finally, you will setup a URL Redirect to the uploaded file.

If you followed my previous guide, you will be familiar with uploading and setting up the URL Redirect. The difference is that I discovered SquareSpace uses a temporary URL redirect on the uploaded file already. This confuses Google AdSense and leads to the error of your earnings being at risk coming back, despite using the URL Redirect method. So there is an added step, which this new guide will cover.

Upload ads.txt

This assumes you already downloaded or created the ads.txt file from Google AdSense.

  1. Create your ads.txt file if necessary (see Google Adsense for more information)

  2. Upload the ads.txt file by following Squarespace’s upload steps here

  3. Add the ads.txt file to a page (this will only be temporary)

  4. View the page with the ads.txt file

  5. Right click the file and choose “copy link address” (the exact words may be different depending on the browser you are using)

Find the web address of the uploaded file

In my previous guide (linked earlier in this page), the web address for the uploaded file was www.your_site.com/s/ads.txt. However, SquareSpace uses a temporary URL Redirect to come to this address. The real location is a much longer string of text. I only discovered this by using a web tool to test and track what happens when I tried to use the /s/ads.txt web address for my own URL Redirect. I hoped I would see something that would explain why the error with Google kept coming back. That’s when I discovered the additional URL Redirect SquareSpace uses as well as the true address to the file uploaded. Follow the steps below:

  1. Visit http://www.redirect-checker.org/index.php in a new browser tab or windows (if you prefer a different redirect checking tool, you may use it instead of this one)

  2. Paste the link you copied from Step 5 above in the text field of the Redirect Checker

  3. Click Analyze

  4. Take note of the results once you Analyze the address:
    Example:
    http://graesen.com/s/ads.txt
    301 Moved Permanently
    https://www.graesen.com/s/ads.txt
    302 Found
    https://static1.squarespace.com/static/5d0a92915e83160001822e6d/t/5d0d26c6a0dd580001485b51/1561142982659/ads.txt
    200 OK

  5. Copy the long URL below “302 Found” and above “200 OK
    Example: https://static1.squarespace.com/static/5d0a92915e83160001822e6d/t/5d0d26c6a0dd580001485b51/1561142982659/ads.txt
    NOTE: The exact web address above will be different for every user. Using this web address instead of your own will result in ME getting credit for YOUR ads. DO NOT USE the above web address!

Setting up URL Redirect

Next, you will use the web address from Step 5 above in a URL Redirect.

If you find this helpful, please help support my site and my work by either donating with the button below or by ordering a print of your favorite photo from my shop.

  1. Setup a URL redirect following Squarespace’s steps here

  2. The code for the URL redirect should resemble the following:

    /ads.txt -> [the copied link address] 301

    or

    /ads.txt -> https://static1.squarespace.com/static/5d0a92915e83160001822e6d/t/5d0d26c6a0dd580001485b51/1561142982659/ads.txt 301

  3. Type “[yoursite.com]/ads.txt” into the address bar of your browser to verify it works. You should see the ads.txt file start to download if you did this correctly. If it does not download, you missed a step or mistyped the URL redirect code.

  4. Delete the text/link to the ads.txt file from Step 3 from the Uploading section of this guide above (DO NOT delete the file, only the text to the file)

NOTE: It make take 24 hours before the error goes away on Google AdSense. It took several days before I noticed the error resolved.