MAInterstitialAd Class Reference

Inherits from NSObject
Declared in MAInterstitialAd.h

Overview

This class represents a full screen interstitial ad.

– initWithAdUnitIdentifier:

Create a new mediation interstitial.

- (instancetype)initWithAdUnitIdentifier:(NSString *)adUnitIdentifier

Parameters

adUnitIdentifier

Ad unit id to load ads for.

Discussion

Create a new mediation interstitial.

Declared In

MAInterstitialAd.h

– initWithAdUnitIdentifier:sdk:

Create a new mediation interstitial.

- (instancetype)initWithAdUnitIdentifier:(NSString *)adUnitIdentifier sdk:(ALSdk *)sdk

Parameters

adUnitIdentifier

Ad unit id to load ads for.

sdk

SDK to use. An instance of the SDK may be obtained by calling [ALSdk shared].

Discussion

Create a new mediation interstitial.

Declared In

MAInterstitialAd.h

  delegate

Set a delegate that will be notified about ad events.

@property (nonatomic, weak, nullable) id<MAAdDelegate> delegate

Discussion

Set a delegate that will be notified about ad events.

Declared In

MAInterstitialAd.h

– setExtraParameterForKey:value:

Set an extra parameter for the ad.

- (void)setExtraParameterForKey:(NSString *)key value:(nullable NSString *)value

Parameters

key

Parameter key.

value

Parameter value.

Discussion

Set an extra parameter for the ad.

Declared In

MAInterstitialAd.h

– loadAd

Load ad for the current interstitial. Use [MAInterstitialAd delegate] to assign a delegate that should be notified about ad load state.

- (void)loadAd

Discussion

Load ad for the current interstitial. Use [MAInterstitialAd delegate] to assign a delegate that should be notified about ad load state.

Declared In

MAInterstitialAd.h

– showAd

Show the loaded interstitial.

- (void)showAd

Discussion

Show the loaded interstitial.

Use [MAInterstitialAd delegate] to assign a delegate that should be notified about display events. Use [MAInterstitialAd isReady] to check if an ad was successfully loaded.

Declared In

MAInterstitialAd.h

– showAdForPlacement:

Show the loaded interstitial for a given placement to tie ad events to.

- (void)showAdForPlacement:(nullable NSString *)placement

Parameters

placement

The placement to tie the showing ad’s events to.

Discussion

Show the loaded interstitial for a given placement to tie ad events to.

Use [MAInterstitialAd delegate] to assign a delegate that should be notified about display events. Use [MAInterstitialAd isReady] to check if an ad was successfully loaded.

Declared In

MAInterstitialAd.h

  ready

Check if this ad is ready to be shown.

@property (nonatomic, assign, readonly, getter=isReady) BOOL ready

Discussion

Check if this ad is ready to be shown.

Declared In

MAInterstitialAd.h