POBNativeAdLoaderDelegate Protocol Reference

Conforms to NSObject
Declared in POBNativeAdLoader.h

– viewControllerForPresentingModal required method

Returns a view controller instance to be used by ad server SDK for showing modals

- (UIViewController *)viewControllerForPresentingModal

Return Value

a UIViewController instance for showing modals

Declared In

POBNativeAdLoader.h

– nativeAdLoader:didReceiveAd:

Notifies the delegate that an ad has been successfully loaded.

- (void)nativeAdLoader:(POBNativeAdLoader *)adLoader didReceiveAd:(id<POBNativeAd>)nativeAd

Parameters

adLoader

Instance of POBNativeAdLoader

nativeAd

Instance of standard native ad from PubMatic

Declared In

POBNativeAdLoader.h

– nativeAdLoader:didFailToReceiveAdWithError:

Notifies the delegate of an error encountered while loading an ad.

- (void)nativeAdLoader:(POBNativeAdLoader *)adLoader didFailToReceiveAdWithError:(NSError *)error

Parameters

adLoader

Instance of POBNativeAdLoader

error

The error encountered while attempting to receive the ad.

Declared In

POBNativeAdLoader.h