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 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

– init

Initializes & returns a newly allocated ad loader object.

- (instancetype)init

Return Value

Instance of POBNativeAdLoader

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

– loadAdWithResponse:forBiddingHost:

Initiate the loading of a native ad, with the passed bid response for specific bidder.

- (void)loadAdWithResponse:(NSString *)bidResponse forBiddingHost:(POBSDKBiddingHost)biddingHost

Parameters

bidResponse

Stringified JSON bid response as per Open-RTB standard.

biddingHost

Bidding host for which bid response is applicable. @seealso POBSDKBiddingHost

Discussion

This API expects the response with ORTB v2.5 specification.

Declared In

POBNativeAdLoader.h

– addExtraInfoWithKey:andValue:

Adds an extra info for the native ad in a dictionary.

- (void)addExtraInfoWithKey:(NSString *)key andValue:(id)value

Parameters

key

Parameter key

value

Parameter value

Declared In

POBNativeAdLoader.h