@MainThread
public interface POBBidEvent
| Modifier and Type | Interface and Description |
|---|---|
static class |
POBBidEvent.BidEventError
Enum to maintain BidEvent error
|
static class |
POBBidEvent.POBBidProceedState |
| Modifier and Type | Method and Description |
|---|---|
POBBid |
getBid()
Used to get bid instance
|
void |
proceedOnError(POBBidEvent.BidEventError error)
Proceeds with error, 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.
|
boolean |
proceedToLoadAd()
Proceeds with bid flow, This method should be called only when
POBBidEventListener is set
Note: Should be called from Main/UI thread. |
void |
setBidEventListener(POBBidEventListener bidEventListener)
Sets Bid event listener to notify bid events
|
void setBidEventListener(POBBidEventListener bidEventListener)
bidEventListener - reference of POBBidEventListenerboolean proceedToLoadAd()
POBBidEventListener is set
Note: Should be called from Main/UI thread. Also, unnecessary duplicate call will fail and
appropriate errors will be logged with return value `false`void proceedOnError(@NonNull
POBBidEvent.BidEventError error)
error - the error of type POBBidEvent.BidEventError
Example:
Scenario 1 : When bid is failed in client-side in-app auction loss
proceedOnError(BidEventError#CLIENT_SIDE_AUCTION_LOSS);
Scenario 2 : When bid is expired proceedOnError(BidEventError#BID_EXPIRED);
@Nullable POBBid getBid()