public interface GAMNativeConfiguration
| Modifier and Type | Interface and Description |
|---|---|
static class |
GAMNativeConfiguration.GAMAdTypes
Ad types helps the signaling mechanism by determining which adserver has won
On the basis of the ad type, ad loaded listener get set.
|
static interface |
GAMNativeConfiguration.NativeAdRendererListener
Listener to provide native ad rendering on the app side
|
static interface |
GAMNativeConfiguration.NativeCustomFormatAdRendererListener
Listener to provide custom format native ad rendering on the app side
|
| 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.
|
void |
setConfigListener(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(GAMNativeConfiguration.NativeAdRendererListener nativeAdRendererListener)
Used for runtime rendering of
NativeAd by providing native ad rendering on the app side |
void |
setNativeCustomFormatAdRendererListener(GAMNativeConfiguration.NativeCustomFormatAdRendererListener nativeCustomFormatAdRendererListener)
Used for runtime rendering of
NativeCustomFormatAd by providing native ad rendering on the app side |
void setNativeAdOptions(@Nullable
com.google.android.gms.ads.nativead.NativeAdOptions nativeAdOptions)
NativeAdOptions object allows apps to set specific options used in making the requestnativeAdOptions - Instance of NativeAdOptionsvoid setConfigListener(@Nullable
GAMConfigListener configListener)
configListener - Instance of GAMConfigListenervoid setNativeAdRendererListener(@Nullable
GAMNativeConfiguration.NativeAdRendererListener nativeAdRendererListener)
NativeAd by providing native ad rendering on the app sidenativeAdRendererListener - Instance of GAMNativeConfiguration.NativeAdRendererListenervoid setNativeCustomFormatAdRendererListener(@Nullable
GAMNativeConfiguration.NativeCustomFormatAdRendererListener nativeCustomFormatAdRendererListener)
NativeCustomFormatAd by providing native ad rendering on the app sidenativeCustomFormatAdRendererListener - Instance of GAMNativeConfiguration.NativeCustomFormatAdRendererListenervoid addNativeCustomFormatAd(@NonNull
java.lang.String customFormatId,
@Nullable
com.google.android.gms.ads.nativead.NativeCustomFormatAd.OnCustomClickListener customClickListener)
customFormatId - 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.