POBBannerEvent Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | POBBannerEvent.h |
Overview
The banner custom event protocol. Your banner custom event handler must implement this protocol to communicate with 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
POBBannerEvent.h
– setDelegate:
required method
OpenWrap SDK calls this method to set POBBannerEventDelegate, so that the banner custom event handler can inform the OpenWrap SDK about the events related to the ad server communication.
- (void)setDelegate:(id<POBBannerEventDelegate>)delegate
Parameters
delegate |
object conforming to POBBannerEventDelegate |
---|
Discussion
Save the delegate
to use it in later phases of ad server events execution
Declared In
POBBannerEvent.h
– adContentSize
required method
OpenWrap SDK calls this method to get the size of the ad rendered by the ad server SDK
- (CGSize)adContentSize
Return Value
ad size
Declared In
POBBannerEvent.h
– requestedAdSizes
required method
OpenWrap SDK calls this method to get the ad sizes for which bid request should be made.
- (NSArray<POBAdSize*> *)requestedAdSizes
Return Value
Array of POBAdSize
Declared In
POBBannerEvent.h
– rendererForPartner:
Optional method to provide implementation of POBBannerRendering protocol to render ad in custom rendering component. If not implemented, the OpenWrap SDK internally creates its own renderer capable of handling simple HTML and MRAID creatives.
- (id<POBBannerRendering> _Nullable)rendererForPartner:(NSString *)partner
Parameters
partner |
name of the partner associated with the winning bid |
---|
Return Value
renderer object conforming to POBBannerRendering
protocol
Declared In
POBBannerEvent.h
– trackImpression
Optional method to receive instruction to track the impression.
- (void)trackImpression
Declared In
POBBannerEvent.h
– trackClick
Optional method to receive instruction to track the ad click.
- (void)trackClick
Declared In
POBBannerEvent.h
– adServerAdView
Returns the ad server ad view
- (UIView *)adServerAdView
Return Value
View intsance
Declared In
POBBannerEvent.h