public class DFPInterstitialEventHandler
extends com.google.android.gms.ads.admanager.AdManagerInterstitialAdLoadCallback
implements com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEvent, com.google.android.gms.ads.admanager.AppEventListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
DFPInterstitialEventHandler.DFPConfigListener
Interface to get the GAM Interstitial ad and it's request builder, to configure the
properties.
|
| Constructor and Description |
|---|
DFPInterstitialEventHandler(android.app.Activity activity,
java.lang.String adUnitId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
com.pubmatic.sdk.openwrap.core.POBFullScreenAdInteractionListener |
getAdInteractionListener() |
com.pubmatic.sdk.common.ui.POBInterstitialRendering |
getRenderer(java.lang.String partnerName) |
void |
onAdFailedToLoad(com.google.android.gms.ads.LoadAdError loadAdError) |
void |
onAdLoaded(com.google.android.gms.ads.admanager.AdManagerInterstitialAd interstitialAd) |
void |
onAppEvent(java.lang.String key,
java.lang.String bidId) |
void |
requestAd(com.pubmatic.sdk.openwrap.core.POBBid bid) |
void |
setConfigListener(DFPInterstitialEventHandler.DFPConfigListener listener)
Sets the Data listener object.
|
void |
setEventListener(com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEventListener listener) |
void |
show() |
public DFPInterstitialEventHandler(@NonNull
android.app.Activity activity,
@NonNull
java.lang.String adUnitId)
activity - Activity instanceadUnitId - SDP ad unit IDpublic void setConfigListener(@Nullable
DFPInterstitialEventHandler.DFPConfigListener listener)
listener - GAM data listenerpublic void requestAd(@Nullable
com.pubmatic.sdk.openwrap.core.POBBid bid)
requestAd in interface com.pubmatic.sdk.openwrap.core.POBBaseEventpublic void destroy()
destroy in interface com.pubmatic.sdk.openwrap.core.POBBaseEventpublic void setEventListener(@NonNull
com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEventListener listener)
setEventListener in interface com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEvent@Nullable public com.pubmatic.sdk.common.ui.POBInterstitialRendering getRenderer(java.lang.String partnerName)
getRenderer in interface com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEventpublic void show()
show in interface com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEvent@Nullable public com.pubmatic.sdk.openwrap.core.POBFullScreenAdInteractionListener getAdInteractionListener()
getAdInteractionListener in interface com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEventpublic void onAppEvent(@NonNull
java.lang.String key,
@NonNull
java.lang.String bidId)
onAppEvent in interface com.google.android.gms.ads.admanager.AppEventListenerpublic void onAdFailedToLoad(@NonNull
com.google.android.gms.ads.LoadAdError loadAdError)
onAdFailedToLoad in class com.google.android.gms.ads.AdLoadCallback<com.google.android.gms.ads.admanager.AdManagerInterstitialAd>public void onAdLoaded(@NonNull
com.google.android.gms.ads.admanager.AdManagerInterstitialAd interstitialAd)
onAdLoaded in class com.google.android.gms.ads.AdLoadCallback<com.google.android.gms.ads.admanager.AdManagerInterstitialAd>