ASP Code Frequently Asked Questions

General Notes About Code

The code is designed for dynamic websites, i.e. websites that are able to use server-side code. This may include ASP, ASP, ASP.NET, PERL, Java Server Pages, Server Side Includes etc. Due to the functionality of our system, our code cannot work on static pages and we are unable to accept publishers who do not have dynamic pages.

The ASP Code is designed to work as is on any site and should not need to be modified. A publisher should be able to insert the code into the site, and it should work.
We have noticed a few ASP specific issues which we will address below in a Question and Answer format. If you have any problems getting the code to work on your site, please don't hesitate to ask us; we would like to make the code as robust as possible and to have this FAQ as complete as we can manage.

Sample File

You may download this sample file to your website to test the functionality and layout of the Ads. It will serve sample ads to confirm that your website can use our ad serving code.
Download the file here (Download the zipped file and unzip it to get the test files)  Download Sample Files

ASP Specific Questions


Q:The Line Set oHttp = CreateObject("MSXML2.ServerXMLHTTP") gives an error. What can I do?

A:The MSXML2.ServerXMLHTTP object is best to use in terms of performance, and should work if you install MSXML Version 2 or higher.
MSXML2 is installed automatically with a lot of tools, service packs and the .NET framework.
You can also download the latest version from http://msdn.microsoft.com/XML/XMLDownloads/default.aspx

If you download and install MSXML3 just change the line to:
Set oHttp = CreateObject("MSXML3.ServerXMLHTTP").

You can also try changing the line to any of these objects (in order of preference):
Set oHttp = CreateObject("Microsoft.XMLHTTP")
Set oHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
Set oHttp = CreateObject("WinHttp.WinHttpRequest")