Page tree


Inherits from:NSObject
Conforms to:PMAdRenderer
Declared in:PMInterstitialAd.h

Overview


Requests and renders Interstitial Ads.


Tasks



Properties


delegate

Sets the PMInterstitialAdDelegate delegate receiever for the ad view.

@property (nonatomic, weak) id<PMInterstitialAdDelegate> delegate"alert">

Warnings:

  1. Observe proper reference management practices when using delegates.
  2. Always set the delegate to nil before releasing the ad view’s instance.

Declared In

PMInterstitialAd.h

isReady

Returns YES if the interstitial is ready to display.

@property (nonatomic, assign, readonly) BOOL isReady

Discussion

This property switching from NO to YES triggers the call to the delegate’s interstitialAdDidRecieveAd:.

Declared In

PMInterstitialAd.h

useInternalBrowser

Set to YES enable the internal browser to open ad content. Defaults to NO.

@property (nonatomic, assign) BOOL useInternalBrowser

Declared In

PMInterstitialAd.h

Instance Methods


close

Closes the interstitial.

- (void)close

Declared In

PMInterstitialAd.h

show

Presents interstitial Ad in full screen view until the user dismisses it.

- (void)show

Discussion

This method has no effect until isReady returns YES and/or the delegate’s interstitialAdDidRecieveAd: call is received.

Declared In

PMInterstitialAd.h

showCloseButtonAfterDelay:

Shows a close button after a specified delay when the ad renders.

- (void)showCloseButtonAfterDelay:(NSTimeInterval)delay

Parameters

delay

The time to delay showing the close button after the ad renders. Set the delay to 0 to immediately show the close button.

Discussion

Custom close buttons have the same behavior. Create a custom close button using the interstitialAdCustomCloseButton: delegate method.

Declared In

PMInterstitialAd.h

showForDuration:

Shows the interstitial, then automatically closes after a specified duration.

- (void)showForDuration:(NSTimeInterval)duration

Parameters

duration

The amount of time to display the interstitial before closing it.

Declared In

PMInterstitialAd.h


⇧ Top