MyBB Community Forums

Full Version: Installing adsense on my forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there,

I'm only now getting used to adsense. I downloaded my advertisements and made an account for google adsense.

It's giving me this code:
<script data-ad-client="ca-pub-7410016879294629" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

To put in an html document between the <head> lines. Where do I find this document in my cPanel? And is there anything else I should know before I use adsense?

Thanks
Add it to the "Ungrouped Templates" > "headerinclude"

This is how to add the general base script to make Google Adsense working.
In addition to that you need to add your advertisement content wherever you wish to display. So chose templates to insert your banners.

[ExiTuS]
(2020-03-04, 09:37 PM)[ExiTuS] Wrote: [ -> ]Add it to the "Ungrouped Templates" > "headerinclude"

This is how to add the general base script to make Google Adsense working.
In addition to that you need to add your advertisement content wherever you wish to display. So chose templates to insert your banners.

[ExiTuS]

I searched for this as well and can't find it. Where is it located? https://gyazo.com/baba42a5f0944fa64768b033579d5ddf
ACP >>Templates & Style>>Templates>>Ungrouped Templates>>headerinclude
(2020-03-05, 07:59 AM)Mastersly Wrote: [ -> ]ACP >>Templates & Style>>Templates>>Ungrouped Templates>>headerinclude
I can't find ungrouped templates. https://gyazo.com/78c5415baade5e7abce5247d761f9394
Do I add a template group? Or a set? Or what do I do?


Thanks for all the replies!
ungrouped templates arent there,
This is your themes templates
https://gyazo.com/78c5415baade5e7abce5247d761f9394

just choose your theme you want to edit first and the find ungrouped templates
(2020-03-05, 08:25 AM)Mastersly Wrote: [ -> ]ungrouped  templates  arent there,
This is your themes templates
https://gyazo.com/78c5415baade5e7abce5247d761f9394

just choose your theme you want to edit first and the find ungrouped  templates

I tried that, but I have no idea where ungrouped templates is

When I click edit on my iGame theme, this is what shows up: https://gyazo.com/4f8a35734fa82840d93839932b581513
You are not on templates
hope this picture help you
[Image: VRntqjT.png]

let me know if you find it.
If not,i could help you later from teamviewer
(2020-03-05, 08:39 AM)Mastersly Wrote: [ -> ]You are not on templates
hope this picture help you
[Image: VRntqjT.png]

let me know if you find it.
If not,i could help you later from teamviewer


Ahh right, got it! I'm now in headerinclude. I pasted the code on top of the code, without {head} codes, it works, google adsense has accepted it
Thanks!