Interface POBBaseAd

  • All Implemented Interfaces:

    
    public interface POBBaseAd
    
                        

    Base interface defining the methods to be implemented by the Ad classes such as POBBannerView, POBInterstitial, POBRewardedAd etc

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void loadAd() Initiate the loading of an Ad
      abstract POBImpression getImpression() Returns an instance of POBImpression which gets created internally.
      abstract POBRequest getAdRequest() Returns an instance of POBRequest, required for setting targeting parameters.
      abstract void destroy() Invoke this method when your activity/fragment is about to destroy.
      abstract void addExtraInfo(@NonNull() String key, @NonNull() Object value) Method to add extra info.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • loadAd

         abstract void loadAd()

        Initiate the loading of an Ad

      • getImpression

        @Nullable() abstract POBImpression getImpression()

        Returns an instance of POBImpression which gets created internally. POBImpression provides the APIs to set PubMatic zone id and other custom parameters.

        Returns:

        Returns an instance of POBImpression.

      • getAdRequest

        @Nullable() abstract POBRequest getAdRequest()

        Returns an instance of POBRequest, required for setting targeting parameters.

        Returns:

        Instance of POBRequest

      • destroy

         abstract void destroy()

        Invoke this method when your activity/fragment is about to destroy. It cleans the resources.

      • addExtraInfo

         abstract void addExtraInfo(@NonNull() String key, @NonNull() Object value)

        Method to add extra info.

        Parameters:
        key - Key corresponding to the use of the data passed.
        value - Value corresponding to the provided key which shall be used either for loading or rendering.