@MainThread
public interface POBBidEvent
Modifier and Type | Interface and Description |
---|---|
static class |
POBBidEvent.BidEventError
Enum to maintain BidEvent error
|
Modifier and Type | Method and Description |
---|---|
POBBid |
getBid()
Used to get bid instance
|
void |
proceedOnError(POBBidEvent.BidEventError error,
java.lang.String errorMessage)
Introduced in OpenWrapSDK v3.6.0
|
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(@Nullable POBBidEventListener bidEventListener)
bidEventListener
- reference of POBBidEventListener
boolean 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, @NonNull java.lang.String errorMessage)
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. In case of No ad server integration, flow is completed by setting its state to default considering error at client side. Note: Should be called from Main/UI thread
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);
errorMessage
- custom description for the error
Example:
When the bid is failed in client-side application the publisher
can pass on custom message to identify the issue in logs@Nullable POBBid getBid()