There is only one method for referencing AdRotator objects. GetAdvertisement
The GetAdvertisement method obtains the next advertisement from the Rotator Schedule file. Each time you run a script, such as when a user opens or refreshes a page, this side
The law will obtain an advertisement for the next arrangement.
Grammar
GetAdvertisement (Rotationschedulepath)
Parameters
Rotationschedulepath
Specifies the location of the Rotator Schedule file relative to the virtual directory. For example, if the physical path is C:\Inetpub\Wwwroot\Ads\Adrot.txt (where
Wwwroot is a "/" virtual directory, you should specify a path \ads\adrot.txt.
return value
Returns the HTML that displays advertisements on the current page.
Example
The following example gets the advertisement from the Adrot.txt file, which is located under the/ads/virtual directory.
<% Set Nextad = Server.CreateObject ("MSWC. AdRotator ")%><%= nextad.getadvertisement ("/ads/adrot.txt ")%>