Package apple.iad.protocol
Interface ADBannerViewDelegate
-
public interface ADBannerViewDelegate[@protocol] ADBannerViewDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidbannerViewActionDidFinish(ADBannerView banner)bannerViewActionDidFinish: Called when a modal action has completed and control is returned to the application.default booleanbannerViewActionShouldBeginWillLeaveApplication(ADBannerView banner, boolean willLeave)bannerViewActionShouldBegin:willLeaveApplication: Called when the user taps on the banner and some action is to be taken.default voidbannerViewDidFailToReceiveAdWithError(ADBannerView banner, NSError error)bannerView:didFailToReceiveAdWithError: Called when an error has occurred while attempting to get ad content.default voidbannerViewDidLoadAd(ADBannerView banner)bannerViewDidLoadAd: Called each time a banner loads a new ad.default voidbannerViewWillLoadAd(ADBannerView banner)bannerViewWillLoadAd: Called when a banner has confirmation that an ad will be presented, but before the resources necessary for presentation have loaded.
-
-
-
Method Detail
-
bannerViewDidFailToReceiveAdWithError
default void bannerViewDidFailToReceiveAdWithError(ADBannerView banner, NSError error)
bannerView:didFailToReceiveAdWithError: Called when an error has occurred while attempting to get ad content. If the banner is being displayed when an error occurs, it should be hidden to prevent display of a banner view with no ad content.- See Also:
for a list of possible error codes.
-
bannerViewActionDidFinish
default void bannerViewActionDidFinish(ADBannerView banner)
bannerViewActionDidFinish: Called when a modal action has completed and control is returned to the application. Games, media playback, and other activities that were paused in bannerViewActionShouldBegin:willLeaveApplication: should resume at this point.
-
bannerViewActionShouldBeginWillLeaveApplication
default boolean bannerViewActionShouldBeginWillLeaveApplication(ADBannerView banner, boolean willLeave)
bannerViewActionShouldBegin:willLeaveApplication: Called when the user taps on the banner and some action is to be taken. Actions either display full screen content modally, or take the user to a different application. 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.
-
bannerViewDidLoadAd
default void bannerViewDidLoadAd(ADBannerView banner)
bannerViewDidLoadAd: Called each time a banner loads a new ad. Once a banner has loaded an ad, it will display it until another ad is available. It's generally recommended to show the banner view when this method is called, and hide it again when bannerView:didFailToReceiveAdWithError: is called.
-
bannerViewWillLoadAd
default void bannerViewWillLoadAd(ADBannerView banner)
bannerViewWillLoadAd: Called when a banner has confirmation that an ad will be presented, but before the resources necessary for presentation have loaded.
-
-