Package org.prebid.mobile
Class AdUnit
- java.lang.Object
-
- org.prebid.mobile.AdUnit
-
- Direct Known Subclasses:
BannerBaseAdUnit,NativeAdUnit,VideoBaseAdUnit
public abstract class AdUnit extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectadObjectprotected BidLoaderbidLoaderprotected AdUnitConfigurationconfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddContextData(java.lang.String key, java.lang.String value)This method obtains the context data keyword & value for adunit context targeting if the key already exists the value will be appended to the list.voidaddContextKeyword(java.lang.String keyword)This method obtains the context keyword for adunit context targeting Inserts the given element in the set if it is not already present.voidaddContextKeywords(java.util.Set<java.lang.String> keywords)This method obtains the context keyword set for adunit context targeting Adds the elements of the given set to the set.voidaddUserData(DataObject dataObject)voidclearContextData()This method allows to remove all context data set from adunit context targetingvoidclearContextKeywords()This method allows to remove all keywords from the set of adunit context targetingvoidclearUserData()protected ResultCodeconvertToResultCode(AdException renderingException)protected BidRequesterListenercreateBidListener(OnCompleteListener originalListener)voidfetchDemand(java.lang.Object adObj, OnCompleteListener listener)voidfetchDemand(OnCompleteListener2 listener)ContentObjectgetAppContent()AdUnitConfigurationgetConfiguration()java.lang.StringgetPbAdSlot()java.util.ArrayList<DataObject>getUserData()voidremoveContextData(java.lang.String key)This method allows to remove specific context data keyword & values set from adunit context targetingvoidremoveContextKeyword(java.lang.String keyword)This method allows to remove specific context keyword from adunit context targetingvoidresumeAutoRefresh()voidsetAppContent(ContentObject content)This method obtains the content for adunit, content, in which impression will appearvoidsetAutoRefreshInterval(int seconds)voidsetAutoRefreshPeriodMillis(int periodMillis)Deprecated.Please use setAutoRefreshInterval() in seconds!voidsetPbAdSlot(java.lang.String pbAdSlot)voidstopAutoRefresh()voidupdateContextData(java.lang.String key, java.util.Set<java.lang.String> value)This method obtains the context data keyword & values for adunit context targeting the values if the key already exist will be replaced with the new set of values
-
-
-
Field Detail
-
configuration
protected AdUnitConfiguration configuration
-
bidLoader
protected BidLoader bidLoader
-
adObject
protected java.lang.Object adObject
-
-
Method Detail
-
setAutoRefreshPeriodMillis
@Deprecated public void setAutoRefreshPeriodMillis(int periodMillis)
Deprecated.Please use setAutoRefreshInterval() in seconds!
-
setAutoRefreshInterval
public void setAutoRefreshInterval(int seconds)
-
resumeAutoRefresh
public void resumeAutoRefresh()
-
stopAutoRefresh
public void stopAutoRefresh()
-
fetchDemand
public void fetchDemand(OnCompleteListener2 listener)
-
fetchDemand
public void fetchDemand(java.lang.Object adObj, OnCompleteListener listener)
-
addContextData
public void addContextData(java.lang.String key, java.lang.String value)This method obtains the context data keyword & value for adunit context targeting if the key already exists the value will be appended to the list. No duplicates will be added
-
updateContextData
public void updateContextData(java.lang.String key, java.util.Set<java.lang.String> value)This method obtains the context data keyword & values for adunit context targeting the values if the key already exist will be replaced with the new set of values
-
removeContextData
public void removeContextData(java.lang.String key)
This method allows to remove specific context data keyword & values set from adunit context targeting
-
clearContextData
public void clearContextData()
This method allows to remove all context data set from adunit context targeting
-
addContextKeyword
public void addContextKeyword(java.lang.String keyword)
This method obtains the context keyword for adunit context targeting Inserts the given element in the set if it is not already present.
-
addContextKeywords
public void addContextKeywords(java.util.Set<java.lang.String> keywords)
This method obtains the context keyword set for adunit context targeting Adds the elements of the given set to the set.
-
removeContextKeyword
public void removeContextKeyword(java.lang.String keyword)
This method allows to remove specific context keyword from adunit context targeting
-
clearContextKeywords
public void clearContextKeywords()
This method allows to remove all keywords from the set of adunit context targeting
-
setAppContent
public void setAppContent(ContentObject content)
This method obtains the content for adunit, content, in which impression will appear
-
getAppContent
public ContentObject getAppContent()
-
addUserData
public void addUserData(DataObject dataObject)
-
getUserData
public java.util.ArrayList<DataObject> getUserData()
-
clearUserData
public void clearUserData()
-
getPbAdSlot
public java.lang.String getPbAdSlot()
-
setPbAdSlot
public void setPbAdSlot(java.lang.String pbAdSlot)
-
createBidListener
protected BidRequesterListener createBidListener(OnCompleteListener originalListener)
-
convertToResultCode
protected ResultCode convertToResultCode(AdException renderingException)
-
getConfiguration
public AdUnitConfiguration getConfiguration()
-
-