# Ads only to registered users?

**URL:** <https://meta.discourse.org/t/ads-only-to-registered-users/144084>\
**Category:** Product Support\
**Tags:** advertising\
**Created:** [March 12, 2020, 4:50pm UTC](https://meta.discourse.org/t/ads-only-to-registered-users/144084 "2020-03-12T16:50:31Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [March 25, 2020, 12:21pm UTC](https://meta.discourse.org/t/ads-only-to-registered-users/144084/10 "2020-03-25T12:21:13Z")

</div>

> [@mentalstring](#):
>
> I’m new to Ruby and Discourse’s codebase but will take a look at the code and see if I can figure something out. Hints appreciated.

See here (adsense example, each file is different in that directory). You can slightly change the logic in this code to only show ads to users above a certain trust level or user group (instead of below), etc.

FYI (and a hint)

`./discourse-adplugin/assets/javascripts/discourse/components`

 ![Screen Shot 2020-03-25 at 7.18.08 PM](https://global.discourse-cdn.com/meta/original/3X/a/5/a5db7a6c7b86d81d54a36baf293ceb0ca197b269.jpeg)

This “may” be easily modified and rebuilt (test on your favorite staging server) to accomplish what you asked for, as I understood your original post (show ads to members only). If you based it on trust level or user group, then of course it is nearly trivial to modify.

Sorry, I have not tested, only looking into the code for you.

---

_[View the full topic](https://meta.discourse.org/t/ads-only-to-registered-users/144084)._
