Class AdUnit

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      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.
      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.
      void addUserData​(DataObject dataObject)  
      void clearContextData()
      This method allows to remove all context data set from adunit context targeting
      void clearContextKeywords()
      This method allows to remove all keywords from the set of adunit context targeting
      void clearUserData()  
      void fetchDemand​(java.lang.Object adObj, OnCompleteListener listener)  
      void fetchDemand​(OnCompleteListener2 listener)  
      ContentObject getAppContent()  
      java.lang.String getPbAdSlot()  
      java.util.ArrayList<DataObject> getUserData()  
      void removeContextData​(java.lang.String key)
      This method allows to remove specific context data keyword & values set from adunit context targeting
      void removeContextKeyword​(java.lang.String keyword)
      This method allows to remove specific context keyword from adunit context targeting
      void resumeAutoRefresh()  
      void setAppContent​(ContentObject content)
      This method obtains the content for adunit, content, in which impression will appear
      void setAutoRefreshPeriodMillis​(int periodMillis)  
      void setPbAdSlot​(java.lang.String pbAdSlot)  
      void stopAutoRefresh()  
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setAutoRefreshPeriodMillis

        public void setAutoRefreshPeriodMillis​(int periodMillis)
      • resumeAutoRefresh

        public void resumeAutoRefresh()
      • stopAutoRefresh

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