public class GAMNativeEventHandler
extends com.pubmatic.sdk.nativead.POBNativeAdEvent
implements com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration
Please refer: GAM Native Overview GAM NativeCustomFormatAd
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration.GAMAdTypes, com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration.NativeAdRendererListener, com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration.NativeCustomFormatAdRendererListener| Constructor and Description |
|---|
GAMNativeEventHandler(Context context,
java.lang.String adUnitId,
java.lang.String openWrapFormatId,
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration.GAMAdTypes... adTypes)
Constructor to initialize required properties using that Event Handler build ad request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNativeCustomFormatAd(java.lang.String customFormatId,
com.google.android.gms.ads.nativead.NativeCustomFormatAd.OnCustomClickListener customClickListener)
Enables the GAMNativeEventHandler to load custom format ads through GAMs API.
|
com.pubmatic.sdk.nativead.POBNativeAdEventBridge |
createNativeAdEventBridge()
Creates and returns the instance of
POBNativeAdEventBridge, which faciliates bridging the Primary
ad server SDK through OpenWrap SDK for Native ads |
void |
setConfigListener(com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMConfigListener configListener)
With configListener publisher can configure the ad request properties on the provided objects.
|
void |
setNativeAdOptions(com.google.android.gms.ads.nativead.NativeAdOptions nativeAdOptions)
Used to configure native ad requests by additional customizations like setReturnUrlsForImageAssets,
setAdChoicesPlacement, setMediaAspectRatio, etc.
|
void |
setNativeAdRendererListener(com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration.NativeAdRendererListener nativeAdRendererListener)
Used for runtime rendering of
NativeAd by providing native ad rendering on the app side |
void |
setNativeCustomFormatAdRendererListener(com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration.NativeCustomFormatAdRendererListener nativeCustomFormatAdRendererListener)
Used for runtime rendering of
NativeCustomFormatAd by providing native ad rendering on the app side |
public GAMNativeEventHandler(@NonNull
Context context,
@NonNull
java.lang.String adUnitId,
@NonNull
java.lang.String openWrapFormatId,
@NonNull
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration.GAMAdTypes... adTypes)
context - Instance of application contextadUnitId - GAM ad unit idopenWrapFormatId - Custom format ID defined in the Ad Manager UI for openwrap creativeadTypes - varargs containing ad type GAMAdTypes@NonNull public com.pubmatic.sdk.nativead.POBNativeAdEventBridge createNativeAdEventBridge()
com.pubmatic.sdk.nativead.POBNativeAdEventPOBNativeAdEventBridge, which faciliates bridging the Primary
ad server SDK through OpenWrap SDK for Native adscreateNativeAdEventBridge in class com.pubmatic.sdk.nativead.POBNativeAdEventPOBNativeAdEventBridgepublic void setNativeAdOptions(@Nullable
com.google.android.gms.ads.nativead.NativeAdOptions nativeAdOptions)
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationNativeAdOptions object allows apps to set specific options used in making the requestsetNativeAdOptions in interface com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationnativeAdOptions - Instance of NativeAdOptionspublic void setConfigListener(@Nullable
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMConfigListener configListener)
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationsetConfigListener in interface com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationconfigListener - Instance of GAMConfigListenerpublic void setNativeAdRendererListener(@Nullable
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration.NativeAdRendererListener nativeAdRendererListener)
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationNativeAd by providing native ad rendering on the app sidesetNativeAdRendererListener in interface com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationnativeAdRendererListener - Instance of GAMNativeConfiguration.NativeAdRendererListenerpublic void setNativeCustomFormatAdRendererListener(@Nullable
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfiguration.NativeCustomFormatAdRendererListener nativeCustomFormatAdRendererListener)
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationNativeCustomFormatAd by providing native ad rendering on the app sidesetNativeCustomFormatAdRendererListener in interface com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationnativeCustomFormatAdRendererListener - Instance of GAMNativeConfiguration.NativeCustomFormatAdRendererListenerpublic void addNativeCustomFormatAd(@NonNull
java.lang.String customFormatId,
@Nullable
com.google.android.gms.ads.nativead.NativeCustomFormatAd.OnCustomClickListener customClickListener)
com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationaddNativeCustomFormatAd in interface com.pubmatic.sdk.openwrap.eventhandler.dfp.GAMNativeConfigurationcustomFormatId - Custom format ID defined in the Ad Manager UI.customClickListener - An optional listener to define custom click logic for ad clicks.
When set, this overrides the ad's default click through behavior of navigating to the click URL defined in the Ad Manager UI.