public interface BidLifecycleListener
There is no strong guarantee on the order of execution, also those callbacks may be invoked on different threads.
| Modifier and Type | Method and Description |
|---|---|
void |
onBidCached(com.criteo.publisher.model.CdbResponseSlot cachedBid)
Callback invoked when a bid is cached.
|
void |
onBidConsumed(com.criteo.publisher.model.CacheAdUnit adUnit,
com.criteo.publisher.model.CdbResponseSlot consumedBid)
Callback invoked when a bid is used and consumed.
|
void |
onCdbCallFailed(CdbRequest request,
java.lang.Exception exception)
Callback invoked when a CDB call failed.
|
void |
onCdbCallFinished(CdbRequest request,
CdbResponse response)
Callback invoked when a CDB call finished successfully with a response.
|
void |
onCdbCallStarted(CdbRequest request)
Callback invoked when a CDB call is about to start.
|
void |
onSdkInitialized()
Callback invoked when the SDK is initialized.
|
void onSdkInitialized()
void onCdbCallStarted(@NonNull
CdbRequest request)
request - Request sent to CDBvoid onCdbCallFinished(@NonNull
CdbRequest request,
@NonNull
CdbResponse response)
A successful call is a call where:
request - Request that was sent to CDBresponse - Response coming from CDBvoid onCdbCallFailed(@NonNull
CdbRequest request,
@NonNull
java.lang.Exception exception)
Here, the failure means anything that does not make it a success.
request - Request that was sent to CDBexception - Exception representing the failure of the callvoid onBidConsumed(@NonNull
com.criteo.publisher.model.CacheAdUnit adUnit,
@NonNull
com.criteo.publisher.model.CdbResponseSlot consumedBid)
Consumption means that the bid was popped out of the bid cache. So, depending on the bid status, this does not mean that it will be used by publishers (for instance no bid or silence).
adUnit - ad unit representing the bidconsumedBid - bid that was consumedvoid onBidCached(@NonNull
com.criteo.publisher.model.CdbResponseSlot cachedBid)
cachedBid - bid that was cached