Package apple.iad.protocol
Interface ADInterstitialAdDelegate
-
public interface ADInterstitialAdDelegate[@protocol] ADInterstitialAdDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidinterstitialAdActionDidFinish(ADInterstitialAd interstitialAd)interstitialAdActionDidFinish: This message is sent when the action has completed and control is returned to the application.default booleaninterstitialAdActionShouldBeginWillLeaveApplication(ADInterstitialAd interstitialAd, boolean willLeave)interstitialAdActionShouldBegin:willLeaveApplication: Called when the user chooses to interact with the interstitial ad.voidinterstitialAdDidFailWithError(ADInterstitialAd interstitialAd, NSError error)interstitialAd:didFailWithError: Called when an error has occurred attempting to get ad content.default voidinterstitialAdDidLoad(ADInterstitialAd interstitialAd)interstitialAdDidLoad: Called when the interstitial ad has finished loading ad content.voidinterstitialAdDidUnload(ADInterstitialAd interstitialAd)interstitialAdDidUnload: When this method is invoked, if the application is using -presentInView:, the content will be unloaded from the container shortly after this method is called and no new content will be loaded.default voidinterstitialAdWillLoad(ADInterstitialAd interstitialAd)interstitialAdWillLoad: Called when the interstitial has confirmation that an ad will be presented, but before the ad has loaded resources necessary for presentation.
-
-
-
Method Detail
-
interstitialAdDidFailWithError
void interstitialAdDidFailWithError(ADInterstitialAd interstitialAd, NSError error)
interstitialAd:didFailWithError: Called when an error has occurred attempting to get ad content.- See Also:
for a list of possible error codes.
-
interstitialAdActionDidFinish
default void interstitialAdActionDidFinish(ADInterstitialAd interstitialAd)
interstitialAdActionDidFinish: This message is sent when the action has completed and control is returned to the application. Games, media playback, and other activities that were paused in response to the beginning of the action should resume at this point.
-
interstitialAdActionShouldBeginWillLeaveApplication
default boolean interstitialAdActionShouldBeginWillLeaveApplication(ADInterstitialAd interstitialAd, boolean willLeave)
interstitialAdActionShouldBegin:willLeaveApplication: Called when the user chooses to interact with the interstitial ad. The delegate may return NO to block the action from taking place, but this should be avoided if possible because most ads pay significantly more when the action takes place and, over the longer term, repeatedly blocking actions will decrease the ad inventory available to the application. Applications should reduce their own activity while the advertisement's action executes.
-
interstitialAdDidLoad
default void interstitialAdDidLoad(ADInterstitialAd interstitialAd)
interstitialAdDidLoad: Called when the interstitial ad has finished loading ad content. The delegate should implement this method so it knows when the interstitial ad is ready to be presented.
-
interstitialAdDidUnload
void interstitialAdDidUnload(ADInterstitialAd interstitialAd)
interstitialAdDidUnload: When this method is invoked, if the application is using -presentInView:, the content will be unloaded from the container shortly after this method is called and no new content will be loaded. This may occur either as a result of user actions or if the ad content has expired. In the case of an interstitial presented via -presentInView:, the layout of the app should be updated to reflect that an ad is no longer visible. e.g. by removing the view used for presentation and replacing it with another view.
-
interstitialAdWillLoad
default void interstitialAdWillLoad(ADInterstitialAd interstitialAd)
interstitialAdWillLoad: Called when the interstitial has confirmation that an ad will be presented, but before the ad has loaded resources necessary for presentation.
-
-