vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=195234

Google Admanager Integration
by ThorstenA
02 Nov 2008 10:12

2 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
  • address ads to these targets.
    Example: Target all users except moderators in your favorite forums on index and forumdisplay directly in Google Admanager! (see Attachment 88883)
  • 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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.

ThorstenA 02 Nov 2008 20:09

1 Attachment(s)
Google Admanager > Inventory > Targeting

Targeting Key: usergroup
Copy & paste:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Targeting Key: script
Copy & paste:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Targeting Key: forum
Copy & paste only this forum structure you get here:
www.yourforum.com/misc.php?do=admanager Login as administrator

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


ThorstenA 03 Nov 2008 12:11

How to
  • Target Custom Primary Usergroups. To target custom primary usergroups, add their ids on Google Admanager > Inventory > Targeting > Target Key: usergroups.
  • Integration Tips. Place following ad slots and target thousands of forums, usergroups, script combinations
    • ad slot named superbanner on ad_header
    • ad slot named rectangle on ad_navbar
    • ad slot skyscraper on ad_footer


FAQ

Quote:

Originally Posted by abrecher (Post 1742532)
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 ?

For text ads, go to Upload Creatives for and then choose: Creative Type: Rich Media. Then you can enter any html code you want, including text of course. Great to know is, that in "Rich Media" you can also enter another Google Admanager Placement code! That way you can put Google Admanager Adsense Placements in your Creative Types that are trackable within Google Admanager including all its analytic skills!

glorify 04 Nov 2008 00:58

Great work!

ThorstenA 04 Nov 2008 16:18

Quote:

Originally Posted by glorify (Post 1659013)
Great work!

Quote:

Originally Posted by narhot (Post 1659175)
Great work! :up:

Thanks, I am really happy about feedback and will improve this product the more feedback I get. Please click "Install" if you use this product. Thank you https://www.vbulletin.org/forum/external/2011/01/19.gif

abrecher 05 Nov 2008 18:27

Great mod! It would be really nice if we could manage more ad locations as well as control forums from the admin cp.

ThorstenA 05 Nov 2008 19:06

Quote:

Originally Posted by abrecher (Post 1660005)
Great mod! It would be really nice if we could manage more ad locations as well as control forums from the admin cp.

What ad locations do you want to control more? Do you mean by that more scripts? Now we only have index, forumdisplay, showthread. Do you want to control more scripts?

What do you mean by control forums from admincp?

I like feedback and build more options into this mod if I find more ideas :)

ThorstenA 08 Nov 2008 11:46

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!

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


diretur 09 Nov 2008 10:29

great hack, thanks

diretur 09 Nov 2008 14:46

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

ThorstenA 09 Nov 2008 20:00

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.

rob30UK 10 Nov 2008 09:21

How exactly is the adcode injected? I have a heavily modified forum - how does your script know where to place ads?

ThorstenA 10 Nov 2008 09:38

Quote:

Originally Posted by rob30UK (Post 1662815)
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.

rob30UK 10 Nov 2008 11:20

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.

ThorstenA 10 Nov 2008 11:41

Quote:

Originally Posted by rob30UK (Post 1662850)
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!


All times are GMT. The time now is 02:01.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.