Google Adsense - Display For Non Members

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?

1 Like

I think this is what you are after :slight_smile:

https://ghost.org/docs/members/content-visibility/

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

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.

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

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.