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)bidParameters
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>)delegateParameters
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)adContentSizeReturn 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*> *)requestedAdSizesReturn 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 *)partnerParameters
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)trackImpressionDeclared In
POBBannerEvent.h
– trackClick
Optional method to receive instruction to track the ad click.
- (void)trackClickDeclared In
POBBannerEvent.h
– adServerAdView
Returns the ad server ad view
- (UIView *)adServerAdViewReturn Value
View intsance
Declared In
POBBannerEvent.h