Skip to content

iOS Banner Delegates

Mert Celik edited this page Sep 24, 2018 · 1 revision

If you want to get feedback on the status of the banner ads, implement the AMBannerDelegate in your class.

1. Set delegate

In order to get status updates, you should set your class as a delegate of AMBanner.

[AMBanner setDelegate:YOUR_CLASS];

2. Adopt the delegate

To access and implement AMBannerDelegate methods, you must adopt the delegate.

@interface YOUR_CLASS ()<AMBannerDelegate>
...
@end

3. Implement delegate methods

- (void)AMBannerDidLoad:(AMBanner *)banner;

- (void)AMBannerDidFailToLoad:(AMBanner *)banner withError:(NSError *)error;

- (void)AMBannerDidShow:(AMBanner *)banner;

- (void)AMBannerDidClick:(AMBanner *)banner;

Clone this wiki locally