GetBanner Method (AdLib)
GetBanner Method (AdLib)
Retrieves a banner type and HTML code from the advertising server.
Applies To
AdClient Object
Syntax
HTML = AdClient.GetBanner(PageId, PagePositionId, BannerTypeId)
Return Values
Returns a banner HTML code.
Parameters
PageId A Long variable containing page number.
PagePositionId A Long variable containing page position number.
BannerTypeId A Long variable to which the advertising server returns
                  the banner type number.
Remarks
A advertising zone is specified by the parameters PageId and PagePositionId.
Using the GetBanner method on a AdClient object retrieves banner type and HTML code
for the zone.
Example
This example demonstrates the GetBanner method and a AdClient object.
The GetBanner method below returns banner for default advertising zone determined by default page and default page
position.
Dim HTML, AdClient, BannerTypeId
Set AdClient = Server.CreateObject("AdLib.AdClient")
HTML = AdClient.GetBanner(0, 1, BannerTypeId)
Set AdClient = Nothing
See Also
GetBannerEx, GetBannerPageCodeName, IsRunning