ThorstenA
04-22-2010, 10:00 PM
Google Admanager Integration
Works on vbulletin 4, but for the forum targeting it only works with the forums you already put in Google Admanager (Doubleclick for Publishers).
Ported from vbulletin 3.x Google Admanager Integration (https://vborg.vbsupport.ru/showthread.php?t=195234)
Installation instruction
Add this to the end of headinclude template
<script type="text/javascript" src="http://partner.googleadservices.com/gampad/google_service.js"></script>
<script type="text/javascript">GS_googleAddAdSenseService("ca-pub-your number"); GS_googleEnableAllServices();</script>
<script type="text/javascript">
GA_googleAddAttr("usergroup", "{vb:raw bbuserinfo[usergroupid]}");
GA_googleAddAttr("script", "<vb:if condition="THIS_SCRIPT =='index'">index</vb:if><vb:if condition="THIS_SCRIPT =='forumdisplay'">forumdisplay</vb:if><vb:if condition="THIS_SCRIPT =='showthread'">showthread</vb:if><vb:if condition="THIS_SCRIPT =='login'">login</vb:if><vb:if condition="THIS_SCRIPT =='newthread'">newthread</vb:if><vb:if condition="THIS_SCRIPT =='newreply'">newreply</vb:if>");
<vb:if condition="THIS_SCRIPT == 'index'">GA_googleAddAttr("Forum", "index");<vb:else /> {vb:raw admanagerforums}</vb:if>
<vb:if condition="$postlevel">GA_googleAddAttr("p", "{vb:raw postlevel}");</vb:if>
your ad slots
GA_googleFetchAds();</script>
Works on vbulletin 4, but for the forum targeting it only works with the forums you already put in Google Admanager (Doubleclick for Publishers).
Ported from vbulletin 3.x Google Admanager Integration (https://vborg.vbsupport.ru/showthread.php?t=195234)
Installation instruction
Add this to the end of headinclude template
<script type="text/javascript" src="http://partner.googleadservices.com/gampad/google_service.js"></script>
<script type="text/javascript">GS_googleAddAdSenseService("ca-pub-your number"); GS_googleEnableAllServices();</script>
<script type="text/javascript">
GA_googleAddAttr("usergroup", "{vb:raw bbuserinfo[usergroupid]}");
GA_googleAddAttr("script", "<vb:if condition="THIS_SCRIPT =='index'">index</vb:if><vb:if condition="THIS_SCRIPT =='forumdisplay'">forumdisplay</vb:if><vb:if condition="THIS_SCRIPT =='showthread'">showthread</vb:if><vb:if condition="THIS_SCRIPT =='login'">login</vb:if><vb:if condition="THIS_SCRIPT =='newthread'">newthread</vb:if><vb:if condition="THIS_SCRIPT =='newreply'">newreply</vb:if>");
<vb:if condition="THIS_SCRIPT == 'index'">GA_googleAddAttr("Forum", "index");<vb:else /> {vb:raw admanagerforums}</vb:if>
<vb:if condition="$postlevel">GA_googleAddAttr("p", "{vb:raw postlevel}");</vb:if>
your ad slots
GA_googleFetchAds();</script>