For information about how to target page groups for advertisements, the Commerce Server online books refer you to the Ad Sitelet sample:
"Before you can target an ad to a page group, your site developer must ad-enable the page. To ad-enable a page, see the Ad Sitelet sample in the Commerce Server 2000 Software Development Kit."
To ad-enable pages means to define how the
GetAdContent function is called. The GetAdContent function is in the site code (not in the documentation) at the following location:
\Inetpub\wwwroot\adsitelet\include\advertlib.asp
The first parameter of the GetAdContent function is empty; the second parameter controls which page groups are used:
set 1stAds = GetAdContent(empty, page_group_name, 1)
Adding Page Groups
You use page groups to specify the pages on which your ads appear on your Web site. Using page groups, you can place targeted ads on all pages of your commerce site, or on only one particular page if you want. For example, a News site might have a Sports page group to which you would target sports-related ads. Additionally, you can charge advertisers different rates based on the page group on which they advertise. Page groups are validated using the Page Groups section in the Reference Tables module.
The page groups in the reference tables are available when you select the page on which you want a campaign item to appear. After the page group that is used by the campaign item is validated against the Page Group property, the campaign item can be put into production. You can view a list of all current page groups, you can add new page groups, edit page groups, and delete page groups from the Page Group section in the Reference Tables module.