POBNativeAd Protocol Reference

Conforms to NSObject
Declared in POBNativeAd.h

– setAdDelegate: required method

Sets delegate for receiving the ad workflow events

- (void)setAdDelegate:(id<POBNativeAdDelegate>)delegate

Parameters

delegate

POBNativeAdDelegate delegate to get Native ad events

Declared In

POBNativeAd.h

– adView required method

Getter for rendered native ad view. This view needs to be attached to the screen.

- (POBNativeAdView *)adView

Return Value

Instance of POBNativeAdView

Declared In

POBNativeAd.h

– titleAssetWithId: required method

Returns title asset for the respective identifier

- (POBNativeAdTitleResponseAsset *)titleAssetWithId:(NSInteger)identifier

Parameters

identifier

Identifier of the title asset

Return Value

Instance of POBNativeAdTitleResponseAsset

Declared In

POBNativeAd.h

– dataAssetWithId: required method

Returns data asset for the respective identifier

- (POBNativeAdDataResponseAsset *)dataAssetWithId:(NSInteger)identifier

Parameters

identifier

Identifier of the data asset

Return Value

Instance of POBNativeAdDataResponseAsset

Declared In

POBNativeAd.h

– imageAssetWithId: required method

Returns image asset for the respective identifier

- (POBNativeAdImageResponseAsset *)imageAssetWithId:(NSInteger)identifier

Parameters

identifier

Identifier of the image asset

Return Value

Instance of POBNativeAdImageResponseAsset

Declared In

POBNativeAd.h

– renderAdWithCompletion: required method

Renders a native ad

- (void)renderAdWithCompletion:(POBNativeAdRenderingCompletionBlock)completion

Parameters

completion

completion block

Declared In

POBNativeAd.h

– renderAdWithTemplateView:andCompletion: required method

Renders the native ad with block for native ad rendering customizations

- (void)renderAdWithTemplateView:(POBNativeTemplateView *)templateview andCompletion:(POBNativeAdRenderingCompletionBlock)completion

Parameters

templateview

POBNativeTemplateView with customized layout and appearance.

completion

Rendering completion block for native ads

Declared In

POBNativeAd.h

– registerViewForInteractions:clickableViews: required method

Registers the rendered views for tracking impression/clicks

- (void)registerViewForInteractions:(UIView *)adView clickableViews:(NSArray<UIView*> *)clickableViews

Parameters

adView

UIView representing the native ad

clickableViews

clickable asset views

Declared In

POBNativeAd.h