• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 How to add Google Adsense in my Xenforo ?

#1
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
#4
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.
 
#5
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.
 
#6
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