Skip to main content
Version: 6.0.0

GetMyCampaigns

Returns the list of campaigns the current player is participating in, including their assigned scenario, campaign details, and engagement metrics.

ServiceOperation
campaignGET_MY_CAMPAIGNS

Method Parameters

ParameterDescription
optionsJsonOptional JSON parameter (reserved for future use).

Usage

http://localhost:3000
string optionsJson = "{}";
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.CampaignService.GetMyCampaigns(optionsJson, successCallback, failureCallback);
JSON Response
{
"data": {
"campaigns": [
{
"campaignCode": "holiday2026",
"scenarioCode": "b",
"createdAt": 1714000000000,
"updatedAt": 1714000000000,
"originalStartedAt": 1714000000000,
"originalEndsAt": 1716591999000,
"expireAtIso": 1724367999000,
"loginCount": 12,
"logouts": 11,
"timePlayed": 7200000,
"avgPlayTime": 600000,
"numPurchases": 2,
"amtSpent": 499,
"version": 3,
"purpose": "Summer Sale A/B Test",
"campaignJson": {
"theme": "summer"
},
"startAt": 1714000000000,
"endAt": 1716591999000,
"targetType": "SEGMENT",
"segmentCode": "premium_users",
"description": "50% off bundle variant",
"scenarioJson": {
"discount": "50%"
},
"overrides": {
"globalProperties": {
"free_currency_bonus": {
"name": "free_currency_bonus",
"value": "200"
}
},
"cashProducts": {
"coinbundle10": {
"itemId": "coinbundle10",
"priceId": 1
}
},
"items": {
"sword_01": {
"defId": "sword_01",
"buyPrice": {
"coins": 50
}
}
}
}
}
]
},
"status": 200
}
Common Error Code

Status Codes

CodeNameDescription
40206BILLING_PLAN_INCLUDES_CAMPAIGNBilling plan does not include the Campaign feature.