All Collections
Portal-X Pages
Design | Promotions | Automated
Design | Promotions | Automated

setting the automatically triggered promotions

Jason Liang avatar
Written by Jason Liang
Updated over a week ago

Automated promotions, in contrast to scheduled promotions, are activated automatically upon a user's (player's) entry into a predetermined segment. For instance, promotions tailored to a specific target segment of users are triggered as each individual enters the target segment (e.g. The "New User" promotion for those who have activated the game within the past five days).

Segments and auto promotions are refreshed daily for activation.

Auto promotions are very similar to scheduled promotions, except the auto promotions do not have an effective data range. Refer to the scheduled promotion help page for the details of the explanation of each field.

Note: no matter what the promotion type is, each promotion ID is unique. For instance, this promotion ID is 2 as in the picture below, you will not find this ID on the scheduled promotions list.

Call SysReadPromotion from the service of the promotions after creating an auto-promotion as above, you should get the info of this promotion as follows:

{
"data": {
"promotion": {
"promotionId": 2,
"type": "AUTOMATED",
"name": "p1",
"message": {
"en": "test target segments"
},
"enabled": true,
"segments": [
3
],
"prices": [
{
"itemId": "barBundle1Imp",
"priceId": 2
},
{
"itemId": "gemcollection",
"priceId": 1
}
],
"notifications": [
{
"trigger": "ACTIVATED",
"notificationTemplateId": 1
}
],
"duration": 2,
"customJson": {
"promotion": "halloween"
},
"isRetriggerable": true,
"createdAt": 1603737961242,
"updatedAt": 1603767592009,
"version": 3
}
},
"status": 200
}

Did this answer your question?