Adding Adsense to header/footer as custom html

I’m trying to add Adsense code to both the header and the footer in Admin panel - CSS/HTML, but ads won’t show, and I have no idea why (the code works by itself when not embedded).

Maybe it has something to do with the scripts which are probably unsupported in header/footer? Can I circumvent this limitation, if it is indeed the case? I’m not sure if I want to use the plugin.

Thank you.

You can’t add Adsense this way to Discourse because it’s a Javascript application. Instead you should use the adsense plugin.

4 Likes