Google adsense requires an ads.txt file to be added to the root. When I include this file in a manual drop the deployment hangs and won’t proceed.
The contents of the ads file are a single line resembling
google.com , pub-#########489377 , DIRECT, ######0942fa0
How can this file be added to the deployment??
perry
May 13, 2020, 5:25pm
2
hi there, are you able to deploy via a git push? it seems we have some intermittent issues with this specific file on manual (drag n drop) deploy:
Hi Guys,
I have created a blog site using Gatbys.js. I have been approved for google adsense and told to place a ads.txt file in the root domain. In gatsby that would be the static folder.
When I run gatsby serve to see the build in localhost, It works fine, and the ads.txt file is visible (website.com/ads.txt ). However, when I run the build and drag and drop the public folder gatsby generates into Netlify deploy, it gets stuck in the loading phase. I have removed the ads.txt file and it works…
Hi, I prefer a manual drop rather than GIT. Is there a work around for this? You said the problem is intermittent, perhaps I can try several times?
fool
May 15, 2020, 12:05am
4
Yup! I’d suggest this is probably not specific to that file (unless that file is 100MByte or something). Check out these best practices for drag and drop deploys:
Last Reviewed by Netlify Support Staff: December 2022
Drag and drop, or "manual”, deploys are an easy way to get a simple website up and running super quick. One thing to know about manual deploys is (fun fact!) they do not generate deploy logs. This is because manual deploys don’t actually build anything, so there is nothing to log.
The upside to this is that they deploy lightening fast; the downside is that, without deploy logs, we can’t tell what is happening when things go wrong or get “st…