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
-
-
Method Summary
All Methods Instance Methods Concrete 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()voidfetchDemand(java.lang.Object adObj, OnCompleteListener listener)voidfetchDemand(OnCompleteListener2 listener)ContentObjectgetAppContent()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 appearvoidsetAutoRefreshPeriodMillis(int periodMillis)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
-
-
-
Method Detail
-
setAutoRefreshPeriodMillis
public void setAutoRefreshPeriodMillis(int periodMillis)
-
resumeAutoRefresh
public void resumeAutoRefresh()
-
stopAutoRefresh
public void stopAutoRefresh()
-
fetchDemand
public void fetchDemand(@NonNull OnCompleteListener2 listener)
-
fetchDemand
public void fetchDemand(@NonNull java.lang.Object adObj, @NonNull 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.
-
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()
-
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
-
getPbAdSlot
public java.lang.String getPbAdSlot()
-
setPbAdSlot
public void setPbAdSlot(java.lang.String pbAdSlot)
-
-