Custom Variable

You can insert the test ID to your testDevices (first time, it’ll give you a hint to add a uniqueID) in the function (getTestIdentifiers) in order to refine Vpadn tracking. We recommend you insert the test ID to your testDevices to avoid invalid impression and lost revenue during development. Please delete the test ID after testing your application so you do not receive test ads.

Adding Test ID

It will receive test ads when you use this property to specify a device. To verify that you’ve integrated the SDK correctly, add your test device, run your application, and click on the displayed test ad.

Targeting

You can also specify location and demographic targeting information. But to protect the user privacy, please you only specify location and demographic data if that information is already used by your app.

[vpadnAd setUserInfoAge:25];

[vpadnAd setUserInfoKeyword:@”Game,RPG”];

[vpadnAd setUserInfoGender:female];

[vpadnAd setUserInfoBirthdayWithYear:1988 Month:6 andDay:9];

Protocol

You can add these two protocol when you declare ViewController to help you track ad events like request failures or click-through. (VpadnBannerDelegate || VpadnInterstitialDelegate)

#pragma mark VpadnBannerDelegate general banner protocol
@protocolVpadnBannerDelegate<NSObject>@optional#pragma mark sent when ads has succeeded
-(void)onVpadnAdReceived:(UIView*)bannerView;#pragma mark sent when ads has failed
-(void)onVpadnAdFailed:(UIView*)bannerViewdidFailToReceiveAdWithError:(NSError*)error;// alan todo code need to add
#pragma mark sent immediately before the user is presented with Vpadn ad
-(void)onVpadnPresent:(UIView*)bannerView;#pragma mark sent when the Vpadn ad is dismissed
-(void)onVpadnDismiss:(UIView*)bannerView;#pragma mark sent just before the application gets backgrounded or terminated
-(void)onVpadnLeaveApplication:(UIView*)bannerView;@end

#pragma mark VpadnInterstitialDelegate Interstitial Ad protocol
@protocolVpadnInterstitialDelegate<VpadnBannerDelegate>@optional#pragma mark sent when interstitial ads has succeeded
-(void)onVpadnInterstitialAdReceived:(UIView*)bannerView;#pragma mark sent when interstitial ads has failed
-(void)onVpadnInterstitialAdFailed:(UIView*)bannerView;#pragma mark sent when the Vpadn ad is dismissed
-(void)onVpadnInterstitialAdDismiss:(UIView*)bannerView;@end