Ad Server Programmer’s Reference

The AdServer object manages the delivery of advertisements to dynamically built web pages. The AdServer object serves as a link between script in an ASP page and the advertisement delivery database and Internet Information Server log file, handling all advertisement delivery, database updates, and event recording.

The AdServer object supports the following properties

Property Description
Application A name used to distinguish separate instances of the AdServer object in error messages in the NT Event Viewer.
ConnectionString The connection string to be used when the AdServer object connects and authenticates itself to the AdServer database.
DefaultAd The HTML text sent as the default when no appropriate advertisement can be determined
DesignMode A Boolean Variant. If True, the AdServer object returns an error message when the GetAd method cannot determine an appropriate advertisement to return. If false, the method displays the default ad in this case.
RedirectURL The URL of the redirecting ASP file, which logs the click event and redirects the user’s browser to the destination page.
RefreshInterval The number of seconds that the AdServer object waits before connecting to the database to post its delivered advertisements and receive updated delivery schedule information.
RetryInterval Specifies the number of seconds that the AdServer object waits between attempts to reconnect with the ad database if the connection fails.

The AdServer object supports the following methods.

Method Description
DumpSchedule Returns a table, in HTML format, of the current advertisement delivery schedule of the local instance of the AdServer object.
GetAd Selects the most appropriate advertisement and returns HTML text that can be inserted into the calling page.
RecordEvent Logs both ad requests and clicks to the Internet Information Server's log.
RefreshSchedule Connects the AdServer object to the database immediately, and receives updated delivery information.


© 1997-1998 Microsoft Corporation. All rights reserved.