PubMaticSDK

Document created by david.simerly on Nov 21, 2017Last modified by david.simerly on Apr 4, 2018
Version 2Show Document
  • View in full screen mode

PubMatic SDKs

AdRequest

NativeAdSize

PMAdRendered

PMAdRequest

PMAdRequest.AD_TYPE

PMAdRequest.AWT_OPTION

PMAdRequest.ETHNICITY

PMAdRequest.GENDER

PMAdRequest.HASHING_TECHNIQUE

PMAdRequest.OPERID

PMAdRequest.RS

PMAdSize

PMAdSize

PMBannerAdRequest

PMBannerAdView

PMBannerAdView.BannerAdViewDelegate

PMBannerAdView.BannerAdViewDelegate.
     ActivityListener

PMBannerAdView.BannerAdViewDelegate.
     FeatureSupportHandler

PMBannerAdView.BannerAdViewDelegate.
     InternalBrowserListener

PMBannerAdView.BannerAdViewDelegate.
     RequestListener

PMBannerAdView.BannerAdViewDelegate.
     RichMediaListener

PMBannerImpression

PMBid

PMError

PMImpression

PMInterstitialAd

PMInterstitialAd.InterstitialAdListener

PMInterstitialAd.InterstitialAdListener.
     ActivityListener

PMInterstitialAd.InterstitialAdListener.
     FeatureSupportHandler

PMInterstitialAd.InterstitialAdListener.
     InternalBrowserListener

PMInterstitialAd.InterstitialAdListener.
     RequestListener

PMInterstitialAd.InterstitialAdListener.
     RichMediaListener

PMInterstitialAdRequest

PMLogger

PMLogger.LogListener

PMLogger.PMLogLevel

PMNativeAd

PMNativeAd.Image

PMNativeAd.NativeRequestListener

PMNativeAdRequest

PMNativeAssetRequest

PMNativeAssetResponse

PMNativeDataAssetRequest

PMNativeDataAssetResponse

PMNativeDataAssetTypes

PMNativeImageAssetRequest

PMNativeImageAssetResponse

PMNativeImageAssetTypes

PMNativeTitleAssetRequest

PMNativeTitleAssetResponse

PMPrefetchManager

PMPrefetchManager.PMPrefetchListener

PMPrefetchRequest

➤ PubMaticSDK


PubMatic Android SDK Guide

com.pubmatic.sdk.common

Class PubMaticSDK

java.lang.Object
    com.pubmatic.sdk.common.PubMaticSDK

public class PubMaticSDK
extends java.lang.Object

 

Class to provide configuration properties for PubMatic SDK

 

Constructor Summary

Constructor and Description
PubMaticSDK() 

 

Method Summary

Modifier and TypeMethod and Description
static java.lang.stringgetSDKVersion() Returns the SDK version
static BooleanisLocationDetectionEnabled() Determines if location detection is enabled.
static voidsetLocationDetectionEnabled(Boolean state) Enables or disable SDK location detection.
static voidsetLogLevel(PMLogger.PMLogLevel level) Sets the log level of the instance.

 

Methods inherited from class java.lang.Object


clone, equals, finalize, getClass, hashCode, notify, notifyAll, tostring, wait, wait, wait

 

Constructor Detail


PubMaticSDK

public PubMaticSDK()

 

Method Detail


setLogLevel

public static void setLogLevel(PMLogger.PMLogLevel level)

 

Sets the log level of the instance. Logging is done through console logging.

 

Parameters:
level - PMLogLevel

 

getSDKVersion

public static java.lang.string getSDKVersion()

 

Returns the SDK version

 

Returns:

 

setLocationDetectionEnabled

public static void setLocationDetectionEnabled(Boolean state)

 

Enables or disable SDK location detection. If enabled with this method the most battery optimized settings are used. This method is used to disable location detection for either method of enabling location detection. Default value is true.

 

Permissions for coarse or fine location detection may be required.

 

 

Parameters:
state -

 

isLocationDetectionEnabled

public static Boolean isLocationDetectionEnabled()

 

Determines if location detection is enabled. If enabled, the SDK will use the location services of the device to determine the device's location ad add ad request parameters (lat/long) to the ad request. Location detection can be enabled with setLocationDetectionEnabled() or enableLocationDetection().

 

Returns:
true if location detection is enabled, false if not

 

Attachments

    Outcomes