# Trying to add "ads.txt" to the root directory

**URL:** <https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506>\
**Category:** Developer help\
**Created:** [August 2, 2019, 12:38am UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506 "2019-08-02T00:38:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tutoriales.Tech](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Tutoriales.Tech](https://forum.ghost.org/u/Tutoriales.Tech)\
**Post date:** [August 2, 2019, 12:38am UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506/1 "2019-08-02T00:38:59Z")

</div>

I’m trying to add the file “ads.txt” to my root directory for solving some problems with Google Adsense. I already uploaded my theme with that file in the theme’s root directory and restarted Ghost, but when I try to access the file ([tutoriales.tech/ads.txt](http://tutoriales.tech/ads.txt)), I’m getting 422 error: Validation (isSlug) failed for slug.

What can I do?

Regards.

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [August 2, 2019, 8:12am UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506/2 "2019-08-02T08:12:47Z")

</div>

Hey there, just clicked on the link and there’s some sort of Google verification ID on it now. I guess it’s working now?

---

<div class="post-metadata">

**Author:** ![Reto](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/reto/32/3970_2.png) [@Reto](https://forum.ghost.org/u/Reto)\
**Post date:** [August 9, 2019, 12:27pm UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506/3 "2019-08-09T12:27:43Z")

</div>

Hi there

I don’t want to open a new topic. I just came across this problem too. How can I upload this ads.txt to the not self hosted Ghost Plattform?

Thanks  
Kind regards  
Reto

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [August 9, 2019, 4:11pm UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506/4 "2019-08-09T16:11:26Z")

</div>

~~You’ll have to check with who you’re hosting Ghost with as to how you can upload txt files~~

> [@Kevin](#):
>
> @Reto for static `.txt` files you can put them in your theme’s root directory, regardless of who’s hosting your Ghost instance

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [August 9, 2019, 4:16pm UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506/5 "2019-08-09T16:16:20Z")

</div>

@Reto for static `.txt` files you can put them in your theme’s root directory, regardless of who’s hosting your Ghost instance

---

<div class="post-metadata">

**Author:** ![Reto](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/reto/32/3970_2.png) [@Reto](https://forum.ghost.org/u/Reto)\
**Post date:** [August 12, 2019, 7:52am UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506/6 "2019-08-12T07:52:30Z")

</div>

Hi

I don’t have a self-hosted installation of Ghost. It’s the Ghost(pro) Plan Basic

> **[Ghost(Pro) - Official managed hosting for Ghost](https://ghost.org/pricing/)**
>
> The best Ghost managed hosting from the creators of the open source publishing platform. Spend less time on your server, more time on your site.

Thanks  
Reto

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [August 12, 2019, 8:24am UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506/7 "2019-08-12T08:24:42Z")

</div>

@Reto as I said, the technique works regardless of who’s hosting your Ghost instance, so it’s exactly the same for Ghost(Pro) as for self-hosters

---

<div class="post-metadata">

**Author:** ![Reto](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/reto/32/3970_2.png) [@Reto](https://forum.ghost.org/u/Reto)\
**Post date:** [August 13, 2019, 9:38pm UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506/8 "2019-08-13T21:38:29Z")

</div>

Hm, ok. I don‘t get it. This means I can access the theme file myself, if yes - how?

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [August 14, 2019, 7:41am UTC](https://forum.ghost.org/t/trying-to-add-ads-txt-to-the-root-directory/8506/9 "2019-08-14T07:41:10Z")

</div>

You can download and upload themes from the admin under “Design”, see here for more details:  
[https://ghost.org/faq/design-settings/#uploading-a-theme](https://ghost.org/faq/design-settings/#uploading-a-theme)
