# Help enabling a hidden site setting

**URL:** https://meta.discourse.org/t/help-enabling-a-hidden-site-setting/401011
**Category:** Support
**Tags:** advertising
**Created:** [April 20, 2026, 12:03am UTC](https://meta.discourse.org/t/help-enabling-a-hidden-site-setting/401011 "2026-04-20T00:03:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [April 20, 2026, 1:01am UTC](https://meta.discourse.org/t/help-enabling-a-hidden-site-setting/401011/2 "2026-04-20T01:01:01Z")

</div>

> [@patrickemin](#):
>
> Adsense, cannot find that setting: `ad_platform_through_trust_level`

this is a hidden setting with default `trust_level_2`:

> <https://github.com/discourse/discourse/blob/dc65289cd59f79c50e23e86f13b20032a0f03a74/plugins/discourse-adplugin/config/settings.yml#L53-L57>

to enable it, see here:

> [@Using Hidden Site Settings](https://meta.discourse.org/t/using-hidden-site-settings/308773/1):
>
> ## How to Edit Hidden Site Settings
> 
> ### Option 1: Rails Console
> 
> To modify hidden site settings, you typically need to use the Rails console, a command line tool that allows you to interact directly with the backend of your Discourse installation. To adjust settings via the rails console you can follow these steps:
> 
> 1. **Access the Rails Console** :
> 
> ```plaintext
> cd /var/discourse
> ./launcher enter app
> rails c
> 
> ```
> 
> 1. **Change a Setting** :
> 
> ```plaintext
> SiteSetting.your_setting_name = new_value
> 
> ```
> 
> Replace `your_setting_name` with the name of the setting you want to modify, and `new_value` with the value you want to set.
> 
> 1. **Exit the Console** :
> 
> ```plaintext
> exit
> 
> ```

i think you need to do something like this, say if you want to set it to `trust_level_3` for example:

```rails
cd /var/discourse
./launcher enter app
rails c

```

```rails
SiteSetting.adsense_through_trust_level = 3

```

```rails
exit

```

---

_[View the full topic](https://meta.discourse.org/t/help-enabling-a-hidden-site-setting/401011)._
