These APIs are now deprecated. Please apply newly introduced APIs. [Incentive Interstitial Ad] To display incentive interstitial ads in your app, simply write down two lines of code as follows. [Non-Incentive Intestitial Ad] To display non-incentive interstitial ads in your app, simply write down two lines of code as follows. [TnkAdViewDelegate] To catch events when an interstitial ad is loaded or users close interstitial ads, use TnkAdViewDelegate protocol. Methods of TnkAdViewDelegate are listed as follows.
prepareInterstitialAd: and showInterstitialAd: method can have TnkAdViewDelegate object as last parameter. Following sample code shows how developers can control displaying interstitial ads using TnkAdViewDelegate. [Interstitial Ad APIs] API specs for prepareInterstitialAd: and showInterstitialAd: - TnkSession - prepareInterstitialAd:Method - (void) prepareInterstitialAd:(NSString *)logicName delegate:(id<TnkAdViewDelegate>)delegate Description It loads a single interstitial Ad from server and cache it in memory. Parameters
- TnkSession - showInterstitialAd:Method - (void) showInterstitialAd - (void) showInterstitialAd:(id<TnkAdViewDelegate>)delegate Description It displays an interstitial ad which is loaded by prepareInterstitialAd: call before. TnkAdViewDelegate.adViewDidShow is invoked when the ads is successfully displayed on screen and TnkAdViewDelegate.adViewDidFail: is invoked when the ads is not loaded in 5 seconds. Parameters
|
4. Interstitial Ad > 2) iOS >