One thing I found was that if I just added the code to my header it was calling ads slots that were not actually being show on the page.
With Xenforo I've managed to solve this from by doing the following:
<xen:if is="{$visitor.user_id}"><xen:if is="in_array({$contentTemplate}, array('forum_list','online_list','news_feed_page_global','conversation_view','member_list','search_results','search_results_users_only','report_view'))">googletag.defineSlot('/803025/Forum-Header_Small-Members', [468, 60], 'div-gpt-ad-1344102488647-5').addService(googletag.pubads());<xen:else />googletag.defineSlot('/803025/Forum-Header-Members', [728, 90], 'div-gpt-ad-1344102488647-3').addService(googletag.pubads());</xen:if><xen:else /><xen:if is="in_array({$contentTemplate}, array('forum_list','online_list','news_feed_page_global','conversation_view','member_list','search_results','search_results_users_only','report_view'))">googletag.defineSlot('/803025/Forum-Header_Small-Guests', [468, 60], 'div-gpt-ad-1344102488647-4').addService(googletag.pubads());<xen:else />googletag.defineSlot('/803025/Forum-Header-Guests', [728, 90], 'div-gpt-ad-1344102488647-2').addService(googletag.pubads());</xen:if></xen:if>
<xen:if is="{$visitor.user_id}">googletag.defineSlot('/8035025/Forum-Footer-Members', [728, 90], 'div-gpt-ad-1344102488647-1').addService(googletag.pubads());<xen:else />googletag.defineSlot('/8035025/Forum-Footer-Guests', [728, 90], 'div-gpt-ad-1344102488647-0').addService(googletag.pubads());</xen:if>
<xen:if is="{$contentTemplate} == 'member_view'"><xen:if is="{$visitor.user_id}">googletag.defineSlot('/8035025/Forum-Members_Page-Members', [468, 60], 'div-gpt-ad-1344102488647-7').addService(googletag.pubads());<xen:else />googletag.defineSlot('/8035025/Forum-Members_Page-Guests', [468, 60], 'div-gpt-ad-1344102488647-6').addService(googletag.pubads());</xen:if></xen:if>
<xen:if is="{$contentTemplate} == 'thread_view'"><xen:if is="!{$visitor.user_id}">googletag.defineSlot('/8035025/Forum_Post', [728, 90], 'div-gpt-ad-1344102488647-16').addService(googletag.pubads());</xen:if></xen:if>
This allows me to show different ads to members or guests, and also only makes the call for the ad slot if its on the page thats being loaded.
Is this something I can achieve with IPB, I know I can do it for the members/guests as i've seen the code for that. But are there Conditionals that I can wrap the code in depending whether someone is viewing the home page, forum lists or a thread?
Also is there a list of the conditionals that can be used like what's available over on Xenforo? (http://xenforo.com/c...83/#post-182355)













