@MainThread
public class POBInterstitial
extends java.lang.Object
| 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 |
addBidderSlotInfo(java.lang.String bidderId,
java.util.Map slotInfo)
To add slot details for a specific bidder.
|
void |
destroy()
Invoke this method when your activity/fragment is about to destroy.
|
POBRequest |
getAdRequest()
Returns an instance of POBRequest, required for setting targeting parameters.
|
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 |
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,
@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 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 void addBidderSlotInfo(@NonNull
java.lang.String bidderId,
@NonNull
java.util.Map slotInfo)
bidderId - the Id/name of the bidderslotInfo - Slot details for a specific bidder. To add multiple slot details,
call this method again with respective slot details.public void loadAd()
@Nullable public POBRequest getAdRequest()
public void show()
public boolean isReady()
public void setListener(POBInterstitial.POBInterstitialListener listener)
listener - Instance of POBInterstitialListenerpublic void setVideoListener(POBInterstitial.POBVideoListener listener)
listener - Instance of POBVideoListenerpublic void destroy()
public POBImpression getImpression()