previous next

Ad Serving with RealSystem G2

This technical blueprint describes how to set up RealServer G2 ad serving, which lets you dynamically add a streaming advertisement to a requested media clip. Offering integration with any HTML-based ad serving system, the RealServer ad serving feature uses SMIL (Synchronized Multimedia Integration Language) to lay out ad content with requested content in RealPlayer. To set up ad serving, you should be familiar with:

Ad Serving Features at a Glance

How Ad Serving Works

RealServer requires no special programming to integrate with popular ad serving systems. Ad servers are designed to place ad URLs in requested Web pages. To get an ad from an ad server, RealServer simply requests a Web page integrated with that server. When it receives the returned page, it extracts the ad's file URL and hypertext link URL. RealServer then incorporates these URLs into the SMIL presentation requested by RealPlayer. With this method, any ad server designed for HTML pages can serve ads to the SMIL-based RealPlayer.

Additional Information
See "Ad Target HTML Page" for more on the HTML file where RealServer gets ad URLs.

RealServer offers several options for ad serving. The simplest is its rotating banner ad feature. With rotating banner ads, RealServer sends RealPlayer a new GIF, animated GIF, or JPEG ad at regular intervals. To use this feature, you simply create a SMIL file that lays out a banner ad region along with the requested clip. The SMIL <img.../> source tag for this ad region then identifies the clip as a rotating banner ad rather than a static image. Options you include with the source tag tell RealServer where to get the ad URLs, how often to rotate ads, the bit rate for ad streaming, and so on.

Additional Information
See "Rotating Banner Ads" for information on setting up ad banner rotation.

In addition to rotating banner ads, you can use general ad serving to deliver single banner ads or rich media ads. With general ad serving, you create a SMIL file that includes one or more regions for ads. Instead of ad URLs, the SMIL file contains one or more <RealAdInsert/> tags that RealServer expands into unique ad URLs when RealPlayer requests the file.

Additional Information
"General Ad Serving" explains how to set up general ad serving.

Although general ad serving can deliver standard banner ads, its power lies in its ability to deliver rich media ads in formats such as RealAudio, RealVideo, and RealFlash. The delivery mechanism for rich media ad URLs is the same as for image ad URLs: the ad server places URLs in an HTML page requested by RealServer. The only difference is that these ad URLs are for RTSP-streamed clips on a RealServer host, rather than for HTTP-downloaded image files on an ad server.

Additional Information
See "Rich Media Ads" for more information.

General ad serving uses SMIL to lay out ads along with requested clips in RealPlayer. With the SMIL generation feature, you can automatically create SMIL files for requests to stand-alone clips. This lets you serve ads without having to write SMIL files by hand. This feature is useful if you have a large collection of existing clips for which you want to include ads.

Additional Information
See "Automatic SMIL Generation" for more information.

Ad Serving Plug-Ins

The following table lists the RealServer G2 plug-ins used with ad serving. These components are either included with the standard RealSystem G2 software or installed with the ad serving package in RealServer's plugins directory. For more on plug-ins, see RealServer Administration Guide.

RealServer Ad Serving Components
Plug-in Win32 Name UNIX Name Short Name
Ad Insertion Plug-in adta3260.dll adtagrep.so.6.0 rn-adtaghandler
HTTP File System Plug-in http3260.dll httpfsys.so.6.0 pn-http
RealPix Ad File Format Plug-in pxad3260.dll pxadsvff.so.6.0 n/a
Shell File System Plug-in shel3260.dll shelfsys.so.6.0 pn-shell
SMIL Generation Plug-in smlg3260.dll smlgenfs.so.6.0 pn-smilgen
Tag Handler Plug-in tagf3260.dll tagfsys.so.6.0 pn-xmltag

Ad Insertion Plug-in

This plug-in receives SMIL files with <RealAdInsert/> tags and requests a target HTML page to get an ad URL. It parses the page and places the ad URL in the SMIL file. It then passes the SMIL file to RealServer for delivery to RealPlayer.

HTTP File System Plug-in

This standard RealServer plug-in manages the server's HTTP connections. It allows the ad insertion plug-in to communicate with a Web server to request a target HTML page that contains an ad URL.

RealPix Ad File Format Plug-in

This plug-in creates the RealServer streams for rotating banner ads. It handles requests for RealPix Ad files, which use the file extension .rpa.

Shell File System Plug-in

This is a general purpose plug-in used to generate rotating banner ads. Within a SMIL presentation, requests for rotating banner ads include URLs with this plug-in's mount point.

SMIL Generation Plug-in

For a requested media clip, this plug-in generates a SMIL file that includes a <RealAdInsert/> tag. It creates all the SMIL mark-up needed to lay out and time the clip and ad combination. RealServer passes a request to this plug-in when the request includes the plug-in's designated mount point.

Tag Handler Plug-in

Used with several RealSystem features, the RealServer tag handler plug-in either expands tag placeholders in server-side files, or passes the files to other plug-ins for handling. For ad serving, it parses the generated SMIL file and recognizes <RealAdInsert/> as an ad inclusion tag, passing the SMIL file to the ad insertion plug-in.


Copyright © 1999 RealNetworks
For information on RealNetworks' technical support, click here.
Comments on this document? Click here.
This file last updated on 05/03/99 at 17:33:29.
previous next