PMInterstitialAd

Document created by david.simerly on Nov 21, 2017Last modified by david.simerly on Apr 3, 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.banner

Class PMInterstitialAd

java.lang.Object
    com.pubmatic.sdk.banner.PMInterstitialAd

 

All Implemented Interfaces:
PMAdRendered

public class PMInterstitialAdextends java.lang.Object implements PMAdRendered

 

Nested Class Summary

Modifier and TypeClass and Description
static interface 

PMInterstitialAd.

InterstitialAdListener 

 

Constructor Summary

Constructor and Description
PMInterstitialAd(android.content.Context context) Constructor

 

Method Summary

Modifier and TypeMethod and Description
voidclose() 
voiddestroy() Resets instance state to it's default (doesn't destroy configured parameters).
PMInterstitialAd.InterstitialAdListener.ActivityListenergetActivityListener() 
PMInterstitialAd.InterstitialAdListener.FeatureSupportHandlergetFeatureSupportHandler() 
PMInterstitialAd.InterstitialAdListener.InternalBrowserListenergetInternalBrowserListener() 
PMInterstitialAd.InterstitialAdListener.RequestListenergetRequestListener() 
PMInterstitialAd.InterstitialAdListener.RichMediaListenergetRichMediaListener() 
android.view.ViewgetView() 
BooleanisReady() 
voidloadRequest(AdRequest adrequest) 
voidrenderPrefetchedAd(java.lang.string impressionId, com.pubmatic.sdk.common.ResponseGenerator responseGenerator) 
voidsetActivityListener(PMInterstitialAd.InterstitialAdListener.ActivityListener listener) 
voidsetCloseButtonCustomDrawable(android.graphics.drawable.Drawable closeButtonCustomDrawable) Allows custom close buttons to override SDK default.
voidsetFeatureSupportHandler(PMInterstitialAd.InterstitialAdListener.FeatureSupportHandler handler) 
voidsetInternalBrowserListener(PMInterstitialAd.InterstitialAdListener.InternalBrowserListener listener) 
voidsetRequestListener(PMInterstitialAd.InterstitialAdListener.RequestListener listener) 
voidsetRichMediaListener(PMInterstitialAd.InterstitialAdListener.RichMediaListener listener) 
voidsetUseInternalBrowser(Boolean useInternalBrowser) Controls enablement of the internal browser.
voidshow() 
voidshowCloseButtonAfterDelay(int closeButtonDelay)
Sets the delay time between showing an interstitial with show() and showing the close button.
voidshowForDuration(int durationSeconds) 

 

Methods inherited from class java.lang.Object


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

 

Constructor Detail


PMInterstitialAd

public PMInterstitialAd(android.content.Context context)

 

Constructor

 

Parameters:
context -

 

Method Detail


 

renderPrefetchedAd

public void renderPrefetchedAd(java.lang.string impressionId,                                com.pubmatic.sdk.common.ResponseGenerator responseGenerator)

 

 

Specified by:
renderPrefetchedAd in interface PMAdRendered

 

getActivityListener

public PMInterstitialAd.InterstitialAdListener.ActivityListener getActivityListener()

 

setActivityListener

public void setActivityListener(PMInterstitialAd.InterstitialAdListener.ActivityListener listener)

 

getFeatureSupportHandler

public PMInterstitialAd.InterstitialAdListener.FeatureSupportHandler getFeatureSupportHandler()

 

setFeatureSupportHandler

public void setFeatureSupportHandler(PMInterstitialAd.InterstitialAdListener.FeatureSupportHandler handler)

 

getInternalBrowserListener

public PMInterstitialAd.InterstitialAdListener.InternalBrowserListener getInternalBrowserListener()

 

setInternalBrowserListener

public void setInternalBrowserListener(PMInterstitialAd.InterstitialAdListener.InternalBrowserListener listener)

 

getRequestListener

public PMInterstitialAd.InterstitialAdListener.RequestListener getRequestListener()

 

setRequestListener

public void setRequestListener(PMInterstitialAd.InterstitialAdListener.RequestListener listener)

 

getRichMediaListener

public PMInterstitialAd.InterstitialAdListener.RichMediaListener getRichMediaListener()

 

setRichMediaListener

public void setRichMediaListener(PMInterstitialAd.InterstitialAdListener.RichMediaListener listener)

 

close

public void close()

 

loadRequest

public void loadRequest(AdRequest adrequest)                  throws java.lang.IllegalArgumentException

 

 

Throws:
java.lang.IllegalArgumentException

 

isReady

public Boolean isReady()

 

show

public void show()

 

showForDuration

public void showForDuration(int durationSeconds)

 

destroy

public void destroy()

 

Resets instance state to it's default (doesn't destroy configured parameters). Stops update interval timer, closes internal browser if open, disables location detection.

 

Invoke this method to stop any ad processing.

 

 

showCloseButtonAfterDelay

public void showCloseButtonAfterDelay(int closeButtonDelay)

 

Sets the delay time between showing an interstitial with show() and showing the close button. A value of 0 indicates the button should be shown immediately.

 

Parameters:
closeButtonDelay - Time interval in seconds to delay showing a close button after showing interstitial ad.

 

setUseInternalBrowser

public void setUseInternalBrowser(Boolean useInternalBrowser)

 

Controls enablement of the internal browser. If used, a dialog will be used to show a browser in the application for ads that are clicked on (that open URLs). If not used an intent is started to invoke the system browser (or whatever is configured to handle the intent).

 

Parameters:
useInternalBrowser - true to use the internal browser, false to not use the internal browser.

 

setCloseButtonCustomDrawable

public void setCloseButtonCustomDrawable(android.graphics.drawable.Drawable closeButtonCustomDrawable)

 

Allows custom close buttons to override SDK default. If set the provided drawable will be used for the close button for interstitial and rich media ads (if ad uses SDK provided close button).

 

Parameters:
closeButtonCustomDrawable - Drawable used to override the default close button image or null to use the default.

 

getView

public android.view.View getView()

 

Attachments

    Outcomes