HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback

This includes how to use the API for working with promotions (discounts) as part of a campaign.

Promotions (discounts) are available to end-users under **Marketing** in the Optimizely Customized Commerce user interface. Per definition, a _campaign_ is a container for creating and applying promotions. A _campaign_ is also a content type, supported by the [content model](🔗) in Optimizely.

## The Campaign content type

Components mentioned here are available in the EPiServer.Commerce.Marketing namespace.

Customized Commerce provides one standard campaign type: SalesCampaign. This class is a basic content, which means it does not follow the normal publishing workflow of content. The class has the properties IsActive, ValidFrom, and ValidUntil, which control the status of the campaign.

This class can also restrict a campaign to one or more visitor groups through the property VisitorGroup, which supports the targeting of customer segments. Finally, the sales campaign has a RevenueGoal.

### Use render templates

Campaign content uses normal rendering templates as described here. By default, only partial views are available for campaign content. To enable campaigns and pages, please see below.

**Example:** The corresponding rendering view for displaying the campaign partial view.

**Example:** The corresponding rendering view for displaying the campaign page view.

### Campaign content as pages

**Related blog post:** [Filter your commerce campaigns for access](🔗) by Jeroen Stemerdink