-
- All Implemented Interfaces:
public class AdMobOpenWrapCustomEventUtilThis class holds all the helper methods required by AdMobOpenWrap custom event classes.
-
-
Method Summary
Modifier and Type Method Description static AdErrorconvertToAdError(@NonNull() POBError pobError)Method to get the appropriate AdMob ad Error for a POBError static voidsetAdRequestParameters(@NonNull() POBRequest request, @NonNull() Bundle extras)Set request parameters passed in bundle static voidsetImpressionParameters(@NonNull() POBImpression impression, @NonNull() Bundle extras)Set impression parameters passed in bundle static voidsetNativeAdLoaderConfigParameters(@NonNull() POBNativeAdLoader nativeAdLoader, @NonNull() Bundle extras)Set POBNativeAdLoaderConfig parameters passed in bundle parameters like POBNativeContextType, POBNativeContextSubType and POBNativePlacementType static voidlogAdapterError(@NonNull() String tag, @NonNull() POBError error)Internal method to log Adapter error static voidnotifyLoadError(@Nullable() MediationAdLoadCallback mediationAdLoadCallback, @NonNull() POBError pobError)Method to notify load ad error to custom event static VersionInfogetVersionInfo(@NonNull() String versionString)Converts 3 digit string version to VersionInfo static booleanisTablet(@NonNull() Context context)Method to check the type of the device. static booleanisStandardSize(@NonNull() AdSize adSize)Compare the AdSize with standard fixed POBAdSizes. -
-
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 instanceextras- 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 instanceextras- 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
-
getVersionInfo
@NonNull() static VersionInfo getVersionInfo(@NonNull() String versionString)
Converts 3 digit string version to VersionInfo
-
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.
-
-
-
-