vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adsense ID Pre-Coded into VB? (https://vborg.vbsupport.ru/showthread.php?t=202274)

007 01-18-2009 09:06 PM

Adsense ID Pre-Coded into VB?
 
I was looking at init.php and noticed towards the top:

PHP Code:

// Add AdSense if present
$vbulletin->adsense_pub_id '';
$vbulletin->adsense_host_id 'pub-2606800903002383'

What's the adsense host and why is this even in this file?

SEOvB 01-18-2009 09:22 PM

You integrated your adsense ID with your vBulletin account at vbulletin.com/members

If that isn't your publisher ID then there are some issues obvisously. If it is your ID, its from following their adsense integration tutorial.

Taragon 01-18-2009 09:36 PM

adsense_host_id is vbulletin.com's host id
if you haven't integrated adsense at vbulletin.com adsense_pub_id should be empty and adsense_host_id is just a placeholder.

feel free to remove both lines though

Edit: personally I would avoid using it (for now), especially at an established board.

Dismounted 01-19-2009 03:16 AM

That code is used for the vBulletin AdSense Integration now available in v3.8.0. Those lines are there even if you do not have the integration enabled. You will notice the publisher ID variable is empty, which means you have not enabled the integration. The host ID represents Jelsoft/IB and is not used unless the integration is enabled.

SEOvB 01-19-2009 03:58 AM

Quote:

Originally Posted by Dismounted (Post 1717421)
That code is used for the vBulletin AdSense Integration now available in v3.8.0. Those lines are there even if you do not have the integration enabled. You will notice the publisher ID variable is empty, which means you have not enabled the integration. The host ID represents Jelsoft/IB and is not used unless the integration is enabled.

Hmm, interesting. Anyone know why Jelsoft's ID would need to be there, or is that a question for vBulletin.com?

Dismounted 01-19-2009 04:22 AM

Jelsoft's ID needs to be there otherwise Google doesn't know that the specific ad is associated with Jelsoft.

Andreas 01-19-2009 04:22 AM

It does not need to be there if the integration is not enabled - it's there for simplicity reasons (as stated somewhere on vbulletin.com) because the build system was not designed to conditionally put in code (as it would be necessary in this case).

SEOvB 01-19-2009 05:55 AM

Quote:

Originally Posted by Andreas (Post 1717466)
It does not need to be there if the integration is not enabled - it's there for simplicity reasons (as stated somewhere on vbulletin.com) because the build system was not designed to conditionally put in code (as it would be necessary in this case).

Thanks for the explanation, saved a trip to vB.com :up:

007 01-19-2009 05:49 PM

What is the benefit of integration anyway? I mean, I'm not an idiot when it comes to pasting Google Adsense code. I already have it in several places and have had it since the early 2.x days of VB and it's always been fine..

lasto 01-19-2009 06:20 PM

does jelsoft get some of your advertising revenue ?
As i dont see why they would need to be part of your adsence account


All times are GMT. The time now is 07:11 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
  • Page Generation 0.01053 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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