public class DFPBannerEventHandler
extends com.pubmatic.sdk.openwrap.banner.POBBannerEvent
implements com.google.android.gms.ads.admanager.AppEventListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
DFPBannerEventHandler.DFPConfigListener
Interface to get the GAM view and it's request builder, to configure the properties.
|
| Constructor and Description |
|---|
DFPBannerEventHandler(android.content.Context context,
java.lang.String adUnitId,
com.google.android.gms.ads.AdSize... adSizes)
Constructor to initialise GAM AdView with required properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
android.view.View |
getAdServerView() |
com.pubmatic.sdk.common.POBAdSize |
getAdSize() |
void |
onAppEvent(java.lang.String key,
java.lang.String bidId) |
void |
requestAd(com.pubmatic.sdk.openwrap.core.POBBid bid) |
com.pubmatic.sdk.common.POBAdSize[] |
requestedAdSizes() |
void |
setAppEventListener(GAMAppEventListener listener)
Sets the App event listener object.
|
void |
setConfigListener(DFPBannerEventHandler.DFPConfigListener listener)
Sets the Data listener object.
|
void |
setEventListener(com.pubmatic.sdk.openwrap.banner.POBBannerEventListener eventListener) |
public DFPBannerEventHandler(@NonNull
android.content.Context context,
@NonNull
java.lang.String adUnitId,
@NonNull
com.google.android.gms.ads.AdSize... adSizes)
context - Activity / App contextadUnitId - GAM ad unit IDadSizes - valid ad sizes for bannerpublic void setConfigListener(@Nullable
DFPBannerEventHandler.DFPConfigListener listener)
listener - DFP data listenerpublic void setAppEventListener(@Nullable
GAMAppEventListener listener)
listener - DFP app event listenerpublic void requestAd(@Nullable
com.pubmatic.sdk.openwrap.core.POBBid bid)
requestAd in class com.pubmatic.sdk.openwrap.core.POBBaseEventpublic void destroy()
destroy in class com.pubmatic.sdk.openwrap.core.POBBaseEventpublic void setEventListener(@Nullable
com.pubmatic.sdk.openwrap.banner.POBBannerEventListener eventListener)
setEventListener in class com.pubmatic.sdk.openwrap.banner.POBBannerEvent@Nullable public com.pubmatic.sdk.common.POBAdSize getAdSize()
getAdSize in class com.pubmatic.sdk.openwrap.banner.POBBannerEvent@Nullable public com.pubmatic.sdk.common.POBAdSize[] requestedAdSizes()
requestedAdSizes in class com.pubmatic.sdk.openwrap.banner.POBBannerEvent@Nullable public android.view.View getAdServerView()
getAdServerView in class com.pubmatic.sdk.openwrap.banner.POBBannerEventpublic void onAppEvent(@NonNull
java.lang.String key,
@NonNull
java.lang.String bidId)
onAppEvent in interface com.google.android.gms.ads.admanager.AppEventListener