public class DFPInterstitialEventHandler
extends com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEvent
implements 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(Activity activity,
java.lang.String adUnitId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
OpenWrap SDK calls this method to perform any final cleanup.
|
void |
onAppEvent(java.lang.String key,
java.lang.String bidId) |
void |
requestAd(POBBid bid)
OpenWrap SDK calls this method to make a request to primary SDK.
|
void |
setAppEventListener(GAMAppEventListener listener)
Sets the App event listener object.
|
void |
setConfigListener(DFPInterstitialEventHandler.DFPConfigListener listener)
Sets the Data listener object.
|
void |
setEventListener(com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEventListener listener)
OpenWrap SDK calls this method to pass the EventListener to publisher.
|
void |
show()
OpenWrap SDK will call this method when publisher app calls show on POBInterstitial.
|
public DFPInterstitialEventHandler(@NonNull 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 setAppEventListener(@Nullable GAMAppEventListener listener)
listener
- DFP app event listenerpublic void requestAd(@Nullable POBBid bid)
com.pubmatic.sdk.openwrap.core.POBBaseEvent
requestAd
in class com.pubmatic.sdk.openwrap.core.POBBaseEvent
bid
- winning bid for the requested impressionpublic void destroy()
com.pubmatic.sdk.openwrap.core.POBBaseEvent
destroy
in class com.pubmatic.sdk.openwrap.core.POBBaseEvent
public void setEventListener(@NonNull com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEventListener listener)
com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEvent
setEventListener
in class com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEvent
listener
- event listenerpublic void show()
com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEvent
Note: This method must be invoked from Main thread.
show
in class com.pubmatic.sdk.openwrap.interstitial.POBInterstitialEvent
public void onAppEvent(@NonNull java.lang.String key, @NonNull java.lang.String bidId)
onAppEvent
in interface com.google.android.gms.ads.admanager.AppEventListener