# 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:** 8

<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, 11:33am UTC](https://meta.discourse.org/t/ads-only-to-registered-users/144084/8 "2020-03-25T11:33:06Z")

</div>

Regarding the Discourse ad plugin…

I just took a peek for the first time into the plugin.

```plaintext
$ pwd
/Users/Tim/desktop/discourse-adplugin/test/javascripts/acceptance
$ vi dfp-test.js.es6

```

Looks to me like the basic capability to serve ads to certain trust levels and groups is already there (however, I did not test it, but it looks fairly straight forward since it is there in the plugin already…)

Here is the code:

 ![Screen Shot 2020-03-25 at 6.32.00 PM](https://global.discourse-cdn.com/meta/original/3X/d/7/d73e2ed3ab71f87b433ffe617aa3b7f8bade9606.jpeg)

Sorry, not in my radar to work with this plugin this month; but it looks straight forward to target based on trust levels and user groups, after a brief look at the code.

Anyway… just checked the docs… most of this exists in the discourse ad plugin already, see for example (adsense though trust level, in this example setup):

 ![Screen Shot 2020-03-25 at 7.07.19 PM](https://global.discourse-cdn.com/meta/original/3X/1/9/19737da9baf3f8af1f9e473a5aad5982b9add7aa.jpeg)

---

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