Coupon Service
Coupon Service is a reward program for users that input coupons published by the IGAW Coupon Service.
For more information on Coupon Service, please go to the following link.
Notice
- IGAW General Integration must be set in order to integrate coupon add-on. [IGAW General Integration : Unity iOS]
- In order to integrate the coupon service, IgaworksUnityPlugin_iOS~*.unitypackage file must be included in Unity project. [SDK Installation : Unity]
Coupon API
Input User ID
User ID is a set of information to identify users who have completed the campaign and are eligible for a reward.
User ID must be set before the user inputs the coupon codes.
Notice
- One user should only have one unique value, not variable.
- Must not contain any personal information(email, name, phone number, username).
- Must go through URL encoding if contains Korean, special character, or blank space.
- It should be set before the user enters the coupon codes.
Follow the above notice when input the User ID value.
IgaworksCorePluginIOS.SetUserId("player1001");
Coupon Display
A UI for users to input a coupon code is needed. Refer below to set up a coupon code input modal dialog.
- Use Coupon SDK
- Use your custom UI
You can use a UI provided by Coupon SDK or a customized UI. Integrate using the following steps for the appropriate UI.
Use Coupon SDK
void showCouponCheckBox(){
IgaworksCouponPluginIOS.ShowCoupon();
}
Use Your Custom UI
void customCouponInputBox{
IgaworksCouponPluginIOS.CheckCoupon("Coupon code");
}
Coupon Delegation
public class MySampleScene : MonoBehaviour {
// Use this for initialization
void Start () {
//Register delegate handler
IgaworksCouponPluginIOS.IgaworksCouponSetCallbackHandler("MySampleScene");
// Register delegate
IgaworksCouponPluginIOS.igaworksCouponValidationDidComplete += HandleIgaworksCouponValidationDidComplete;
}
// Implement delegate
void HandleIgaworksCouponValidationDidComplete(string result){
//Proper action can be configured and performed when the use of coupon has been completed.
string[] results = result.Split(',');
Debug.Log ("IgaworksADSample : HandleIgaworksCouponValidationDidComplete " + results[0] + ", " + results[1]);
}
}
}
IGAW Reward Server Integration
Note that IGAW reward server integration must be established to provide rewards to users who entered a coupon code.
In our Coupon Service, the reward server integration method is supported through our internal server.
Check the following link for more information on IGAW Reward Server integration.
[IGAW Reward Server Integration Guide]