Manos Chorianopoulos

fix constructCcmsUrl

...@@ -1489,11 +1489,10 @@ public class swiftApi { ...@@ -1489,11 +1489,10 @@ public class swiftApi {
1489 + "&UACIOfferTrackingCode=" + (campaign._uaciOfferTrackingCode) 1489 + "&UACIOfferTrackingCode=" + (campaign._uaciOfferTrackingCode)
1490 + "&OFFERCODE1=" + (campaign._offerCode1) 1490 + "&OFFERCODE1=" + (campaign._offerCode1)
1491 + "&SCORE=" + (campaign._score) 1491 + "&SCORE=" + (campaign._score)
1492 - + "&ZONE=" + (campaign._zone)
1493 + "&WAVE=" + (campaign._wave) 1492 + "&WAVE=" + (campaign._wave)
1494 + "&VALIDITY=" + (campaign._validity) 1493 + "&VALIDITY=" + (campaign._validity)
1495 + "&TREATMENT_CODE=" + (campaign._treatmentCode) 1494 + "&TREATMENT_CODE=" + (campaign._treatmentCode)
1496 - + "&OfferAudienceLevel=" + (campaign._offerAudienceLevel); 1495 + + "&OfferAudienceLevel=" + (campaign._eligibleAssets != nil && campaign._eligibleAssets.count > 0 ? "MSISDN" : "GUID");
1497 1496
1498 return finalUrl 1497 return finalUrl
1499 break; 1498 break;
...@@ -1532,11 +1531,10 @@ public class swiftApi { ...@@ -1532,11 +1531,10 @@ public class swiftApi {
1532 + "&UACIOfferTrackingCode=" + (ccmsCampaign._uaciOfferTrackingCode) 1531 + "&UACIOfferTrackingCode=" + (ccmsCampaign._uaciOfferTrackingCode)
1533 + "&OFFERCODE1=" + (ccmsCampaign._offerCode1) 1532 + "&OFFERCODE1=" + (ccmsCampaign._offerCode1)
1534 + "&SCORE=" + (ccmsCampaign._score) 1533 + "&SCORE=" + (ccmsCampaign._score)
1535 - + "&ZONE=" + (ccmsCampaign._zone)
1536 + "&WAVE=" + (ccmsCampaign._wave) 1534 + "&WAVE=" + (ccmsCampaign._wave)
1537 + "&VALIDITY=" + (ccmsCampaign._validity) 1535 + "&VALIDITY=" + (ccmsCampaign._validity)
1538 + "&TREATMENT_CODE=" + (ccmsCampaign._treatmentCode) 1536 + "&TREATMENT_CODE=" + (ccmsCampaign._treatmentCode)
1539 - + "&OfferAudienceLevel=" + (ccmsCampaign._offerAudienceLevel); 1537 + + "&OfferAudienceLevel=" + (ccmsCampaign._eligibleAssets != nil && ccmsCampaign._eligibleAssets.count > 0 ? "MSISDN" : "GUID");
1540 1538
1541 return finalUrl 1539 return finalUrl
1542 } 1540 }
......