vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Specify Ad Loading Order (https://vborg.vbsupport.ru/showthread.php?t=284336)

Budget101 06-12-2012 01:02 PM

Specify Ad Loading Order
 
Is there a way to specify the loading order of ads in vbulletin? To be more specific, Are there template or div tag changes that can be made to force ads in the middle of the page to load before ads located at the Top of the page?

Thank you in advance for any assistance you can provide!

Jonathan81 07-06-2012 12:33 AM

I'd like to know the answer to this too!

--------------- Added [DATE]1341587715[/DATE] at [TIME]1341587715[/TIME] ---------------

This is direct from Google...but can anyone explain how this can be done on VB?

Make sure that the best performing ad unit (highest CTR) is the first in your HTML code to improve your revenue.

First, you will need to place a DIV tag right below the BODY tag in order to let the browsers know which ad unit goes first in the source code HTML. Note that it doesn't mean that this ad unit will show up first on the page. Here is the code:

<div id=”ad1″>
Insert your ad code here
</div>

Next, insert the CSS code below into the style sheet of your website. Since all sites are different, we recommend that you test attributes (left, right, top, bottom) in order to place your ad unit correctly. Make sure to adjust height/width depending on the ad format.

#ad1 {
width’ : ‘468px;
height: 60px;
position: absolute;
left: 140px;
right: 0px;
bottom: 0px;
top: 350px;
}

If you don't use style sheets, you will need to insert the above code into DIV tags between the HEAD tags in the HTML source code.

<style type=”text/css”>
Insert above css code here
</style>

Jonathan81 07-08-2012 10:08 AM

Anyone?

kh99 07-08-2012 10:48 AM

To make that work, you'd have to determine the absolute positions of your ad locations, then put them in the CSS as shown in the example. I don't know how you do that in general, but you could probably estimate the positions then fine tune them just by looking at the result. Also, you'd have to put your ad code in divs somewhere else in the document (some template other than the ad locations).

I'm not an expert on these things, but I'm not sure what it would accomplish. My understanding is that a browser loads the html, then makes requests for anything else that has to be loaded (javascript, images, etc), but makes a bunch of those requests in parallel. So even if you were to use the above method to control the order in which the ads were requested, I don't think you'd be controlling the order in which they displayed, because the one that loaded the fastest would still show up first.

Jonathan81 07-12-2012 09:30 PM

Quote:

Originally Posted by kh99 (Post 2346020)
I'm not an expert on these things, but I'm not sure what it would accomplish. My understanding is that a browser loads the html, then makes requests for anything else that has to be loaded (javascript, images, etc), but makes a bunch of those requests in parallel. So even if you were to use the above method to control the order in which the ads were requested, I don't think you'd be controlling the order in which they displayed, because the one that loaded the fastest would still show up first.

Thanks for that. According to Google it will make a difference but can anyone else shed more light on the matter? Don't want to go to the trouble of trying to sort this if it's not going to be worth it?

kh99 07-12-2012 11:42 PM

Quote:

Originally Posted by Ral.ly (Post 2347411)
Thanks for that. According to Google it will make a difference but can anyone else shed more light on the matter? Don't want to go to the trouble of trying to sort this if it's not going to be worth it?

Well, now that I read it again it does say this somehow improves your revenue and not that it makes them load any faster or anything. That could be true - I don't know anything about how ad revenue is determined.


All times are GMT. The time now is 08:22 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.01200 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete