1. 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 ?

Discussion in 'XenForo Questions and Support' started by bgk, Jan 16, 2015.

  1. bgk

    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 :)
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. bgk

    bgk Member

  4. Brogan

    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.
     
  5. bgk

    bgk Member

    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. bgk

    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
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Ensure you have set your AdSense account up correctly.
     
  8. bgk

    bgk Member

    Hmm yes normally well I do not do that every day, but I have not seen other set.
     

Share This Page