WallBB Forums

Full Version: How to add google adsense ads in MyBB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This tutorial will tell you how to add google adsense in MyBB, this tutorial can help you add adsense ads in any MyBB theme.
I am using Focus Responsive MyBB theme, you can use any theme you want.
I am using footer area as an example. Suppose the adsense code is below :-
Code:
<div align="center">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Homepage Leaderboard -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1234567820123456"
data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
To do this, go to the footer template in the admin Panel
  1. Go to Admin CP > Templates and Styles  > Template Sets » FocusResponsive Templates » footer
  2. Edit the template, and find <debugstuff>
  3. Below this add, the above adsense code(Use your adsense code)
  4. Save the template and adsense will be installed on your website.
If you don't know how to find adsense code, please read this tutorial
https://support.google.com/adsense/answer/181960?hl=en

Regards
WallBB