로딩중입니다
adPOPcorn OfferWall: iOS
4/22/2016 4:43:24 PM

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.

[about adPOPcorn]


NOTE
  1. IGAW Integration must be set before integration adPOPcorn add-on. [IGAW Integration: iOS]
  2. AdPopcornOfferwall~*.framework file must be included in a Xcode project to integrate adPOPcorn. [Install SDK: iOS]
  3. IDFA must be collected in order to integrate adPOPcorn.  [IDFA Setting Guide]
  4. You must go through certain QA requirements to operate cash reward app. (Starting 2016/1/1)
    [About QA requirements for adPOPcorn Cash Reward]



adPOPcorn OfferWall API

Import IgaworksCore.h, AdPopcornOfferwall.h files to integrate adPOPcorn OfferWall. 


Set Reward Server Type

Follow the below guide to choose the type of ( * )reward server integration. 

[IgaworksCore shared].useIgaworksRewardServer = NO;
//YES : IGAWorks Reward Server
//NO : 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]


Enter User Identifier Value

User Identifier is to verify users finished ad campaign to give reward. It must be set before users use coupon code. 


    NOTE

  1. One user should have an unique value and cannot be changed. 
  2. Must not contain any personal information(email, name, phone number, ID, etc).
  3. If contains Korean,  special characters, or blank space, the value must be URL encoded.
  4. Must set before openOfferWallWithViewController: delegate: userDataDictionaryForFilter: API is called.

Put User Identifier Value with above warning in mind.

[IgaworksCore setUserId:@“user10001"];


OfferWall Exposure

Use openOfferWallWithViewController: delegate: userDataDictionaryForFilter: API to expose OfferWall. 

Connect through click action like button, banner, or images to call OfferWall. 

#import <IgaworksCore/IgaworksCore.h>
#import <IgaworksAD/AdPopcorn.h>
 
-(void)didClickOpenOfferwallBtn 
{
    [AdPopcornOfferwall openOfferWallWithViewController:self delegate:self userDataDictionaryForFilter:nil];
    [AdPopcornOfferwall shared].delegate = self;
}


OfferWall Action Delegate

We offer delegate for OfferWall action. To use delegate, add AdPopcornOfferwallDelegate to interface. 

@interface MyViewController () <AdPopcornOfferwallDelegate>

@end

@implementation MyViewController

-(void)willOpenOfferWall {
    NSLog(@"Opening OfferWall");
}
-(void)didOpenOfferWall {
    NSLog(@"Opened OfferWall");
}
-(void)willCloseOfferWall {
    NSLog(@"Closing OfferWall");
}
-(void)didCloseOfferWall {
    NSLog(@"Closed OfferWall");
}

@end



adPOPcorn OfferWall Style API

You can change color style of OfferWall. Import AdPopcornStyle.h to use style change API.

Use predefined enum theme in AdPopcornStyle.h or manually set UIColor.

#import <AdPopcornOfferwall/AdPopcornStyle.h>

- (void)changeOfferwallTheme {
	
        // Theme color
	[AdPopcornStyle sharedInstance].adPopcornThemeColor = AdPopcornThemeYellowColor;

	//  Text color
	[AdPopcornStyle sharedInstance].adPopcornTextThemeColor = AdPopcornThemeRedColor;

	//  Reward text color
	[AdPopcornStyle sharedInstance].adPopcornRewardThemeColor = AdPopcornRewardThemeBlueColor;

	//  Reward check text color
	[AdPopcornStyle sharedInstance].adPopcornRewardCheckThemeColor = AdPopcornRewardCheckThemeYellowColor;

	// Theme custom color
	[AdPopcornStyle sharedInstance].adPopcornCustomThemeColor = [UIColor colorWithRed:1.0f green:66/255.0f blue:66/255.0f alpha:1.0f]; 

	//  Text custom color
	[AdPopcornStyle sharedInstance].adPopcornCustomTextThemeColor = [UIColor grayColor];

	//  Reward text custom color
	[AdPopcornStyle sharedInstance].adPopcornCustomRewardThemeColor = [UIColor colorWithRed:1.0f green:66/255.0f blue:66/255.0f alpha:1.0f];

	//  Reward check text custom color
	[AdPopcornStyle sharedInstance].adPopcornCustomRewardCheckThemeColor = [UIColor orangeColor];
}




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.

QA Inquiry: QA@igaworks.com