# Google Adsense - Display For Non Members

**URL:** <https://forum.ghost.org/t/google-adsense-display-for-non-members/18531>\
**Category:** Memberships & subscriptions\
**Created:** [November 27, 2020, 3:06am UTC](https://forum.ghost.org/t/google-adsense-display-for-non-members/18531 "2020-11-27T03:06:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpm](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jpm/32/13619_2.png) [@jpm](https://forum.ghost.org/u/jpm)\
**Post date:** [November 27, 2020, 3:06am UTC](https://forum.ghost.org/t/google-adsense-display-for-non-members/18531/1 "2020-11-27T03:06:36Z")

</div>

While I understand you can use Google Adsense - Auto Ads with Ghost. Is it possible to have the ads displayed (Display Ads) only for those who are not logged in, i.e. non-members?

If so, how would you go about it?

---

<div class="post-metadata">

**Author:** ![samjamesnz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/samjamesnz/32/3851_2.png) [@samjamesnz](https://forum.ghost.org/u/samjamesnz)\
**Post date:** [November 27, 2020, 4:41am UTC](https://forum.ghost.org/t/google-adsense-display-for-non-members/18531/2 "2020-11-27T04:41:17Z")

</div>

I think this is what you are after 🙂

[https://ghost.org/docs/members/content-visibility/](https://ghost.org/docs/members/content-visibility/)

```
  {{#if access}}
    <p>Thanks for being a member...</p>
  {{else}}
    <p>ADSENSE CODE</p>
  {{/if}}

```

---

<div class="post-metadata">

**Author:** ![jpm](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jpm/32/13619_2.png) [@jpm](https://forum.ghost.org/u/jpm)\
**Post date:** [November 10, 2021, 6:28am UTC](https://forum.ghost.org/t/google-adsense-display-for-non-members/18531/3 "2021-11-10T06:28:23Z")

</div>

Thanks for sharing this. Surprised, I haven’t found a solution yet. I want to distinguish between subscribers & paid members.

If code injection happens via site header, it doesn’t work. It would be good to have an option for the above.

---

<div class="post-metadata">

**Author:** ![Leepish](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@Leepish](https://forum.ghost.org/u/Leepish)\
**Post date:** [February 6, 2022, 9:47am UTC](https://forum.ghost.org/t/google-adsense-display-for-non-members/18531/5 "2022-02-06T09:47:10Z")

</div>

We’re there any further updates to this? I am keen to explore showing ads and ‘subscribing to remove them’

---

<div class="post-metadata">

**Author:** ![Abhishek\_Prakash](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/abhishek_prakash/32/8599_2.png) [@Abhishek\_Prakash](https://forum.ghost.org/u/Abhishek_Prakash)\
**Post date:** [September 9, 2022, 2:54am UTC](https://forum.ghost.org/t/google-adsense-display-for-non-members/18531/6 "2022-09-09T02:54:13Z")

</div>

There is no direct way. However, you can inject the code to display the ads before or after the post content by adding the code in the post.hbs

For displaying ads inside the article text, you’ll have to rely on auto ads.
