Skip to main content
Version: 5.7.0

GetEligiblePromotions

Get eligible promotions.

ServiceOperation
appStoreELIGIBLE_PROMOTIONS

Usage

http://localhost:3000
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.AppStoreService.GetEligiblePromotions(successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"promotions": [
{
"gameId": "10019",
"promotionId": 9,
"type": "SCHEDULED",
"name": "session >= 2",
"message": "test1",
"enabled": true,
"targetAllUsers": false,
"segments": [
5
],
"prices": [
{
"itemId": "regGems150",
"priceId": 1
}
],
"notifications": [
{
"trigger": "ACTIVATED",
"notificationTemplateId": 10
}
],
"customJson": {
"key": "value"
},
"startAt": 1415374185745,
"endAt": 1415806185745,
"createdAt": 0,
"updatedAt": 1415729753294
}
]
}
}