POBNativeAdLoader Class Reference

Inherits from NSObject
Declared in POBNativeAdLoader.h

  delegate

Sets the POBNativeAdLoaderDelegate receiver for the ad loader..

@property (nonatomic, weak) id<POBNativeAdLoaderDelegate> delegate

Declared In

POBNativeAdLoader.h

  bidEventDelegate

Sets the POBBidEventDelegate to notify the bid events.

@property (nonatomic, weak) id<POBBidEventDelegate> bidEventDelegate

Declared In

POBNativeAdLoader.h

  request

Object representing bid request

@property (nonatomic, readonly) POBRequest *request

Discussion

You may set some additional targeting parameters on this object

See Also

Declared In

POBNativeAdLoader.h

  impression

Managed impression object created internally. It provides APIs to set pubmatic zone id and other custom parameters.

@property (nonatomic, readonly) POBImpression *impression

Declared In

POBNativeAdLoader.h

  config

Configuration to specify various properties for native ads.

@property (nonatomic, readonly) POBNativeAdLoaderConfig *config

Declared In

POBNativeAdLoader.h

  assetList

List of native assets. Must be set if templateType is POBNativeTemplateTypeCustom

@property (nonatomic, strong) NSArray<id<POBNativeRequestAsset> > *assetList

Declared In

POBNativeAdLoader.h

– initWithPublisherId:profileId:adUnitId:templateType:eventHandler:

Initializes & returns a newly allocated ad loader object.

- (instancetype)initWithPublisherId:(NSString *)publisherId profileId:(NSNumber *)profileId adUnitId:(NSString *)adUnitId templateType:(POBNativeTemplateType)templateType eventHandler:(id<POBNativeAdEvent>)eventHandler

Parameters

publisherId

Unique identifier assigned at the time of publisher onboarding.

profileId

Profile id of the ad tag.

adUnitId

Ad unit id used to identify unique placement on screen.

templateType

Native ad template type. @seealso POBNativeTemplateType

eventHandler

Object conforming to POBNativeAdEvent protocol

Return Value

Instance of POBNativeAdLoader

Declared In

POBNativeAdLoader.h

– initWithPublisherId:profileId:adUnitId:templateType:

Initializes & returns a newly allocated ad loader object for supporting ‘No Ad Server Configuration’.

- (instancetype)initWithPublisherId:(NSString *)publisherId profileId:(NSNumber *)profileId adUnitId:(NSString *)adUnitId templateType:(POBNativeTemplateType)templateType

Parameters

publisherId

Unique identifier assigned at the time of publisher onboarding.

profileId

Profile id of the ad tag.

adUnitId

Ad unit id used to identify unique placement on screen.

templateType

Native ad template type. @seealso POBNativeTemplateType

Return Value

Instance of POBNativeAdLoader

Declared In

POBNativeAdLoader.h

– loadAd

Initiates the loading of the native ad.

- (void)loadAd

Declared In

POBNativeAdLoader.h