How To Insert Flash Banners In Harlan Ad Server

From Gestaltipedia

Jump to: navigation, search

Today we will be walking through the process involved in inserting Flash ads into the Harlan Ad Server and getting those Flash ads onto your Gestalt site. While we are doing this walk through on a Learfield news site, the process will be the same on any Gestalt site.

Step 1) The first thing that we want to do is create a new article, this article can be either a temporary one or one that you keep just to inset and test Flash ads on. After inserting the Flash movie click on the ‘update’ button so the page will be generated.

(The reason for doing this is so we can get the HTML embed code out of the page’s source code later on in this walk through.)

Now that our page has been created we can make any extra tweaks to how the Flash banner is displayed if we need. The most important tags to keep an eye on here are the Horizontal Site and Vertical Size.

Step 2) Now that our page has been created and is displaying our Flash element how we want lets take a look at the page’s source code, the quickest way of doing this is by doing a search for the word “EMBED”, the code surrounding that will be what we are looking for.

(In case you are having a hard time finding the HTML embed code it will be attached to the bottom of this entry.)

Select the embed code then cut and paste this somewhere where you will be able to find it again a little bit later.

Step 3) Now that we have our embed code, lets go back to the main toolkit and select ‘Manage Harlan Ad Banner Server’ from our list of options. This will bring up the ad sever control, click on the brown “ads” button, then press the “Add a new ad” button from the bottom of the page. This will bring us to the ad editor, from here we can fill in the different options for our customer’s ad campaign.

Make sure the check box labeled ‘Active’ is selected, otherwise the ad information will NOT be saved.

Now paste the Flash embed code that you found in Step 2 into the box and click the ‘save’ button.

Step 4) Click on the brown Campaigns button, we are going to tell Harlan how often, and where the ad we just created will be displayed. After you have filled this out click on the “save” button.

Now that we have that information filled out we can go to any page on our site and see the animated banner working.

That’s all there is to it.




HTML Embed Code
This HTML embed code will only work for Learfield's Brownfield site, file paths vary from site to site. It is only here as an example.

<SCRIPT LANGUAGE=JavaScript1.1>
<!--
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i]; 
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
document.write(' ID="http://www.brownfieldnetwork.com/article_images/banner1_bus009.swf" WIDTH="468" HEIGHT="60" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="http://www.brownfieldnetwork.com/article_images/banner1_bus009.swf"> <PARAM NAME=quality VALUE=high> '); 
document.write(' <EMBED src="http://www.brownfieldnetwork.com/article_images/banner1_bus009.swf" quality=high bgcolor=#ffffff  ');
document.write(' swLiveConnect=FALSE WIDTH="468" HEIGHT="60" NAME="D73B4095-5056-B82A-D098991566FF25B7" ALIGN=""');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
} else{
document.write('<img src="http://www.brownfieldnetwork.com" align="" width="468" height="60" alt="">');
}
//-->
</SCRIPT><NOSCRIPT><img src="http://www.brownfieldnetwork.com" align="" width="468" height="60" alt=""></NOSCRIPT>