As another type of promotions than scheduled promotions, auto promotions are automatically triggered if a user (player) enters a defined segment. For example, promotions that are offered to a specific target segment of users, and triggered as each individual user enters that segment (i.e. “New User” promotion for users who activated the game less than 5 days ago).
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 detail of the explanation of each field.
Note: no matter what the promotions 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
}