NativeMediationAdRequest

public interface NativeMediationAdRequest extends 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 methods

abstract float

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

abstract @NonNull NativeAdOptions

This method is deprecated. Use getNativeAdRequestOptions() instead.

abstract @NonNull NativeAdOptions

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

abstract boolean

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

abstract boolean

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

Inherited methods

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

This method is deprecated. This method is deprecated.

abstract int

This method is deprecated. This method is deprecated.

abstract Set<@NonNull String>

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

abstract Location

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

abstract String

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

abstract boolean

This method is deprecated. This method is deprecated.

abstract boolean

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

abstract int

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

abstract int

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

Public methods

getAdVolume

abstract float getAdVolume()

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

getNativeAdOptions

abstract @NonNull NativeAdOptions getNativeAdOptions()

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

getNativeAdRequestOptions

abstract @NonNull NativeAdOptions getNativeAdRequestOptions()

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

isAdMuted

abstract boolean isAdMuted()

Returns whether ad is muted.

isUnifiedNativeAdRequested

abstract boolean isUnifiedNativeAdRequested()

Returns whether a native ad is requested or not.