Back to vBulletin 4.x Add-ons

Google Doubleclick For Publishers (DFP) Integration
Mod Version: 1.00, by ThorstenA

vB Version: 4.0.x Rating: (1 vote - 5.00 average) Installs: 13
Released: 23 Apr 2010 Last Update: 23 Apr 2010 Downloads: 74
Not Supported Uses Plugins Template Edits Re-usable Code  

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

Installation instruction
Add this to the end of headinclude template
Code:
<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>

Download

File Type: %1$s product-admanageri.xml (4.4 KB, 77 downloads)


vblts.ru supports vBulletin®, 2022-2024