Class AdUnit

    • Field Detail

      • adObject

        protected java.lang.Object adObject
      • allowNullableAdObject

        protected boolean allowNullableAdObject
    • Constructor Detail

      • AdUnit

        public AdUnit​(java.lang.String configId)
    • 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()
      • destroy

        public void destroy()
      • fetchDemand

        public void fetchDemand​(java.lang.Object adObj,
                                OnCompleteListener listener)
      • addContextData

        @Deprecated
        public void addContextData​(java.lang.String key,
                                   java.lang.String value)
        Deprecated.
        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

        @Deprecated
        public void updateContextData​(java.lang.String key,
                                      java.util.Set<java.lang.String> value)
        Deprecated.
        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

        @Deprecated
        public void removeContextData​(java.lang.String key)
        Deprecated.
        This method allows to remove specific context data keyword & values set from adunit context targeting
      • clearContextData

        @Deprecated
        public void clearContextData()
        Deprecated.
        This method allows to remove all context data set from adunit context targeting
      • addExtData

        public void addExtData​(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
      • updateExtData

        public void updateExtData​(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
      • removeExtData

        public void removeExtData​(java.lang.String key)
        This method allows to remove specific context data keyword & values set from adunit context targeting
      • clearExtData

        public void clearExtData()
        This method allows to remove all context data set from adunit context targeting
      • addContextKeyword

        @Deprecated
        public void addContextKeyword​(java.lang.String keyword)
        Deprecated.
        Use addExtKeyword
        This method obtains the context keyword for adunit context targeting Inserts the given element in the set if it is not already present.
      • addContextKeywords

        @Deprecated
        public void addContextKeywords​(java.util.Set<java.lang.String> keywords)
        Deprecated.
        Use addExtKeywords
        This method obtains the context keyword set for adunit context targeting Adds the elements of the given set to the set.
      • removeContextKeyword

        @Deprecated
        public void removeContextKeyword​(java.lang.String keyword)
        Deprecated.
        Use removeExtKeyword
        This method allows to remove specific context keyword from adunit context targeting
      • clearContextKeywords

        @Deprecated
        public void clearContextKeywords()
        Deprecated.
        Use clearExtKeywords
        This method allows to remove all keywords from the set of adunit context targeting
      • addExtKeyword

        public void addExtKeyword​(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.
      • addExtKeywords

        public void addExtKeywords​(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.
      • removeExtKeyword

        public void removeExtKeyword​(java.lang.String keyword)
        This method allows to remove specific context keyword from adunit context targeting
      • clearExtKeywords

        public void clearExtKeywords()
        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
      • 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)