@MainThread
public class POBInterstitial
extends java.lang.Object
implements com.pubmatic.sdk.openwrap.core.POBBidEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
POBInterstitial.POBInterstitialListener
Static member class for interaction with the POBInterstitial instance.
|
static class |
POBInterstitial.POBVideoListener
Static member class for interaction with the POBInterstitial instance for video events.
|
| Constructor and Description |
|---|
POBInterstitial(android.content.Context context,
java.lang.String publisherId,
int profileId,
java.lang.String adUnitId)
Constructor.
|
POBInterstitial(android.content.Context context,
java.lang.String publisherId,
int profileId,
java.lang.String adUnitId,
POBInterstitialEvent listener)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Invoke this method when your activity/fragment is about to destroy.
|
com.pubmatic.sdk.openwrap.core.POBRequest |
getAdRequest()
Returns an instance of POBRequest, required for setting targeting parameters.
|
com.pubmatic.sdk.openwrap.core.POBBid |
getBid()
Get bid
|
com.pubmatic.sdk.openwrap.core.POBImpression |
getImpression()
Returns an instance of POBImpression which gets created internally.
|
boolean |
isReady()
Method to check whether the ad is loaded and ready to show InterstitialAd.
|
void |
loadAd()
Initiate the loading of an interstitial ad
|
void |
proceedOnError(com.pubmatic.sdk.openwrap.core.POBBidEvent.BidEventError error) |
boolean |
proceedToLoadAd() |
void |
setBidEventListener(com.pubmatic.sdk.openwrap.core.POBBidEventListener bidEventListener)
Sets the BidEventListener for the ad view
Note: Proper reference management practices should be observed when using this listener
|
void |
setListener(POBInterstitial.POBInterstitialListener listener)
Sets instance of POBInterstitialListener for getting callbacks
|
void |
setVideoListener(POBInterstitial.POBVideoListener listener)
Sets instance of POBVideoListener for getting callbacks of VAST based video ad
|
void |
show()
Presents an interstitial ad in full screen view until the user dismisses it.
|
public POBInterstitial(@NonNull
android.content.Context context,
@NonNull
java.lang.String publisherId,
int profileId,
@NonNull
java.lang.String adUnitId)
context - Activity/Application contextpublisherId - Identifier of the publisherprofileId - Profile ID of an ad tagadUnitId - Ad unit id used to identify unique placement on screenpublic POBInterstitial(@NonNull
android.content.Context context,
@NonNull
java.lang.String publisherId,
int profileId,
@NonNull
java.lang.String adUnitId,
@NonNull
POBInterstitialEvent listener)
context - Activity/Application contextpublisherId - Identifier of the publisherprofileId - Profile ID of an ad tagadUnitId - Ad unit id used to identify unique placement on screenlistener - Valid instance of POBInterstitialEventpublic void loadAd()
@Nullable public com.pubmatic.sdk.openwrap.core.POBImpression getImpression()
@Nullable public com.pubmatic.sdk.openwrap.core.POBRequest getAdRequest()
public void show()
public boolean isReady()
public void setListener(@Nullable
POBInterstitial.POBInterstitialListener listener)
listener - Instance of POBInterstitialListenerpublic void setVideoListener(@Nullable
POBInterstitial.POBVideoListener listener)
listener - Instance of POBVideoListenerpublic void setBidEventListener(@Nullable
com.pubmatic.sdk.openwrap.core.POBBidEventListener bidEventListener)
setBidEventListener in interface com.pubmatic.sdk.openwrap.core.POBBidEventbidEventListener - reference of POBBidEventListenerpublic boolean proceedToLoadAd()
proceedToLoadAd in interface com.pubmatic.sdk.openwrap.core.POBBidEventpublic void proceedOnError(@NonNull
com.pubmatic.sdk.openwrap.core.POBBidEvent.BidEventError error)
proceedOnError in interface com.pubmatic.sdk.openwrap.core.POBBidEvent@Nullable public com.pubmatic.sdk.openwrap.core.POBBid getBid()
getBid in interface com.pubmatic.sdk.openwrap.core.POBBidEventpublic void destroy()