Package org.prebid.mobile.api.mediation
Class MediationBaseAdUnit
java.lang.Object
org.prebid.mobile.api.mediation.MediationBaseAdUnit
- Direct Known Subclasses:
MediationBannerAdUnit
,MediationBaseFullScreenAdUnit
Internal base mediation ad unit.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AdUnitConfiguration
protected BidLoader
protected WeakReference<android.content.Context>
protected PrebidMediationDelegate
protected OnFetchCompleteListener
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MediationBaseAdUnit
(android.content.Context context, String configId, AdSize adSize, PrebidMediationDelegate mediationDelegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
protected void
fetchDemand
(OnFetchCompleteListener listener) protected abstract void
initAdConfig
(String configId, AdSize adSize) protected void
protected void
onErrorReceived
(AdException exception) protected void
onResponseReceived
(BidResponse response) void
setImpOrtbConfig
(String ortbConfig) Sets imp level OpenRTB config JSON string that will be merged with the original imp object in the bid request.void
setPbAdSlot
(String adSlot)
-
Field Details
-
onFetchCompleteListener
-
contextWeakReference
-
adUnitConfig
protected AdUnitConfiguration adUnitConfig -
mediationDelegate
protected PrebidMediationDelegate mediationDelegate -
bidLoader
protected BidLoader bidLoader
-
-
Constructor Details
-
MediationBaseAdUnit
-
-
Method Details
-
fetchDemand
-
setPbAdSlot
-
getPbAdSlot
-
destroy
public void destroy() -
initAdConfig
-
onResponseReceived
protected void onResponseReceived(BidResponse response) -
onErrorReceived
-
initBidLoader
protected void initBidLoader() -
getImpOrtbConfig
-
setImpOrtbConfig
Sets imp level OpenRTB config JSON string that will be merged with the original imp object in the bid request. Expected format:"{"new_field": "value"}"
.- Parameters:
ortbConfig
- JSON config string.
-