Celebration, Florida 34747
407-551-0777 Phone

>> Ad Code Types for serving advertisements

What types of code are available for serving banners ads and which is right for me?
In Ban Man Pro 5.0 and higher, the following types of ad code are available.  You must use the code produced by Ban Man Pro in its entirety.  Making modifications is not supported.

You will notice some of the ad tags contain a pageID.  This is simply for enhanced cache defeating in very old browsers (version 3.0) and earlier.  These browsers represented a very tiny share of the market and we don't recommend worrying about modifying this number.

If you are utilizing the companion ads feature, the PageID does become very important.  For the companion feature to work, two different zones on the same page must have the same PageID.  For more information on the companion ads feature click here.

Non-IFRAME JavaScript Code (Highly Recommended) 
Serves any type of banner including rich media.  Use this code if you are serving rollover, expanding, or moving banners that cannot be displayed inside the IFRAME window.  You can also use this code if displaying different sized banners in the same zone.  This code does not support the zone refresh option.


Non-IFRAME JavaScript Code

Can serve rich media ads 
Can serve ads on any server, local or remote 
Defeats browser cache
Encrypted Java Code
This code is identical to the Non-IFRAME Java Code (Highly Recommended) code except all parameters passed in the URL are encrypted to attempt to defeat ad blockers. This code does not support passing keywords or demographics because of the encryption.

Here is a sampling of this code:


Advanced JavaScript Code (Highly Recommended) -- Serves rich media ads and defeats cache.  This zone will refresh every 5 seconds in IFRAME compatible browsers (IE and Netscape 6 or higher).
This code is the most flexible of the browser side codes that we offer.  This code also provides the best performance from a server standpoint in both memory usage and the speed of delivery of ads.  This code is capable of serving up rich media ads.  The browser type is determined using JavaScript on the client side and then determines what type of ad to pull based on the browser.  Be careful when placing this code on your pages as outlined here so that it appears properly in Netscape 3.  This code also defeats the cache all the time when reloading a page, even MOST of the time when clicking back on your browser.  IE browsers may not reload a new image when clicking back.  This code will maximize the number of impressions served by your web site.  This code also supports automatically refreshing and loading a new ad every X seconds in IFRAME compatible browsers. 


Advanced Java Script Code Highlights

Requires a large amount of code 
Must be carefully placed to work with all browsers 
Can serve rich media ads 
Can serve ads on any server, local or remote 
Defeats browser cache rather well 

Here is a sampling of this code:


Non-Cache Defeating Code
Similar to the Advanced JavaScript, this code can serve rich media ads.  The drawback is this code does not defeat the browser cache when clicking back on your browser.   This code is useful if you are dynamically generating your pages and can tag on the random PageID number using code.  Please note that in this code the PageID appears in 4 places.  This code is also useful if you aren't concerned about browser caching.   

Note: This code should also be used in HTML newsletters over the Advanced JavaScript code.  This zone will refresh every 5 seconds in IFRAME compatible browsers (IE and Netscape 6 or higher).


Non Cache Defeating Code Highlights

Does Not defeat cache 
Can serve rich media ads 
Can serve ads on any server, local or remote 
Code is fairly compact 

Here is a sample of this code: control Code
Use this code to display banners using an ASP.NET control (VB.NET).  This code does not support the zone refresh option.  This is probably the most flexible of all the code because all pages are rendered on the server before being sent back to the browser.  The drawback of this code is that you can only serve a web site URL at which Ban Man Pro has been installed.  Another drawback is that this only works from within web pages.

An example of this code is: control Code

Can only serve sites on same server as software 
Can only serve ads on .ASPX pages 
Can serve any type of ads
Code is very compact 
Sponsorship Code
Serves all campaigns in a zone and rotates them up the page with each refresh. Change CountImpressions to False if you do not want to count impressions.  Change Total=0 to the total number of banners to display.  0 will display all banners in the zone.  For example, if you have 8 banners in the zone and only want to display four at-a-time then set Total=4.


Email Newsletter Code
Use this code in email marketing newsletters. This code will ONLY work if your email marketing system supports embedding a unique number or a completely random number that is unique to each and every subscriber. You must replace ##SubscriberID####RND## with the unique variable for your email marketing system. This code serves images only and does not support flash or any other advanced banner. ##SubscriberID####RND## must be numeric. All zones must also be unique if placing multiple sets of ad tags in the same email. If you are using eNewsletter Pro as your email marketing software, please use these two variables in conjunction: ##SubscriberID####RND## to insert both the SubscriberID and a random number.  If you are in the market for email marketing software, please checkout our eNewsletter Pro.

Note: This code can only serve standard image ads and does not support advanced banners such as flash.

Sample code:


Tooltip Ad Code
Use this code to display tooltip ads. Tooltip ads will serve only campaigns of type "Call by Keyword Only" where one or more matching keywords are found within the TEXT content of the web page. When a match is found the text is highlighted. An impression is only counted when a person clicks the highlighted text ad at which time the actual banner ad is shown and an impression is counted. These tags are typically placed between the tags on the web page. The look and feel of the ad can be modified by changing the style sheet called ToolTipStyle.css.  Click here for more information on Tooltip Ads

Sample code:


Copyright 1999-2015, LLC All Rights Reserved