How to Add Google AdSense Ads.txt File to Squarespace (New Native Setting Guide)
UPDATE: Squarespace now offers a Native Ads.txt Setting!
Section 1: Method 1 β The New Native Squarespace Method (Recommended)
Squarespace has officially launched native ads.txt support directly within site settings, on August 24, 2026. You no longer need to use complicated 301 URL redirects or custom asset file uploads to authorize Google AdSense.
Whether you are connecting Google AdSense to Squarespace for the first time or upgrading from an older workaround method, this step-by-step guide shows you how to implement the built-in ads.txt feature.
Step 1: Get Your AdSense Authorization String
Before configuring Squarespace, you need your unique ads.txt code snippet. Choose the method below that matches your current setup:
Method 1 (First-Time Setup via AdSense Sites Tab):
Log into your Google AdSense dashboard, go to Sites, select your website domain, and click Copy to grab your generated ads.txt code.
Method 2 (Using Your AdSense Publisher ID):
In your Google AdSense dashboard, navigate to Account > Settings > Account Information. Copy your Publisher ID (e.g., pub-1234567890123456). Open a plain text editor and format your line as follows (replace YOUR_PUBLISHER_ID with your actual numeric ID):
google.com, pub-YOUR_PUBLISHER_ID, DIRECT, f08c47fec0942fa0
Method 3 (For Upgrading Users):
If your site already has an active redirect (old file upload method), open a new browser tab, go to [yourdomain.com/ads.txt] (in my case it is https://www.dozro.com/ads.txt), and copy the exact plain text line displayed on your live page.
Step 2: Add Ads.txt directly into Squarespace Settings
Once you have copied your authorization line, insert it natively into your Squarespace site settings:
Log into your Squarespace website dashboard.
Navigate to Settings > Website > ads.txt.
Paste your copied ads.txt code directly into the text area.
Click Save in the top control bar.
Squarespace now serves your ads.txt file directly from your root domain ([yourdomain.com/ads.txt] with zero performance overhead.
Step 3: Remove Old 301 Redirects & File Uploads (Upgrading Users)
If you previously set up ads.txt using the file upload and redirect workaround, you must remove those legacy settings to avoid routing conflicts for search engine crawlers:
Remove the URL Redirect:
Go to Settings > Developer Tools > URL Mappings. Locate the line redirecting /ads.txt to your uploaded asset file, delete that line, and click Save.
Delete the Old File Asset:
Open any page in edit mode, highlight any text, and click the Link icon in the toolbar. Select File from the gear/dropdown menu, locate your previously uploaded ads.txt file, delete it, and save your page.
Step 4: Verify Your Native Ads.txt File
To confirm your Google AdSense ads.txt authorization is working properly:
Incognito Test: Open a new Incognito window and visit [https://yourdomain.com/ads.txt]. Your authorization code should display as plain text instantly.
Instant AdSense Verification: Log into Google AdSense, go to Sites, select your domain, and click Check for updates. AdSense will scan your root directory immediately and update your status to "Ads.txt found and verified" with a green checkmark.
π See Squarespace in Action: Explore Live Demo Websites
Both Dozro.com and our subsidiary WOZRO.com are built entirely on the Squarespace CMS platform. If you want to see what is possible with advanced Squarespace design, explore our fully interactive, industry-specific live demo websites:
π Restaurant Demo: Experience a high-converting, mobile-first food menu layout at our Premium Pizza Restaurant Live Demo.
π€ Personal / Creator Demo: See an edge-to-edge, distraction-free digital profile at our Personal Website & Premium Link-in-Bio Demo.
π Explore All Demos: Browse our complete catalog of industry-ready websites at WOZRO.com.
Section 2: Method 2 β Legacy 301 URL Redirect & File Upload (For Reference)
Learn how to generate and add ads.txt file to Squarespace website domain root directory and solve the Google AdSense errors: Ads txt status not found & Earnings at risk. Follow the effective and secure solution to monetize and run ads on your Squarespace website.
Squarespace users might face challenges when trying to upload the Google Adsense ads.txt file to the root directory since Squarespace does not provide an official procedure for uploading Ads.txt file. This guide will show you how to add ads.txt for Adsense to behave like a successful upload to a Squarespace root directory. By following this effective method, the ads text file for my website was found instantly by Google AdSense.
ποΈ Watch Video Tutorial Below.
If you don't upload ads.txt file to Squarespace, the AdSense dashboard displays the warning βEarnings at risk - You need to fix some ads.txt file issues to avoid severe impact to your revenueβ.
add AdSense ads.txt to Squarespace
Step 1: Save AdSense Ads.txt Code
Log in to your AdSense account.
Navigate to Sites, then click on the site displaying the "Not found" ads.txt status.
Click on the βCopyβ button to copy the Ads.txt code which includes your publisher ID.
Note: AdSense publisher ID is not confidential/secret. It can be publicly accessed. However, your AdSense customer ID is confidential, and you should not share it publicly.
AdSense ads.txt code
You need a plain text editor, such as Notepad (Windows) or TextEdit (Mac).
Therefore, using the search box inside the computer taskbar, search for βNotepadβ, and open it. Paste the AdSense code in the Notepad.
Click βFileβ then the Save option. Name the text file as you like. I named it as βadsβ.
ποΈ Watch Video Tutorial Below.
Step 2: Upload the AdSense Ads.txt File to Squarespace
Open your Squarespace site. From the βMain Navigationβ, click the plus β symbol and select the βLinkβ option.
From the URL options, select βFileβ.
Upload ads.txt file to Squarespace
Click the Upload button and select the saved Ads.txt file from your computer. It will be uploaded instantly.
Do not Save it. Just close the pop-up window.
Step 3: Get Actual URL Link of the Uploaded File from Squarespace Server
Using a search engine (Google, Bing), search for βURL tracking toolβ and open a free online tool like βTiny Scanβ.
In the given field, enter https://www.yoursite.com/s/filename.txt.
Replace "yoursite" with your own website domain. Like I will replace it with βdozroβ.
Replace "filename" with the name of your uploaded text file. As I had named the ads.txt file as βadsβ, therefore I will replace the "filename" with βads'β.
So, in my case the final URL will become https://www.dozro.com/s/ads.txt as shown in video demo.
After selecting the βScanβ button, it will start scanning the URL. After scan, it will provide you the real URL of the uploaded file, which will be actually served from the Squarespace servers. Just copy it.
https://static1.squarespace.com/static/6219238e0278bd045f89ac26/t/66ccb46e85a96a5d4f521061/1724691566374/ads.txt
In my case, the tool provided me the above URL. Of course, your URL will be different.
Step 4: Prepare Redirection Text for URL Mapping
Modify the below text with your own.
/filename.txt -> [actual-squarespace-server-URL] 301
Replace "filename" with the name of your uploaded text file. As I had named the ads.txt file as βadsβ, therefore I will replace the "filename" with βads'β.
Replace "[actual-squarespace-server-URL]" with the actual URL of the uploaded file, you copied from the tracking tool.
So, in my case, the final prepared URL redirection text looks like this.
/ads.txt -> https://static1.squarespace.com/static/6219238e0278bd045f89ac26/t/66ccb46e85a96a5d4f521061/1724691566374/ads.txt 301
Just copy the text and paste in Squarespace URL mapping.
Step 5: Implement a Redirect in Squarespace URL Mappings
Open your Squarespace website and navigate to βSettingsβ.
Select the option of Developer Tools.
Open URL Mappings.
Press βEnterβ to add a new line.
Paste the copied text in URL Mappings. In my case, I pasted the following text.
/ads.txt -> https://static1.squarespace.com/static/6219238e0278bd045f89ac26/t/66ccb46e85a96a5d4f521061/1724691566374/ads.txt 301
Click the Save button.
Step 6: Request AdSense to Update the Ads.txt File Fast
Access AdSense dashboard and open the same website.
Click the βCheck for Updatesβ option. Google AdSense will attempt to find ads.txt file on your website.
Prompt AdSense to quickly find ads.txt file on website
Success. Ads.txt found.
Google AdSense will promptly display this notice.
βGood news, we found your publisher ID in the Ads.txt fileβ.
Voila!
More Resources
If you appreciate the valuable free content, you can choose to Support Dozro with a small contribution.
Discover Our Collection of Valuable and Latest Products.
Check Dozro Price for Creation of YouTube channel banner, Brand Logo, and Small Business Website.
Check our Expert Guide about the Facebook Cover Size.
Find out which is the best video editing software.
Learn about the Squarespace Base Size in Fonts Panel.
Method to Change Size of Squarespace Paragraph, Heading and Button Text.
Easy methods of changing colors on Squarespace website.
Check more learning resources about Squarespace.
Check the cost of Squarespace website creation service by Dozro.
Join our Facebook Group about Squarespace help.
Discover Dozro Services or check out the Home page of our website for additional learning resources.
Make sure to follow Dozro's social media pages including our YouTube channel and Facebook page.
FAQs
Can I monetize my Squarespace website through Google Ads?
According to Squarespace, you have the option to showcase ads on your website through third-party platforms such as Google AdSense. Additionally, the Dozro website utilizes Squarespace CMS and has effectively monetized its content with Google AdSense.
Is adding ads.txt file on website mandatory?
As per Google AdSense, although the utilization of ads.txt is optional, it is strongly advised. This practice assists buyers in recognizing counterfeit inventory and enables you to attract additional advertiser investments that could have otherwise been directed towards such illegitimate sources.
Where can I find the AdSense Ads.txt code to copy from?
Log in to your AdSense account, go to Sites, and select the site with the "Not found" ads.txt status. Press the βCopyβ button to save the Ads.txt code containing your unique publisher ID.
More Resources
Check more resources which are helpful in designing a Squarespace website.
Get Squarespace Website Design Package on Turnkey Basis.
Explore Our Premium Custom Squarespace Color Themes for Your Website.
How to Change Squarespace Colors for All Major Blocks: Buttons, Forms, Carousel, Text, Social Links, Newsletter, Announcement Bar, Line, Links, Scrolling Text, Logo on Different Pages, Section Background, and Change Color Palette.
Method to Change Squarespace Colors through Color Themes.
Method to Change Squarespace Colors through Palette Editor.
Find the Default Dominant Color Theme in a Squarespace Template.
Squarespace Color PRESETS: Method to Change Color.
Three Easiest Options for Color Selection on a Squarespace Website.
Squarespace support article for changing colors.
Methods of Font customization in Squarespace website.
Check more learning resources about Squarespace.
Join our Facebook Group about Squarespace help.
ExploreServices List offered by Dozro.
Download FREE Banners for Facebook, or YouTube, or other Social Media, or Advert Flyers.
Check Dozro Services List or visit the Homepage of our website.
Be sure to check out Dozro's social media platforms, including our YouTube channel and Facebook page.