POBBidEvent Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | POBBidEvent.h |
Overview
This prototol is responsinble for interacting with SDK’s banner & interstitial objects to get bid details, continue the bid execution flow. All methods of this protocol are expected to be called from Main thread.
bidEventDelegate
required method
Sets the POBBidEventDelegate receiver for the ad object.
@property (nonatomic, weak) id<POBBidEventDelegate> bidEventDelegate
Discussion
Warning: Proper reference management practices should be observed when using delegates.
Warning: Ensure that the delegate is set to nil prior to setting nil to banner view’s object reference.
Declared In
POBBidEvent.h
– proceedToLoadAd
required method
Proceeds with bid flow, This method should be called only when bidEvent:didReceiveBid: is triggered,
- (BOOL)proceedToLoadAd
Return Value
Returns the BOOL value indicating success or failure
Discussion
Note: Unnecessary duplicate call will fail & appropriate errors will be logged with return value NO
Declared In
POBBidEvent.h
– proceedOnError:andDescription:
required method
Proceed with bid flow with error, e.g. POBBidEventAuctionLoss. If integration type is of primary ad server case like DFP and MoPub, the execution is continued by invoking ad server call ignoring OpenWrap’s bid. In case of No ad server integration, flow is completed by setting its state to default considering error at client side.
- (void)proceedOnError:(POBBidEventErrorCode)code andDescription:(NSString *)description
Parameters
code |
POBBidEventErrorCode values |
---|---|
description |
Specific description to give more context to passed error code |
Discussion
If the auto-refresh is enabled for banner ads, the next bid is requested once the ad server flow completes.
Declared In
POBBidEvent.h