PWAdsBannerViewDelegate Protocol Reference

Conforms to NSObject
Declared in PWAdsBannerView.h

Overview

Protocol PWAdsBannerViewDelegate declares delegate methods for receiving callbacks from PWAdsBannerView.

– bannerViewDidLoadAd:

Called when a new banner advertisement is loaded.

- (void)bannerViewDidLoadAd:(PWAdsBannerView *)bannerView

Parameters

bannerView

The banner view that loaded a new advertisement.

Discussion

Called when a new banner advertisement is loaded.

Declared In

PWAdsBannerView.h

– bannerView:didFailWithError:

Called when a banner view fails to load a new advertisement.

- (void)bannerView:(PWAdsBannerView *)bannerView didFailWithError:(NSError *)error

Parameters

bannerView

The banner view that failed to load an advertisement.

error

The error object that describes the problem.

Discussion

Called when a banner view fails to load a new advertisement.

Declared In

PWAdsBannerView.h

– bannerViewWillPresentModal:

Called before an advertisment modal is presented

- (void)bannerViewWillPresentModal:(PWAdsBannerView *)bannerView

Parameters

bannerView

The banner view that was tapped by user.

Discussion

Called before an advertisment modal is presented

Declared In

PWAdsBannerView.h

– bannerViewDidPresentModal:

Called after an advertisment modal is presented

- (void)bannerViewDidPresentModal:(PWAdsBannerView *)bannerView

Parameters

bannerView

The banner view that was tapped by user.

Discussion

Called after an advertisment modal is presented

Declared In

PWAdsBannerView.h

– bannerViewWillDissmissModal:

Called before a banner view dismisses a modal.

- (void)bannerViewWillDissmissModal:(PWAdsBannerView *)bannerView

Parameters

bannerView

The banner view that will finish executing an action.

Discussion

Called before a banner view dismisses a modal.

Declared In

PWAdsBannerView.h

– bannerViewDidDismissModal:

Called after a banner view dismissed a modal view.

- (void)bannerViewDidDismissModal:(PWAdsBannerView *)bannerView

Parameters

bannerView

The banner view that finished executing an action.

Discussion

Called after a banner view dismissed a modal view.

Declared In

PWAdsBannerView.h

– shouldPresentModalForBannerView:

Called before an advertisment modal is presented. This happens when use taps on an advertisment.

- (BOOL)shouldPresentModalForBannerView:(PWAdsBannerView *)bannerView

Parameters

bannerView

The banner view that the user tapped.

Return Value

Your delegate returns YES if the banner action should execute; NO to prevent the executing.

Discussion

Called before an advertisment modal is presented. This happens when use taps on an advertisment.

Declared In

PWAdsBannerView.h

– shouldLeaveApplicationForBannerView:

Called before user leaves the application. This happens when user taps on an advertisment.

- (BOOL)shouldLeaveApplicationForBannerView:(PWAdsBannerView *)bannerView

Parameters

bannerView

The banner view that the user tapped.

Return Value

Return YES to allow user to leave the appliction; NO to prevent it. YES by default.

Discussion

Called before user leaves the application. This happens when user taps on an advertisment.

Declared In

PWAdsBannerView.h