YMANativeAdLoaderDelegate Protocol Reference

Conforms to NSObject
Declared in YMANativeAdLoader.h

Overview

The protocol defines the methods of a delegate that tracks the ad loading process. The methods are invoked by an object of the YMANativeAdLoader class.

  1. Methods
    1. – nativeAdLoader:didLoadContentAd:
    2. – nativeAdLoader:didLoadAppInstallAd:
    3. – nativeAdLoader:didLoadImageAd:
    4. – nativeAdLoader:didFailLoadingWithError:

Methods

– nativeAdLoader:didLoadContentAd:

Notifies that a Content ad is loaded.

- (void)nativeAdLoader:(null_unspecified YMANativeAdLoader *)loader
      didLoadContentAd:(id<YMANativeContentAd>)ad

Parameters

loader

The loader that sends the message (YMANativeAdLoader).

ad

Notifies that a Content ad is loaded and ready to be displayed (YMANativeContentAd).

– nativeAdLoader:didLoadAppInstallAd:

Notifies that an AppInstall ad is loaded.

- (void)nativeAdLoader:(null_unspecified YMANativeAdLoader *)loader
   didLoadAppInstallAd:(id<YMANativeAppInstallAd>)ad

Parameters

loader

The loader that sends the message (YMANativeAdLoader).

ad

The AppInstall native ad ready for display (YMANativeAppInstallAd).

– nativeAdLoader:didLoadImageAd:

Notifies that an ImageAd ad is loaded.

- (void)nativeAdLoader:(null_unspecified YMANativeAdLoader *)loader
        didLoadImageAd:(id<YMANativeImageAd>)ad

Parameters

loader

The loader that sends the message (YMANativeAdLoader).

ad

The ImageAd native ad ready for display (YMANativeImageAd).

Discussion

Note: This method is only used for working with ImageAd ads.

– nativeAdLoader:didFailLoadingWithError:

Notifies that the ad failed to load.

- (void)nativeAdLoader:(null_unspecified YMANativeAdLoader *)loader
didFailLoadingWithError:(NSError *)error

Parameters

loader

The loader that sends the message (YMANativeAdLoader).

error

Information about the error (for details, see YMAAdErrorCode).


Generated by appledoc 2.2.1 (build 1334).