NativeMediationAdRequest

interface NativeMediationAdRequest : MediationAdRequest


Information about the native ad to fetch for a single publisher. The information is passed through to the ad network's native ad adapter.

Summary

Public functions

Float

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

NativeAdOptions

This function is deprecated. Use getNativeAdRequestOptions() instead.

NativeAdOptions

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

Boolean

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

Boolean

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

Inherited functions

From com.google.android.gms.ads.mediation.MediationAdRequest
Date?

This function is deprecated. This method is deprecated.

Int

This function is deprecated. This method is deprecated.

Set<String>?

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

Location?

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

String?

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

Boolean

This function is deprecated. This method is deprecated.

Boolean

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

Int

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

Int

This function is deprecated. Use [com.google.android.gms.ads.mediation.Adapter] and [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration] instead.

Public functions

getAdVolume

fun getAdVolume(): Float

Returns ad volume as a fraction of system volume. Value will be between 0 and 1 inclusive.

getNativeAdOptions

fun getNativeAdOptions(): NativeAdOptions

Returns the NativeAdOptions provided with the native ad request. It returns null if NativeAdOptions are not provided.

getNativeAdRequestOptions

fun getNativeAdRequestOptions(): NativeAdOptions

Returns the com.google.android.gms.ads.nativead.NativeAdOptions provided with the native ad request.

isAdMuted

fun isAdMuted(): Boolean

Returns whether ad is muted.

isUnifiedNativeAdRequested

fun isUnifiedNativeAdRequested(): Boolean

Returns whether a native ad is requested or not.