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

Returns ad volume as a fraction of system volume.

abstract @NonNull NativeAdOptions

This method is deprecated. Use getNativeAdRequestOptions() instead.

abstract @NonNull NativeAdOptions

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

abstract boolean

Returns whether ad is muted.

abstract boolean

Returns whether a native ad is requested or not.

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>

Returns the set of keywords requested by the user, if defined by the ad request.

abstract Location

Returns the location of the user, if defined by the ad request.

abstract String

Returns the maximum ad content rating for this request.

abstract boolean

This method is deprecated. This method is deprecated.

abstract boolean

Returns true if the publisher is asking for test ads.

abstract int

Returns whether the publisher indicated that the app is to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA) - http://business.ftc.gov/privacy-and-security/childrens-privacy.

abstract int

Returns whether the publisher indicated that the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent, if defined by the ad request.

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.