POBNativeAdLoader Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | POBNativeAdLoader.h |
delegate
Sets the POBNativeAdLoaderDelegate receiver for the ad loader..
@property (nonatomic, weak) id<POBNativeAdLoaderDelegate> delegateDeclared In
POBNativeAdLoader.h
bidEventDelegate
Sets the POBBidEventDelegate to notify the bid events.
@property (nonatomic, weak) id<POBBidEventDelegate> bidEventDelegateDeclared In
POBNativeAdLoader.h
request
Object representing bid request
@property (nonatomic, readonly) POBRequest *requestDiscussion
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 *impressionDeclared In
POBNativeAdLoader.h
config
Configuration to specify various properties for native ads.
@property (nonatomic, readonly) POBNativeAdLoaderConfig *configDeclared In
POBNativeAdLoader.h
assetList
List of native assets. Must be set if templateType is POBNativeTemplateTypeCustom
@property (nonatomic, strong) NSArray<id<POBNativeRequestAsset> > *assetListSee Also
Declared In
POBNativeAdLoader.h
– init
Initializes & returns a newly allocated ad loader object.
- (instancetype)initReturn 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>)eventHandlerParameters
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)templateTypeParameters
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
– loadAdWithResponse:forBiddingHost:
Initiate the loading of a native ad, with the passed bid response for specific bidder.
- (void)loadAdWithResponse:(NSString *)bidResponse forBiddingHost:(POBSDKBiddingHost)biddingHostParameters
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)valueParameters
key |
Parameter key |
|---|---|
value |
Parameter value |
Declared In
POBNativeAdLoader.h