Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Google Admanager Integration Details »»
Google Admanager Integration
Version: 1.2, by ThorstenA ThorstenA is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.x Rating:
Released: 11-01-2008 Last Update: 11-08-2008 Installs: 40
Uses Plugins Template Edits
Re-useable Code Translations  
No support by the author.

Notice: This mod uses Re-usable Code, so please feel free to port it to vbulletin 4 under your username. Thanks.

Google Admanager Integration

This product targets ads to usergroup, script, forum. That way you can
  • address ads to these targets.
    Example: Target all users except moderators in your favorite forums on index and forumdisplay directly in Google Admanager! (see admanager.jpg)
  • Adsense Advanced Statistics. Have a detailed view which usergroups, scripts, forums bring best adsense results. You have a detailed view about all targeting values.
    Example: You see that your announcement forum has a CTR of 8% and an eCPM of 25 $. Unregistered users bring an eCPM of 15 $ while registered users only have an eCPM of 3 $.
By the way a maximum of 6 adsense ads are allowed, when using Google Adsense in combination with Google Admanager.

1. Install product
If you upgrade: Allow Overwrite: Yes

2. Change template headinclude
If you upgrade please also do this. Add to end of this template:
Code:
<script type="text/javascript" src="http://partner.googleadservices.com/gampad/google_service.js">
</script>
<script type="text/javascript">
  GS_googleAddAdSenseService("YOUR CA-PUB");
  GS_googleEnableAllServices();
</script>
<script language="JavaScript">
  GA_googleAddAttr("usergroup", "$bbuserinfo[usergroupid]");
  GA_googleAddAttr("script", "<if condition="THIS_SCRIPT =='index'">index</if><if condition="THIS_SCRIPT =='forumdisplay'">forumdisplay</if><if condition="THIS_SCRIPT =='showthread'">showthread</if>");
$admanagerforums
</script> 
YOUR ADDSLOTS
<script type="text/javascript">
  GA_googleFetchAds();
</script>
3. Google Admanager Configuration
Configure Admanager like I write in #2 post in this topic.

Version History
9.11.2008 1.2 Solved a bug for forum targeting
8.11.2008 1.1 Improved forum targeting. Forums are shown with real names. Unlimited forum levels supported.
1.11.2008 1.0 Forums are targeted by using forumids. 3 forum levels supported.

Works with vbulletin 3.5, 3.6, 3.7, 3.8. This product works perfectly with vbSEO. This product doesn't make the vBulletin 3.8 implementation of Adsense work with admanager.

Download Now

File Type: xml product-admanageri.xml (3.6 KB, 239 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-09-2008, 07:00 PM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have updated this product:

9.11.2008 1.2 Solved a bug for forum targeting. If you upgrade, install product (overwrite: yes) and update headinclude template. Thanks.

I hope this helps adressing forum targeting error. Long forum names are no problem as long as there are no two forum names that have same name after normalization. Google Admanager allows you to have up to 200 values per targeting criteria. You can just put the forums within admanager you like to track.

Targeting usergroup and script works fine for me. Please note, that it takes up some really long time for admanager to adjusts custom targeting criterias.
Reply With Quote
  #13  
Old 11-10-2008, 08:21 AM
rob30UK rob30UK is offline
 
Join Date: Oct 2005
Location: UK
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How exactly is the adcode injected? I have a heavily modified forum - how does your script know where to place ads?
Reply With Quote
  #14  
Old 11-10-2008, 08:38 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob30UK View Post
How exactly is the adcode injected? I have a heavily modified forum - how does your script know where to place ads?
Google Admanager knows about targeting criterias from your modified headinclude template (step 2 of product installation).
  • Usergroups are fetched by $bbuserinfo[usergroup]
  • Script name is fetched by THIS_SCRIPT
  • forum names are fetched by product which fetches actual forum title and all parentforum titles via $foruminfo[parentlist]. It also normalizes all titles to match google target value criterias.
Reply With Quote
  #15  
Old 11-10-2008, 10:20 AM
rob30UK rob30UK is offline
 
Join Date: Oct 2005
Location: UK
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Thorsten, this wasnt really my question but thanks al the same.

I know how the adcode is targetted, but how does the script know WHERE in the page to place the ads.

Parts of my header are not definined in the header tempate. Parts of my navigation system are not defined in navbar template.... do you see what I am getting at here?

Surely there needs to be some token or script in the exact place where you want the ads to appear??

Maybe I am missing something here, who knows.
Reply With Quote
  #16  
Old 11-10-2008, 10:41 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob30UK View Post
Hi Thorsten, this wasnt really my question but thanks al the same.

I know how the adcode is targetted, but how does the script know WHERE in the page to place the ads.

Parts of my header are not definined in the header tempate. Parts of my navigation system are not defined in navbar template.... do you see what I am getting at here?

Surely there needs to be some token or script in the exact place where you want the ads to appear??

Maybe I am missing something here, who knows.
#1 You must put your adslots in template headinclude.
#2 You must put admanagers adcode in your page where it should appear.

Please note that you must do #1 and #2 to display ads for admanager. Regardeless if you use my mod or not.

My mod only takes care of targeting criterias. As these criterias are displayed on headinclude, and headinclude is always fetched within header, all sites that are delivered from vbulletin have this mods targeting criteria included.

Usergroup and Script are global values, so its no problem to put them in headinclude. Names of forums are not standard and therefore I have written this mod, which fetches them each time a site is presented. Hope I could answer your questions, if you have more questions, please ask!
Reply With Quote
  #17  
Old 11-13-2008, 01:53 PM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by diretur View Post
I targeted banner 2, 3 and 4 putting "forums not equal to B". Still they do appear in forum B and banner 1 doesn't. What am I doing wrong?
Update. After waiting some time forum targeting finally works. Google Admanager takes really long time for custom targeting. After waiting for some days I can check my inventory with custom forum targeting.
Reply With Quote
  #18  
Old 11-14-2008, 09:41 PM
Rik Brown's Avatar
Rik Brown Rik Brown is offline
 
Join Date: Nov 2005
Location: St. Louis, Missouri, USA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this mod. I've just installed it and am wondering if anything needs adjusting for those of us running vbSEO?

For example, vbSEO rewrites forum names to this format...

Code:
http://[my domain].com/cars-automobiles-forum/
... where words are separated by a dash rather than an underscore.

I assume that you are doing your magic before vbSEO rewrites the URL (I haven't noticed any changes yet, but I've just installed). Or, should I rewrite the forum names using dashes before entering them into Google Admanager?

Please advise.

Thanks again. -- Rik
Reply With Quote
  #19  
Old 11-15-2008, 06:57 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rik Brown View Post
Thank you for this mod. I've just installed it and am wondering if anything needs adjusting for those of us running vbSEO?
This mod works perfectly with vbSEO on my own forums. This mod takes original forum names for its own from vbulletin and changes its names to apply with google name rules. (Google only allowes for example a maximum of 40 characters which are only allowed to be alphanumerical).

Quote:
Originally Posted by Rik Brown View Post
Or, should I rewrite the forum names using dashes before entering them into Google Admanager?
As these normalized google admanager targeting forum names are of course different from original forum names I have programmed a small script (see post #2) that gives you this normalized list which you just have to copy&paste to admanager.

It is very important to only import this normalized list of forum names!
Reply With Quote
  #20  
Old 11-15-2008, 04:18 PM
Rik Brown's Avatar
Rik Brown Rik Brown is offline
 
Join Date: Nov 2005
Location: St. Louis, Missouri, USA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your reply. I'm glad no adjustments must be made for vbSEO.

I'm looking forward to seeing targeting results.

Thank again. -- Rik
Reply With Quote
  #21  
Old 11-19-2008, 01:04 AM
djwins djwins is offline
 
Join Date: Jan 2005
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone tried this on 3.7?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04762 seconds
  • Memory Usage 2,341KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete