Package 

Class AdMobOpenWrapCustomEventUtil

  • All Implemented Interfaces:

    
    public class AdMobOpenWrapCustomEventUtil
    
                        

    This class holds all the helper methods required by AdMobOpenWrap custom event classes.

    • 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
    • Constructor Detail

    • Method Detail

      • convertToAdError

        @NonNull() static AdError convertToAdError(@NonNull() POBError pobError)

        Method to get the appropriate AdMob ad Error for a POBError

        Parameters:
        pobError - POBError
      • setAdRequestParameters

         static void setAdRequestParameters(@NonNull() POBRequest request, @NonNull() Bundle extras)

        Set request parameters passed in bundle

        Parameters:
        request - POBRequest instance
        extras - extra bundle information passed to AdMob adapter
      • setImpressionParameters

         static void setImpressionParameters(@NonNull() POBImpression impression, @NonNull() Bundle extras)

        Set impression parameters passed in bundle

        Parameters:
        impression - POBImpression instance
        extras - extra bundle information passed to AdMob adapter
      • setNativeAdLoaderConfigParameters

         static void setNativeAdLoaderConfigParameters(@NonNull() POBNativeAdLoader nativeAdLoader, @NonNull() Bundle extras)

        Set POBNativeAdLoaderConfig parameters passed in bundle parameters like POBNativeContextType, POBNativeContextSubType and POBNativePlacementType

      • logAdapterError

         static void logAdapterError(@NonNull() String tag, @NonNull() POBError error)

        Internal method to log Adapter error

        Parameters:
        tag - The log TAG i.
        error - The instance of POBError which is going to be logged as a reason
      • notifyLoadError

         static void notifyLoadError(@Nullable() MediationAdLoadCallback mediationAdLoadCallback, @NonNull() POBError pobError)

        Method to notify load ad error to custom event

        Parameters:
        pobError - OpenWrap error
      • isTablet

         static boolean isTablet(@NonNull() Context context)

        Method to check the type of the device.

        Parameters:
        context - of the current device [Tablet OR Phone].
      • isStandardSize

         static boolean isStandardSize(@NonNull() AdSize adSize)

        Compare the AdSize with standard fixed POBAdSizes.

        Parameters:
        adSize - AdSize class instance received from AdMob API.