Set up promotional campaigns
After you integrate the store into the game, you can set up coupons, promo codes, bonuses, or discount promotions to attract new users and increase sales.
You can also run personalized promotions, that is, set up campaigns for the specific users. You can set the number of items available to the user for the promotion. This is only possible for promotional campaigns with discounts and promotional campaigns with bonuses.
If you have been integrated with the Login product already, do these before setting up personalized promotions for users:
- Set up user attributes for your project.
- Set user attributes schema in the Login section.
Attributes are user features that are stored as key-value pairs. With the help of the attributes you can:
- segment users
- prepare personal storefronts for each group of users in your Web Shop.
To ensure the integrity of transmitted data, you can set attribute validation rules in JSON Schema format in Publisher Account, and manage user attributes using Login API methods or webhooks. You can also edit the attributes values in your Publisher Account. For more information, refer to How-to set up user attributes.
Coupons have codes that grant free items without any purchase or shopping cart. To use a coupon, a user should enter the code in the game, website, or mobile application. The linked reward is then delivered to the user’s inventory. Rewards can include:
See the Coupons section for more information about coupons.Promo codes apply a discount to the shopping cart or add free items to the cart during checkout. After activating the promo code and paying for the items in the cart, the user can receive one of the following rewards:
- a discount that applies to the user’s cart
- bonus items:
- virtual currency package
- virtual item including a bundle or time-limited items
Users can also receive a bonus when buying promotional items. Bonuses can include:
- virtual currency package
- virtual item including a bundle or time-limited items
A discount promotion allows you to set up a discount on one or more products. An unlimited number of promotions can be applied to one product. Discounts are not cumulative, but are applied to the cost of individual item. Discounts can apply to one or several of the following items:
- virtual currency package
- virtual item including time-limited items
Promotional campaign with coupons
To start a promotional campaign with coupons:
- Set up a promotional campaign with coupons.
- Use the methods of coupon redemption by code.
- Use the methods of getting a coupon reward.
Set up a promotional campaign with coupons
- Open your project in Publisher Account.
- Click Store in the side menu and go to Promotions and rewards.
- Click Create promotion.
- Specify the following parameters:
- Enter the promotion title.
- Choose Coupons as the promotion type.
- Choose the reward that the user receives when they redeem a coupon. Available options:
- Virtual currency package
- Virtual item (one or several, including bundles and time-limited items).
- Add:
- Promotional identifier in External ID.
- Bonus items that the user receives when they redeem a coupon.
- Item’s type and amount.
- Click Next.
- Specify the total number of redemptions and the number of redemptions per user.
- Set the campaign start and end dates.
- Click Next.
- Check the settings and click Save and exit.
- Click Store in the side menu and go to Promotions and rewards.
- Select the promotion, click the ••• menu button to open a menu and click Edit promotion.
- Go to the Codes tab.
- Specify how coupons are generated.
- Generate the coupon code or enter it manually.
- Activate the promotion.
Redeem a coupon by code
Implement the call of the is_selectable
parameter value in the
- If
is_selectable=true
, you should pass theselected_unit_items
object in the following format when calling theRedeem coupon code method:
- http
selected_unit_items:{
unit_1_sku: "selected_unit_item_sku",
unit_2_sku: "selected_unit_item_sku"
}
Example of the response:
- http
{
{
"items": [
{
"sku": "xsollus_gold_edition_steam",
"name": "Xsollus: Gold Edition (steam)",
"type": "game_key",
"description": null,
"image_url": "https:\/\/cdn3.xsolla.com\/img\/misc\/images\/9541470622d96a821a9a11ea7763ea4c.png",
"attributes": [],
"is_free": true,
"groups": [],
"price": null,
"virtual_prices": [],
"drm_name": "Steam",
"drm_sku": "steam",
"has_keys": false,
"is_pre_order": true,
"release_date": null,
"quantity": 1
},
{
"sku": "xsollus_bonus_pack_edition_origin",
"name": "Xsollus: Bonus Pack (origin)",
"type": "game_key",
"description": null,
"image_url": "https:\/\/cdn3.xsolla.com\/img\/misc\/images\/aa2efd78dfd4e5dda5293f8c8e49af6d.png",
"attributes": [],
"is_free": true,
"groups": [],
"price": null,
"virtual_prices": [],
"drm_name": "Origin",
"drm_sku": "origin",
"has_keys": false,
"is_pre_order": true,
"release_date": null,
"quantity": 3
}
]
}
- If
is_selectable=false
, you shouldn’t pass additional parameters in the request.
Get coupon rewards
Implement the call of the is_selectable
parameter value in the response, there are 2 possible flows:
- If the
is_selectable=true
value, you should show the form for choosing elements from theunit_items
object for everyitem
withtype=unit
element. In this form, the user chooses only one element for eachunit
type.
- http
{
"bonus": [{
"item": {
"sku": "xsollus_gold_edition",
"name": "Xsollus: Gold Edition",
"type": "unit",
"description": null,
"image_url": "https:\/\/cdn3.xsolla.com\/img\/misc\/images\/9541470622d96a821a9a11ea7763ea4c.png",
"unit_items": [{
"sku": "xsollus_gold_edition_steam",
"name": "Xsollus: Gold Edition (steam)",
"type": "game_key",
"drm_name": "Steam",
"drm_sku": "steam"
}, {
"sku": "xsollus_gold_edition_playstation",
"name": "Xsollus: Gold Edition (playstation)",
"type": "game_key",
"drm_name": "Playstation",
"drm_sku": "playstation"
}, {
"sku": "xsollus_gold_edition_xbox",
"name": "Xsollus: Gold Edition (xbox)",
"type": "game_key",
"drm_name": "XBox",
"drm_sku": "xbox"
}, {
"sku": "xsollus_gold_edition_rockstar",
"name": "Xsollus: Gold Edition (rockstar)",
"type": "game_key",
"drm_name": "Rockstar Games Launcher",
"drm_sku": "rockstar"
}]
},
"quantity": 1
}, {
"item": {
"sku": "xsollus_bonus_pack_edition",
"name": "Xsollus: Bonus Pack",
"type": "unit",
"description": null,
"image_url": "https:\/\/cdn3.xsolla.com\/img\/misc\/images\/aa2efd78dfd4e5dda5293f8c8e49af6d.png",
"unit_items": [{
"sku": "xsollus_bonus_pack_edition_steam",
"name": "Xsollus: Bonus Pack (steam)",
"type": "game_key",
"drm_name": "Steam",
"drm_sku": "steam"
}, {
"sku": "xsollus_bonus_pack_edition_playstation",
"name": "Xsollus: Bonus Pack (playstation)",
"type": "game_key",
"drm_name": "Playstation",
"drm_sku": "playstation"
}, {
"sku": "xsollus_bonus_pack_edition_xbox",
"name": "Xsollus: Bonus Pack (xbox)",
"type": "game_key",
"drm_name": "XBox",
"drm_sku": "xbox"
}]
},
"quantity": 3
}],
"is_selectable": true
- If
is_selectable=false
, you shouldn’t pass additional parameters in the request.
Promotional campaign with promo codes
To start a promotional campaign with promo codes:
- Set up a promotional campaign with promo codes.
- Implement the methods of promo code redemption.
- Implement the method of getting a promo code reward.
Set up a promotional campaign with promo codes
- Open your project in Publisher Account.
- Click Store in the side menu and go to Promotions and rewards.
- Click Create promotion.
- Specify the following parameters:
- Enter the promotion title.
- Choose Promo code as the promotion type.
- Choose what the user receives when they redeem a promo code: no reward, discount on all items in the cart, discount on specific items, bonus items, or a combination.
- Set the discount amount.
- Click Next.
- Specify the total number of redemptions and the number of redemptions per user.
- Click Next.
- Set the campaign start and end dates.
- Click Next.
- Check the settings and click Save and exit.
- Click Store in the side menu and go to Promotions and rewards.
- Select the promotion, click the ••• menu button to open a menu and click Edit promotion.
- Go to the Codes tab.
- Specify how promo codes are generated.
- Generate the promo code or enter it manually.
- Activate the promotion.
Redeem a promo code
Implement the call of the is_selectable
parameter value, there are 2 possible flows in the
- If
is_selectable=true
, you should pass theselected_unit_items
object in the following format when calling theRedeem promo code method:
- http
selected_unit_items:{
unit_1_sku: "selected_unit_item_sku",
unit_2_sku: "selected_unit_item_sku"
}
Example of the response:
- http
{
{
"items": [
{
"sku": "xsollus_gold_edition_steam",
"name": "Xsollus: Gold Edition (steam)",
"type": "game_key",
"description": null,
"image_url": "https:\/\/cdn3.xsolla.com\/img\/misc\/images\/9541470622d96a821a9a11ea7763ea4c.png",
"attributes": [],
"is_free": true,
"groups": [],
"price": null,
"virtual_prices": [],
"drm_name": "Steam",
"drm_sku": "steam",
"has_keys": false,
"is_pre_order": true,
"release_date": null,
"quantity": 1
},
{
"sku": "xsollus_bonus_pack_edition_origin",
"name": "Xsollus: Bonus Pack (origin)",
"type": "game_key",
"description": null,
"image_url": "https:\/\/cdn3.xsolla.com\/img\/misc\/images\/aa2efd78dfd4e5dda5293f8c8e49af6d.png",
"attributes": [],
"is_free": true,
"groups": [],
"price": null,
"virtual_prices": [],
"drm_name": "Origin",
"drm_sku": "origin",
"has_keys": false,
"is_pre_order": true,
"release_date": null,
"quantity": 3
}
]
}
- If
is_selectable=false
, you shouldn’t pass additional parameters in the request.
Get promo code rewards
Implement the call of the is_selectable
parameter value in the response, there are 2 possible flows:
- If the
is_selectable=true
value, you should show the form for choosing elements from theunit_items
object for everyitem
withtype=unit
element. In this form, the user chooses only one element for eachunit
type.
- http
{
"bonus": [{
"item": {
"sku": "xsollus_gold_edition",
"name": "Xsollus: Gold Edition",
"type": "unit",
"description": null,
"image_url": "https:\/\/cdn3.xsolla.com\/img\/misc\/images\/9541470622d96a821a9a11ea7763ea4c.png",
"unit_items": [{
"sku": "xsollus_gold_edition_steam",
"name": "Xsollus: Gold Edition (steam)",
"type": "game_key",
"drm_name": "Steam",
"drm_sku": "steam"
}, {
"sku": "xsollus_gold_edition_playstation",
"name": "Xsollus: Gold Edition (playstation)",
"type": "game_key",
"drm_name": "Playstation",
"drm_sku": "playstation"
}, {
"sku": "xsollus_gold_edition_xbox",
"name": "Xsollus: Gold Edition (xbox)",
"type": "game_key",
"drm_name": "XBox",
"drm_sku": "xbox"
}, {
"sku": "xsollus_gold_edition_nintendo_eshop",
"name": "Xsollus: Gold Edition (nintendo_eshop)",
"type": "game_key",
"drm_name": "Nintendo Switch eShop",
"drm_sku": "nintendo_eshop"
}]
},
"quantity": 1
}, {
"item": {
"sku": "xsollus_bonus_pack_edition",
"name": "Xsollus: Bonus Pack",
"type": "unit",
"description": null,
"image_url": "https:\/\/cdn3.xsolla.com\/img\/misc\/images\/aa2efd78dfd4e5dda5293f8c8e49af6d.png",
"unit_items": [{
"sku": "xsollus_bonus_pack_edition_steam",
"name": "Xsollus: Bonus Pack (steam)",
"type": "game_key",
"drm_name": "Steam",
"drm_sku": "steam"
}, {
"sku": "xsollus_bonus_pack_edition_origin",
"name": "Xsollus: Bonus Pack (origin)",
"type": "game_key",
"drm_name": "Origin",
"drm_sku": "origin"
}, {
"sku": "xsollus_bonus_pack_edition_drmfree",
"name": "Xsollus: Bonus Pack (drmfree)",
"type": "game_key",
"drm_name": "DRM Free",
"drm_sku": "drmfree"
}, {
"sku": "xsollus_bonus_pack_edition_gog",
"name": "Xsollus: Bonus Pack (gog)",
"type": "game_key",
"drm_name": "GOG",
"drm_sku": "gog"
}, {
"sku": "xsollus_bonus_pack_edition_rockstar",
"name": "Xsollus: Bonus Pack (rockstar)",
"type": "game_key",
"drm_name": "Rockstar Games Launcher",
"drm_sku": "rockstar"
}]
},
"quantity": 3
}],
"discount": {
"percent": null
},
"is_selectable": true
- If
is_selectable=false
, you shouldn’t pass additional parameters in the request.
Promotional campaign with bonuses
To start a promotional campaign with a bonus:
- Open your project in Publisher Account.
- Click Store in the side menu and go to Promotions and rewards.
- Click Create promotion.
- Specify the following parameters:
- Enter the promotion title.
- Choose Bonus as a promotion type.
- Choose promotional items.
- Choose items granted to users when they purchase promotional items.
- Click Next.
- If you want the promotion to apply only to users who make their first purchase, set the Trigger promotion only for first-time buyers toggle to On. The Limit number of times one user can use promotion and Promotion for only specific users toggles will be enabled automatically, and a set of conditions for triggering the promotion will be created. Add additional conditions if it is necessary.
- Click Next.
- Set the campaign start and end dates.
- Click Next.
- Check the settings and click Save and exit.
- Click Store in the side menu and go to Promotions and rewards.
- Select the promotion, click the ••• menu button to open a menu and click Edit promotion.
- Activate the promotion.
Promotional campaign with discounts
Set up a promotional campaign with discounts via Publisher Account
To start a promotional campaign with a discount:- Open your project in Publisher Account.
- In the side bar click Store.
- Click Promotions and rewards > Create promotion.
- Specify the following parameters:
- Enter the promotion title.
- Choose Discount as a promotion type.
- Set up discounts that apply to one or several items.
- Set the discount amount.
- Click Next.
- If you want the promotion to apply only to users who make their first purchase, set the Trigger promotion only for first-time buyers toggle to On. The Limit number of times one user can use promotion and Promotion for only specific users toggles will be enabled automatically, and a set of conditions for triggering the promotion will be created. Add additional conditions if it is necessary.
- Click Next.
- Set the campaign start and end dates.
- Click Next.
- Check the settings and click Save and exit.
- Click Store in the side menu and go to Promotions and rewards.
- Select the promotion, click the ••• menu button to open a menu and click Edit promotion.
- Activate the promotion.
Set up a promotional campaign with discounts via API
To work with discount promotions, you can use the methods from the
To create the promotion via API methods:
- Call the
Create discount promotion for item method with required parameters. - Call the
Update item promotion method with the“is_enabled”:true
parameter to activate the promotion.
To edit the promotion via an API, call the
When creating or editing a discount promotion via API methods, you can also:
- Configure a discount to all items in the project. Pass the
“items”:null
parameter toCreate discount promotion for item orUpdate item promotion methods.
- Configure a discount for physical goods. Pass an array with SKUs of physical goods to
Create discount promotion for item orUpdate item promotion methods.
- Configure a discount with the fraction percentage value. Pass the
discount.percent
parameter with a fraction discount toCreate discount promotion for item orUpdate item promotion methods.
- Configure a discount for items of different types. Pass an array with SKUs of required items to
Create discount promotion for item orUpdate item promotion methods.
- Configure a discount for definite DRMs of the game. Pass an array with SKUs of required DRMs to
Create discount promotion for item orUpdate item promotion methods.
- Configure discount promotion that doesn’t have a specified time period. Pass the
“date_end”:null
parameter toCreate discount promotion for item orUpdate item promotion methods.
Found a typo or other text error? Select the text and press Ctrl+Enter.