# Adsense txt file causes deployment to hang

**URL:** <https://answers.netlify.com/t/adsense-txt-file-causes-deployment-to-hang/14500>\
**Category:** Support\
**Tags:** building, deployment\
**Created:** [May 12, 2020, 8:07am UTC](https://answers.netlify.com/t/adsense-txt-file-causes-deployment-to-hang/14500 "2020-05-12T08:07:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![janderson99](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/janderson99/32/10636_2.png) [@janderson99](https://answers.netlify.com/u/janderson99)\
**Post date:** [May 12, 2020, 8:07am UTC](https://answers.netlify.com/t/adsense-txt-file-causes-deployment-to-hang/14500/1 "2020-05-12T08:07:05Z")

</div>

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](http://google.com), pub-#########489377, DIRECT, ######0942fa0

How can this file be added to the deployment??

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [May 13, 2020, 5:25pm UTC](https://answers.netlify.com/t/adsense-txt-file-causes-deployment-to-hang/14500/2 "2020-05-13T17:25:25Z")

</div>

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:

> [@Ads.txt file Gatsby.js Netlify and Google Adsense](https://answers.netlify.com/t/ads-txt-file-gatsby-js-netlify-and-google-adsense/12890):
>
> 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](http://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…

---

<div class="post-metadata">

**Author:** ![janderson99](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/janderson99/32/10636_2.png) [@janderson99](https://answers.netlify.com/u/janderson99)\
**Post date:** [May 13, 2020, 5:48pm UTC](https://answers.netlify.com/t/adsense-txt-file-causes-deployment-to-hang/14500/3 "2020-05-13T17:48:07Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [May 15, 2020, 12:05am UTC](https://answers.netlify.com/t/adsense-txt-file-causes-deployment-to-hang/14500/4 "2020-05-15T00:05:57Z")

</div>

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:

> [@\[Support Guide\] My drag and drop deploy is stuck in "Uploading" status](https://answers.netlify.com/t/support-guide-my-drag-and-drop-deploy-is-stuck-in-uploading-status/112):
>
> 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…
