次の方法で共有


How to Create and Use Campaigns in Your Code

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

This topic discusses how to save and retrieve marketing customer, campaign, discount, promotion code, and direct mail information.

To create and access Customer information

  1. You can create a new customer by using the NewCustomer method.

  2. Access customer information by calling the GetCustomer method.

  3. See a complete example that creates a customer (as part of creating a campaign) in topics in Campaign Concepts and Tasks.

To create and access Campaign information

  1. You can create a new campaign by using the NewCampaign method.

  2. Access campaign information by calling theGetCampaign method.

  3. See a complete example that creates a campaign in topics in Campaign Concepts and Tasks.

To create and access Discount information

  1. You can create a new discount by using theNewDiscount method.

  2. Access discount information by calling the GetCampaignItem method.

  3. For an example, see How to Create a Discount.

To use runtime Promotion Code information

To create and access management Advertising information

  1. You can create a new advertisement by using theNewAdvertisement method.

  2. Access advertisement information by calling theGetCampaignItem method.

To use runtime Advertising information

  1. You display advertisements by using the Content Selection Framework (CSF) pipeline classes.

  2. When an advertisement is displayed to a customer and the customer clicks the advertisement, Commerce Server records the click-through in a database through event processing code in the Redir.aspx Web page. For more information, see What Is the Event Processing Pipeline?.

  3. Advertisement goaling influences how often and how many ads are displayed. For more information, see What Is the Difference Between House and Paid Ads?.

  4. For an example, see How to Display Targeted Advertisements.

To create and access Direct Mail information

  1. You can create a new direct mail by using theNewDirectMail method.

  2. Access direct mail information by calling theGetCampaignItem method.

  3. See a complete example that creates a Direct Mail in How to Create a Direct Mail Item.

See Also

Reference

Campaign

CampaignItem