Help enabling a hidden site setting

Hi, trying to setup Adsense, cannot find that setting: ad_platform_through_trust_level

Thanks.

this is a hidden setting with default trust_level_2:

to enable it, see here:

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

cd /var/discourse
./launcher enter app
rails c
SiteSetting.adsense_through_trust_level = 3
exit

Thanks but typing exit does nothing.

does it not exit you out of the rails console? is this a standard install?

root@forum:~# cd /var/discourse
root@forum:/var/discourse# ./launcher enter app
x86_64 arch detected.
WARNING: This output is designed for human readability. For machine-readable output, please use --format.
root@forum-app:/var/www/discourse# rails c
Loading production environment (Rails 8.0.5)
discourse(prod)> SiteSetting.adsense_through_trust_level = 1
=> 1
discourse(prod)> exit
root@forum-app:/var/www/discourse# 

Worked this time, I must had extra spaces before…