vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - Google Admanager Integration (https://vborg.vbsupport.ru/showthread.php?t=195234)

ThorstenA 11-01-2008 10:00 PM

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
  • 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:
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.

ThorstenA 11-02-2008 07:09 PM

1 Attachment(s)
Google Admanager > Inventory > Targeting

Targeting Key: usergroup
Copy & paste:
Code:

1
2
3
4
5
6


Targeting Key: script
Copy & paste:
Code:

index
showthread
forumdisplay


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

ThorstenA 11-03-2008 11:11 AM

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 11-03-2008 11:58 PM

Great work!

ThorstenA 11-04-2008 03:18 PM

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://vborg.vbsupport.ru/external/2011/01/19.gif

abrecher 11-05-2008 05:27 PM

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

ThorstenA 11-05-2008 06:06 PM

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 11-08-2008 10:46 AM

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">
  GA_googleAddAttr("forum", $admanagerforums);
</script>


diretur 11-09-2008 09:29 AM

great hack, thanks

diretur 11-09-2008 01:46 PM

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


All times are GMT. The time now is 01:43 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.01199 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete