Skip to content

iOS Interstitial Delegates

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

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

1. Set delegate

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

[AMInterstitial setDelegate:YOUR_CLASS];

2. Adopt the delegate

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

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

3. Implement delegate methods

- (void)AMInterstitialDidLoad:(AMInterstitial *)interstitial;

- (void)AMInterstitialDidFailToLoad:(AMInterstitial *)interstitial withError:(NSError *)error;

- (void)AMInterstitialDidShow:(AMInterstitial *)interstitial;

- (void)AMInterstitialDidClick:(AMInterstitial *)interstitial;

- (void)AMInterstitialDidClose:(AMInterstitial *)interstitial;

Clone this wiki locally