![]() |
Google Admanager Integration
1 Attachment(s)
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
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"> 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. |
1 Attachment(s)
Google Admanager > Inventory > Targeting
Targeting Key: usergroup Copy & paste: Code:
1 Targeting Key: script Copy & paste: Code:
index Targeting Key: forum Copy & paste only this forum structure you get here: www.yourforum.com/misc.php?do=admanager Login as administrator |
How to
FAQ Quote:
|
Great work!
|
Quote:
Quote:
|
Great mod! It would be really nice if we could manage more ad locations as well as control forums from the admin cp.
|
Quote:
What do you mean by control forums from admincp? I like feedback and build more options into this mod if I find more ideas :) |
Update :)
8.11.2008 1.1 Improves forum targeting. Forums are now shown in their real names within admanager. It's also taken care of converting forum names to names consisting of characters google allowes. When upgrading please also change headinclude template. Replace old f1, f2, f3 attribute codes with this code. And please update Google Admanager Targeting Key : forum! Code:
<script language="JavaScript"> |
great hack, thanks
|
thorsten, I have a problem.
Let's say I have 1 ad slot, the same one in all my forums. In the forum B I'd like to have the specific banner 1 all the time. 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? Thanks EDIT: Actually no part of the targeting is working, usergroups & script either :-( EDIT2: I have > 100 forums and the names are sometims too long |
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. |
How exactly is the adcode injected? I have a heavily modified forum - how does your script know where to place ads?
|
Quote:
|
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. |
Quote:
#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! |
Quote:
|
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/ 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 |
Quote:
Quote:
It is very important to only import this normalized list of forum names! |
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 |
Has anyone tried this on 3.7?
|
Quote:
|
Here's a stupid question...am I supposed to list the numbers of all the usergroups I have in Targeting Key: usergroup
I'm guessing...yes. |
Quote:
Code:
1 |
If I have other usergroups (and I do), I can enter them in too? Will it work?
|
Quote:
I added your question to FAQ. |
I'm not currently using this mod and this is more out of curiosity than anything else, but would it be possible to allow ad targeting by thread tags - ie an advertiser could target all threads tagged with 'automobile repair' or 'french literature' or . . . anything. Seems to me that could be pretty valuable.
|
Quote:
|
Um this doesent work with 3.8?
|
Quote:
|
I want to include "how many posts has user" in targeting. I need your suggestions for upcoming version 1.3. Google Admanager only has string targeting values, so it does not know that targeting value 5 is less than targeting value 20. So it is not possible to say Google Admanager: Target from 5 to 20 posts. Instead you can only click on "posts: 5,6,7,8,9,10, ..., 20".
What values do you think should we put in this new targeting criteria posts? Quote:
Quote:
|
Okay, this may be a dumb post but here is my situation. I am running google adsens ads right now on my website. Basically I would like all usergroups excluding people who donate and are senior forum members to have the ads. Is this the mod for me? Will it let me speficify which groups will see ads and which will not?
|
Quote:
Anyway, this product may be a bit "overkill" for just target ads to usergroups. You can do that with conditionals. |
Yes the donators are added as additional users to another custom usergroup
|
Quote:
|
Thanks for the answers and quick replies
|
I know it might be a tad off topic....I'm able to get all image ads served from GAM to show up inside actual forum posts. My issue is with text ads. Anybody have any tips or a way to serve them inside posts please ?
|
Quote:
(added to FAQ) |
Quote:
When I use the html output from GAM to show all the ads, only the image ads work within the posts an NOT the text ads ? |
Quote:
|
I have all the ads displaying perfectly when using them within the VB templates. My issue is when I try to include them in a post or announcement. Give it a shot...try posting a standard post and you'll see what I'm saying.
|
All times are GMT. The time now is 05:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|