vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Page 1 of 4
1 2 3 4 LastLast
Results 1 to 15 of 56

vBulletin Google Adsense Deep Integration Tutorial

This is a discussion on vBulletin Google Adsense Deep Integration Tutorial within the Ad Networks forums, part of the Monetizing category; This tutorial is written to show you how to use your Google Adsense codes efficiently in your vBulletin (3.5+) templates. ...

  1. #1
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    300

    Post vBulletin Google Adsense Deep Integration Tutorial

    This tutorial is written to show you how to use your Google Adsense codes efficiently in your vBulletin (3.5+) templates. I have a very heavily modified vBulletin style but i used the original style for this tutorial to be simple and match the colors. You can change everything as you want to find the most fitting results for your vBulletin.

    Alternate ads-PSAs to Collapsible ads:

    Collapsing ad units are an optional advanced feature of alternate ads. A+ the collapsing ad unit code will 'collapse' your ad unit so that it takes up no page space if there are no relevant ads available. This allows you to minimize any blank space that would otherwise occur through the use of alternate colors.

    To implement the collapsing ad units feature, you'll need to host a small HTML file on your domain. Your alternate ad URL will reference this file, which will be called if there are no ads available for that particular ad unit.
    http://joomla.medspan.info/forum/index.php/topic,57.0.html

    Create a HTML file with this code and save it as collapsible_ad.html:
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title></title>
    <script src="http://pagead2.googlesyndication.com/pagead/google_adsense_script.js" type="text/javascript"></script>
    </head>
    <body style="background-color: transparent;">
    </body>
    </html> 
    Upload this file to your web server. (http://www.yourwebsite.com/collapsible_ad.html)

    Go to your Google Adsense account and grap your google_ad_client and google_ad_channel codes. (google_ad_channel is optional)

    Open Notepad and paste these codes as you will change them with youradsensecode and yourchannelcode on the following steps.

    We will use these there ad layouts in this tutorial:

    728 x 90 Leaderboard
    468 x 60 Banner
    234 x 60 Half Banner

    ...and one link unit:

    468 x 15

    Note: navbar template editing step is optional because it may be against the Google Adsense rules for you. If you edit navbar template, almost all of your vBulletin pages will have Adsense ads at the top of the pages. My navbar and header templates include some flash, gif and text content and i update them regularly. It's why i use Adsense ads in navbar. You may apply this step (the ad unit) manually to your FORUMHOME, FORUMDISPLAY, etc templates...

    Open your navbar template: vBulletin AdminCP > Styles & Templates > Edit Templates > Navigation / Breadcrumb Templates > navbar

    (for the link unit)

    Find:
    <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
    </if>
    Add below:
    <script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 468;
    google_ad_height = 15;
    google_ad_format = "468x15_0ads_al_s";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "22229C";
    google_color_url = "000000";
    google_color_text = "000000";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    Results:





    (for the ad unit)

    Find:
    <!-- / PAGENAV POPUP -->
    </if>
    Add below:
    <table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    <tr>
    <td class="alt1" align="center">
    &nbsp;<script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "FF0000";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>&nbsp;
    </td>
    </tr>
    </table><br />
    Results:




    Save.



    Open your FORUMDISPLAY template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Display Templates > FORUMDISPLAY

    (First thread)

    Find:
    <if condition="$show['threads']">
    Add below:
    <tr>
    <td align="center" class="alt1">-</td>
    <td align="center" class="alt2">-</td>
    <td class="alt1">
    <div>
    <script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "22229C";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    </td>

    <td class="alt2 smallfont" align="center">Sponsored Links</td>

    <td class="alt1" align="center">-</td>
    <td class="alt2" align="center">-</td>
    <if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

    </tr>
    (Last thread)

    Find:
    <!-- end show threads -->
    Add below:
    <tr>
    <td align="center" class="alt1">-</td>
    <td align="center" class="alt2">-</td>
    <td class="alt1">
    <div>
    <script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "22229C";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    </td>

    <td class="alt2 smallfont" align="center">Sponsored Links</td>

    <td class="alt1" align="center">-</td>
    <td class="alt2" align="center">-</td>
    <if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

    </tr>
    Results:




    Save.

    Adsense below the last thread - vBulletin.org Forum


    Open your search_results template: vBulletin AdminCP > Styles & Templates > Edit Templates > Search Templates > search_results

    (First result)

    Find:
    $searchbits

    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

    <else />
    Add below:
    <tr>
    <td align="center" class="alt1">-</td>
    <td align="center" class="alt2">-</td>
    <td class="alt1">
    <div>
    <script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 234;
    google_ad_height = 60;
    google_ad_format = "234x60_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "22229C";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    </td>

    <td class="alt2 smallfont" align="center">Sponsored Links</td>

    <td class="alt1" align="center">-</td>
    <td class="alt2" align="center">-</td>
    <td class="alt1" align="center">-</td>
    <if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

    </tr>
    (Last result)

    Find:
    </tr>
    $searchbits
    Add below:
    <tr>
    <td align="center" class="alt1">-</td>
    <td align="center" class="alt2">-</td>
    <td class="alt1">
    <div>
    <script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 234;
    google_ad_height = 60;
    google_ad_format = "234x60_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "22229C";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    </td>

    <td class="alt2 smallfont" align="center">Sponsored Links</td>

    <td class="alt1" align="center">-</td>
    <td class="alt2" align="center">-</td>
    <td class="alt1" align="center">-</td>
    <if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>

    </tr>
    Results:




    Save.


    Open your postbit(legacy) template: vBulletin AdminCP > Styles & Templates > Edit Templates > Postbit Templates > postbit(legacy)

    (First post and last shown post)

    Find:
    <!-- / message -->
    Add below:
    <if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
    <center>
    <script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "FF0000";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </center>
    </if>
    Save.
    vBulletin.org Forum - View Single Post - Adsense after first post

    Results:





    vBulletin Google Adsense Deep Integration Tutorial by NeutralizeR @ www.MsXLabs.org
    Original Thread: vBulletin Google Adsense Deep Integration Tutorial - vBulletin.org Forum

  2. #2
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    300

    Re: vBulletin Google Adsense Deep Integration Tutorial

    Some More...

    Open your FORUMHOME template: vBulletin AdminCP > Styles & Templates > Edit Templates > Forum Home Templates > FORUMHOME

    Find:
    <!-- what's going on box -->
    Add above:
    <table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    <tr>
    <td class="alt1" align="center">
    &nbsp;<script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "FF0000";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>&nbsp;
    </td>
    </tr>
    </table>
    Save.

    Open your MEMBERINFO template: vBulletin AdminCP > Styles & Templates > Edit Templates > Member Info Templates > MEMBERINFO

    Find:
    <if condition="$show['signature']">
    Add above:
    <table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    <tr>
    <td class="alt1" align="center">
    &nbsp;<script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "FF0000";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>&nbsp;
    </td>
    </tr>
    </table>
    Save.

    If you have vBadvanced installed:

    Open your adv_portal template: vBulletin AdminCP > Styles & Templates > Edit Templates > vBadvanced CMPS Templates > adv_portal

    Find:
    $footer
    Add above:
    <center><script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "FF0000";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></center>
    Save...

  3. #3
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    300

    Re: vBulletin Google Adsense Deep Integration Tutorial

    If you allow search engines to spider the single versions of your posts (This post, for example... showpost.php), you may want to use adsense ads on this template, too. I think you don't want to miss any possible renevue...

    Open your SHOWTHREAD_SHOWPOST template: vBulletin AdminCP > Styles & Templates > Edit Templates > Show Thread Templates > SHOWTHREAD_SHOWPOST

    Find:

    $postbits
    Add above:
    <table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    <tr>
    <td class="alt1" align="center">
    &nbsp;<script type="text/javascript"><!--
    google_ad_client = "youradsensecode";
    google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="yourchannelcode";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "FF0000";
    google_color_url = "000000";
    google_color_text = "22229C";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>&nbsp;
    </td>
    </tr>
    </table>
    (Or just the <script> section if you don't want the table.)

    You can also add this code after $postbits if you want a second ad unit.

  4. #4
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    300

    Re: vBulletin Google Adsense Deep Integration Tutorial

    RECOMMENDED

    Results:



  5. #5
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Blog Entries
    9

    Re: vBulletin Google Adsense Deep Integration Tutorial

    Wow - very detailed. Great tutorial.

  6. #6
    Senior Member
    Real Name
    Michael
    Join Date
    Oct 2005
    Posts
    1,737
    Blog Entries
    1

    Re: vBulletin Google Adsense Deep Integration Tutorial

    It was so good, he had to tell you twice, LOL

    I integrated most of this a week ago on my ATV forum. The only thing I didn't use was the adsense withing the post itself. I didn't feel right about that. I have a leaderboard right below the last post though, so that is good enough for me.

    I like the adlinks in the navbar. Provides another source of revenue and doesnt look intrusive. I also like the adsense as the first thread. I am doing better with that than I was with the leaderboard below the navbar, and it makes the forum look cleaner in my opninion.

    If conversions continue on this forum, I will begin using this on my other forums.

    Thanks for posting this here!

  7. #7
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    300

    Re: vBulletin Google Adsense Deep Integration Tutorial

    90% of my earnings comes from the navbar ads so i'd suggest you to focus on your navbar template. You'd better move them in a table matching your skin's colors instead of publishing them like they are just 'the advertisements'

    Wish my main website was in English :(

  8. #8
    Junior Member
    Real Name
    AUBERT David
    Join Date
    Jul 2006
    Posts
    6

    Re: vBulletin Google Adsense Deep Integration Tutorial

    Hi all,

    Excellent tutorial.

    I have just add all exemples except the adsense in the first post.

    I will see if results are good in next days...

    Thanks

    David

  9. #9
    Senior Member
    Real Name
    Michael
    Join Date
    Oct 2005
    Posts
    1,737
    Blog Entries
    1

    Re: vBulletin Google Adsense Deep Integration Tutorial

    Quote Originally Posted by NeutralizeR View Post
    90% of my earnings comes from the navbar ads so i'd suggest you to focus on your navbar template. You'd better move them in a table matching your skin's colors instead of publishing them like they are just 'the advertisements'

    Wish my main website was in English :(
    I have been back and forth with that one and have never gotten an improvement by integrating that one into the skin.

  10. #10
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    13,923

    Re: vBulletin Google Adsense Deep Integration Tutorial

    This deserves to be stuck...















    in every monetizer's website

    *made sticky*
    Juan Muriente / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  11. #11
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    300

    Re: vBulletin Google Adsense Deep Integration Tutorial

    Thank you

    I hope it helps people who're running vBulletin with adsense, at least to the newbies.

    I'll update the codes if needed. (works for vb 3.5 and vb 3.6 versions at the moment)

  12. #12
    Senior Member
    Real Name
    Justin
    Join Date
    Jul 2006
    Posts
    354
    Blog Entries
    1
    Hey man! Great tutorial! I was wondering something tho...I think this would be an AWESOME way to generate more revenue!

    View the pic below. Where the red is, could we integrate the 1 line text ads? I'm thinking it will make it look like subforums so people might click them more...your thoughts? It would be nice to only show them on a few forums if possible.
    Attached Thumbnails example.jpg  

  13. #13
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    300
    Quote Originally Posted by jbartle View Post
    Hey man! Great tutorial! I was wondering something tho...I think this would be an AWESOME way to generate more revenue!

    View the pic below. Where the red is, could we integrate the 1 line text ads? I'm thinking it will make it look like subforums so people might click them more...your thoughts? It would be nice to only show them on a few forums if possible.
    Thank you. 1 line text ads? You mean the link units? You can only publish 1 link unit on a page and yes, it's possible to display it on anywhere you want using the if conditionals.

  14. #14
    Senior Member
    Real Name
    Future
    Join Date
    Mar 2006
    Posts
    550
    Blog Entries
    1
    great post but fyi.
    <if condition="$show['threads']"> is not working as described in image, I had to move the code above $threadbits and now it works fine.

    also i have post icons disabled on some of my forums, how do i fix the code to display ads properly in forumdisplays ?
    Last edited by Future; 08-01-2006 at 07:18 PM.

  15. #15
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    300
    Quote Originally Posted by Future View Post
    great post but
    <if condition="$show['threads']"> is not working.
    It should. Make sure you have enough threads in that forum or try viewing other forums. You may not be able to see the google ads without enough content.

LinkBacks (?)

  1. 11-12-2007, 12:21 PM
  2. 03-02-2007, 07:13 PM
  3. 01-31-2007, 06:09 PM
  4. 08-13-2006, 10:22 PM

Similar Threads

  1. vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature!
    By Juan Muriente in forum vBSEO Announcements
    Replies: 74
    Last Post: 05-20-2006, 09:29 PM
  2. Google is All About Search: 4 New Products
    By Joe Ward in forum General Discussion
    Replies: 0
    Last Post: 05-16-2006, 01:52 PM
  3. Replies: 0
    Last Post: 12-17-2005, 01:11 PM