adPOPcorn OfferWall
adPOPcorn service shows OfferWall(charging station) inside an app and return profit to developers based on users’ completed ad campaign.
For more information about adPOPcorn service, please check the article below.
NOTE
- 1. IGAW Integration must be set before integration adPOPcorn add-on. [IGAW General Integration: Unity iOS]
- IgaworksUnityPlugin_iOS~*.unitypackage 파file must be included in an Unity project for adPOPcorn integration. [SDK Install: Unity]
adPOPcorn OfferWall API
Set Reward Server Type
Follow the below guide to choose the type of ( * )reward server integration.
IgaworksCorePluginIOS.SetUseIgaworksRewardServer(false);
//true : IGAWorks Reward Server
//false : Manual Callback Server
( * )reward server integration type
Set how to receive reward information from IGAW reward server. We encourage developers to set callback server to receive.
Using your own server will be better for security and maintenance.
If you can’t set up your own, you can receive callback using IGAW reward server with useIgaworksRewardServer parameter.
[IGAW Reward Server Integration: Client Type]
Input User Identifier Value
User Identifier Value is to verify users finished ad campaign to give reward. It must be set before users use coupon code.
NOTE
- One user should have an unique value and cannot be changed.
- Must not contain any personal information(email, name, phone number, ID, etc).
- If contains Korean, special characters, or blank space, the value must be URL encoded.
- Must set before OpenOfferWallWithViewController API is called.
Put User Identifier Value with above warning in mind.
IgaworksCorePluginIOS.SetUserId("player1001");
OfferWall Exposure
Use OpenOfferWallWithViewController API to expose OfferWall.
Connect through click action like button, banner, or images to call OfferWall.
public class MySampleScene : MonoBehaviour {
Rect openOfferwallBtn= new Rect(100,100,200,200);
void OnGUI() {
//Call OfferWall when user tap OfferWall button.
if(GUI.Button (openOfferwallBtn, "OfferWall")) {
AdPopcornOfferwallPluginIOS.OpenOfferWallWithViewController(false, null);
}
}
}
OfferWall Action Delegate
We offer delegate for OfferWall action. To use delegate, use AdPopcornOfferwallSetCallbackHandler API to register delegate handler.
These are offered OfferWall Action Delegates.
- offerWallWillOpen : Call before OfferWall opens.
- offerWallOpened : Call after OfferWall opens.
- offerWallWillClose : Call before OfferWall closes.
- offerWallClosed : Call after OfferWall closes.
public class MySampleScene : MonoBehaviour {
// Use this for initialization
void Start () {
//Add delegate handler
AdPopcornOfferwallPluginIOS.AdPopcornOfferwallSetCallbackHandler("MySampleScene");
// Add delegate
AdPopcornOfferwallPluginIOS.offerWallWillOpen += HandleOfferWallWillOpen;
AdPopcornOfferwallPluginIOS.offerWallOpened += HandleOfferWallOpened;
AdPopcornOfferwallPluginIOS.offerWallWillClose += HandleOfferWallWillClose;
AdPopcornOfferwallPluginIOS.offerWallClosed += HandleOfferWallClosed;
}
// Materialize delegate
void HandleofferWallWillOpen(){}
void HandleofferWallOpened(){}
void HandleofferWallWillClose(){}
void HandleofferWallClosed(){}
}
adPOPcorn OfferWall Style API
You can change color style of OfferWall. Use SetAdPopcornThemeColor API to change.
Use predefined preset or set manually.
public class MySampleScene : MonoBehavior {
void changeOfferWallColorTheme () {
// OfferWall Theme Color Code Setting
AdPopcornOfferwallPluginIOS.SetAdPopcornThemeColor(AdPopcornOfferwallPluginIOS.AdPopcornThemeBlueColor);
// OfferWall Title Text Setting
AdPopcornOfferwallPluginIOS.SetAdPopcornOfferWallTitle("OfferWall");
// OfferWall Text Theme Setting
AdPopcornOfferwallPluginIOS.SetAdPopcornTextThemeColor(AdPopcornOfferwallPluginIOS.AdPopcornThemeRedColor);
// Reward Theme Color Setting
AdPopcornOfferwallPluginIOS.SetAdPopcornRewardThemeColor(AdPopcornOfferwallPluginIOS.AdPopcornThemeYellowColor);
// Reward Check Theme Setting
AdPopcornOfferwallPluginIOS.SetAdPopcornRewardCheckThemeColor(AdPopcornOfferwallPluginIOS.AdPopcornThemeRedColor);
}
}
Reward Server Integration and QA
Basic integration setup is done.
Now you have to go through reward server integration to actually give reward to users with finished campaign.
[IGAW Reward Server Integration Guide]
After finishing the reward server integration, you have to request QA process after testing ad campaign.
To use AdPOPcorn OfferWall, you must go through QA process. Use ‘QA Request’ on AdPOPcorn management page to send .apk file and we will send you result within 1~2 days.