Protocol: ADBannerViewDelegate
Overview
The ADBannerViewDelegate protocol is implemented by an object to react to changes in an ADBannerView object. The banner view calls its delegate when a new advertisement is loaded, when the user interacts with an advertisement, and when errors occur.Called when a banner view fails to load a new advertisement.Called after a banner view finishes executing an action that covered your application’s user interface.Called before a banner view executes an action.Called when a new banner advertisement is loaded.Called before a new banner advertisement is loaded.
Instance Method Summary (collapse)
-
- bannerView:didFailToReceiveAdWithError:
Called when a banner view fails to load a new advertisement.
-
- bannerViewActionDidFinish:
Called after a banner view finishes executing an action that covered your application’s user interface.
-
- bannerViewActionShouldBegin:willLeaveApplication:
Called before a banner view executes an action.
-
- bannerViewDidLoadAd:
Called when a new banner advertisement is loaded.
-
- bannerViewWillLoadAd:
Called before a new banner advertisement is loaded.
Instance Method Details
- (Object) bannerView(banner, didFailToReceiveAdWithError:error)
Called when a banner view fails to load a new advertisement.
- (Object) bannerViewActionDidFinish(banner)
Called after a banner view finishes executing an action that covered your application’s user interface. If your delegate paused activities before allowing an action to run, it should resume those activities when this method is called.
- (Boolean) bannerViewActionShouldBegin(banner, willLeaveApplication:willLeave)
Called before a banner view executes an action. This method is called when the user taps the banner view. Your application controls whether the action is triggered. To allow the action to be triggered, return YES. To suppress the action, return NO. Your application should almost always allow actions to be triggered; preventing actions may alter the advertisements your application sees and reduce the revenue your application earns through iAd.If the willLeave parameter is YES, then your application is moved to the background shortly after this method returns. In this situation, your method implementation does not need to perform additional work. If willLeave is set to NO, then the triggered action will cover your application’s user interface to show the advertising action. Although your application continues to run normally, your implementation of this method should disable activities that require user interaction while the action is executing. For example, a game might pause its game play until the user finishes watching the advertisement.
- (Object) bannerViewDidLoadAd(banner)
Called when a new banner advertisement is loaded. Your application implements this method to be notified when a new advertisement is ready for display.
- (Object) bannerViewWillLoadAd(banner)
Called before a new banner advertisement is loaded.