Previous in Contents Next in Contents

RefreshInterval Property

The RefreshInterval property is a Long Variant that specifies 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.

Syntax

AdServerObject.RefreshInterval

Remarks

AdServer periodically updates the database with current information about the number of ad requests or clicks that have been served and retrieves current ad information from the database. The RefreshInterval of the AdServer object represents the number of seconds between these updates.

You can set the refresh interval to any number between 60 and 86400 (which translates to one day). The default interval is 900 seconds.

Note

While database information is being refreshed, AdServer does not log ad requests or clicks. Short refresh intervals raise the probability any given ad request or click won’t be logged. On the other hand, long refresh intervals prevent ad delivery schedules from being adjusted to reflect current ad delivery status. Therefore, a refresh interval between 300 and 900 seconds is recommended.

Example

The following line, added to Global.asa, sets the refresh interval to 5 minutes.

Ad.RefreshInterval = 300

See Also

RefreshSchedule


© 1997-2000 Microsoft Corporation. All rights reserved.