POBNativeAdEventBridge Protocol Reference

Conforms to NSObject
Declared in POBNativeAdEvent.h

Overview

Bridge for the native custom event protocol that manages communication with an ad server SDK.

– requestAdWithBid: required method

OpenWrap SDK calls this method when it has valid bid/s to pass to the ad server.

- (void)requestAdWithBid:(POBBid *_Nullable)bid

Parameters

bid

bid details object having price and other useful information that can be passed to the ad server SDK

Discussion

Note that, if the OpenWrap SDK does not have valid bids, requestAdWithBid: will be called with a nil bid value.

Declared In

POBNativeAdEvent.h

– setDelegate: required method

OpenWrap SDK calls this method to set POBNativeAdEventDelegate, so that the native custom event handler can inform the OpenWrap SDK about the events related to the ad server communication.

- (void)setDelegate:(id<POBNativeAdEventDelegate>)delegate

Parameters

delegate

object conforming to POBNativeAdEventDelegate

Discussion

Save the delegate to use it in later phases of ad server events execution

Declared In

POBNativeAdEvent.h

– setSignalingDelegate: required method

Set delegate to manage ad server signalling, whether ad server has won or OpenWrap has won.

- (void)setSignalingDelegate:(id<POBAdServerSignalingEventDelegate>)signalingDelegate

Parameters

signalingDelegate

Object confirming POBAdServerSignalingEventDelegate

Declared In

POBNativeAdEvent.h

– adServerAdView required method

Returns the ad server ad view

- (UIView *_Nullable)adServerAdView

Return Value

View intsance

Declared In

POBNativeAdEvent.h

– trackImpression

Optional method to receive instruction to track the impression.

- (void)trackImpression

Declared In

POBNativeAdEvent.h

– trackClick

Optional method to receive instruction to track the ad click.

- (void)trackClick

Declared In

POBNativeAdEvent.h