MMNativeAdDelegate Protocol Reference

Conforms to NSObject
Declared in MMNativeAd.h

– viewControllerForPresentingModalView required method

The view controller from which views such as landing pages, App Store screens, or other modal views will be presented.

- (UIViewController *)viewControllerForPresentingModalView

Return Value

The view controller used to present modal views.

Discussion

The view controller from which views such as landing pages, App Store screens, or other modal views will be presented.

Declared In

MMNativeAd.h

– nativeAdRequestDidSucceed:

Callback fired when a native ad request succeeds, and all parameters are ready for access.

- (void)nativeAdRequestDidSucceed:(MMNativeAd *)ad

Parameters

ad

The native ad placement which was successfully requested.

Discussion

Callback fired when a native ad request succeeds, and all parameters are ready for access.

This method is always called on the main thread.

Declared In

MMNativeAd.h

– nativeAd:requestDidFailWithError:

Callback indicating that ad content failed to load or render.

- (void)nativeAd:(MMNativeAd *)ad requestDidFailWithError:(NSError *)error

Parameters

ad

The native ad placement for which the request failed.

error

The error indicating the failure.

Discussion

Callback indicating that ad content failed to load or render.

This method is always called on the main thread.

Declared In

MMNativeAd.h

– nativeAd:tappedComponent:instance:

Callback indicating that the user has interacted with ad content.

- (void)nativeAd:(MMNativeAd *)ad tappedComponent:(MMNativeAdComponent)nativeAdComponent instance:(NSInteger)instance

Parameters

ad

The ad placement which was tapped.

nativeAdComponent

The MMNativeAdComponent which was tapped.

instance

The instance of the component which was tapped.

Discussion

Callback indicating that the user has interacted with ad content.

This callback should not be used to adjust the contents of your application – it should be used only for the purposes of reporting.

This method is always called on the main thread.

Declared In

MMNativeAd.h

– nativeAdWillLeaveApplication:

Callback invoked prior to the application going into the background due to a user interaction with an ad.

- (void)nativeAdWillLeaveApplication:(MMNativeAd *)ad

Parameters

ad

The ad placement.

Discussion

Callback invoked prior to the application going into the background due to a user interaction with an ad.

This method is always called on the main thread.

Declared In

MMNativeAd.h

– nativeAdDidExpire:

Callback fired when an ad expires.

- (void)nativeAdDidExpire:(MMNativeAd *)ad

Parameters

ad

The ad placement which expired.

Discussion

Callback fired when an ad expires.

After receiving this message, your app should call -load before attempting to access any components of the native ad.

This method is always called on the main thread.

Declared In

MMNativeAd.h