XF 1.4 How to add Google Adsense in my Xenforo ?

bgk

Member
Hello all,

I would like integrate Adsense in my forum, more precisly in the Sidebar, in header, in the footer and in the message body but I never have a white rectangle .. ( my Adsense account isn't verified ).

Thanks for your help and sorry for my bad English :)
 

Brogan

XenForo moderator
Staff member
If there is nothing showing then it will be to do with your AdSense account.
It takes some time for ads to show - check if they are active.
 

bgk

Member
If there is nothing showing then it will be to do with your AdSense account.
It takes some time for ads to show - check if they are active.
Adsense asks me to put a code on my forum to validate my account and said there will be a white square instead but nothing.
 

bgk

Member
I tested several code and currently I put it there and it doesn't work.

Code:
<xen:hook name="ad_sidebar_bottom" />

<div class="section">
<div class="secondaryContent">
<h3>Advertisement</h3>
<div style="text-align: center; margin-top:8px;">
Adsense code
</div>
</div>
</div>
http://prntscr.com/5t66p4
 
Top