Campaigns and codes
This chapter explains the basic structure of your CodeChecker account, in particular
the relation between campaigns and codes.
Campaigns define what you will use your codes for, when they are valid, and
what the codes should look like. The campaign defines all configuration for the
codes - the length, syntax, which charactersets to use, which characters to
exclude. Before you can generate codes, you will need to define at least one
campaign, but you can create as many campaigns as you need.
Usually you can use one campaign for you promotion, which holds all codes.
But sometimes you need to create different sets for different products. You
can create multiple campaigns, which all have a slightly different syntax for
the codes. For example you could create 3 campaigns, where the codes for the
first campaign start with "A", the second with "B" and the third with "C".
Because the campaign defines the configuration for the codes, you can easliy
add new codes to an existing campaign, which will all be unique from the
already existing codes.
All codes in your account (across all campaigns) are unique.
All codes are stored with a campaign to which they belong. Since the campaign
defined the configuration of the code, it is not possible to create a code
that is not associated with a campaign.
A code inherits some properties from the campaign it belongs to, like the date
in which it it valid. A campaign can have a start- and end date, when a campaign
expires all codes in that campaign will no longer be valid.
A code can be "used" as many times as is defined in the campaign. When a code
is used the maximum number of times it is "spent" and can not be used again.