Google is committed to advancing racial equity for Black communities. See how.

NativeMediationAdRequest

public interface NativeMediationAdRequest implements MediationAdRequest

This interface is deprecated.
Use Adapter and MediationNativeAdConfiguration instead.

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

Inherited Constant Summary

Public Method Summary

abstract float
getAdVolume()
Returns ad volume as a fraction of system volume.
abstract NativeAdOptions
getNativeAdOptions()
This method is deprecated. Use getNativeAdRequestOptions().
abstract NativeAdOptions
getNativeAdRequestOptions()
Returns the NativeAdOptions provided with the native ad request.
abstract boolean
isAdMuted()
Returns whether ad is muted.
abstract boolean
isUnifiedNativeAdRequested()
Returns whether an unified native ad is requested or not.

Inherited Method Summary

Public Methods

public abstract float getAdVolume ()

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

public abstract NativeAdOptions getNativeAdOptions ()

This method is deprecated.
Use getNativeAdRequestOptions().

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

public abstract NativeAdOptions getNativeAdRequestOptions ()

Returns the NativeAdOptions provided with the native ad request.

public abstract boolean isAdMuted ()

Returns whether ad is muted.

public abstract boolean isUnifiedNativeAdRequested ()

Returns whether an unified native ad is requested or not.