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 NativeAdOptions

This method is deprecated.

Use getNativeAdRequestOptions.

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 an unified native ad is requested or not.

Inherited Constants

From com.google.android.gms.ads.mediation.MediationAdRequest
default static final int

As returned by taggedForChildDirectedTreatment, indicates that the app should not be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

default static final int

As returned by taggedForChildDirectedTreatment, indicates that the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

default static final int

As returned by taggedForChildDirectedTreatment, indicates that the publisher has not specified whether the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

Inherited methods

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

This method is deprecated.

abstract int

This method is deprecated.

abstract Set<String>

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

abstract Location

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

abstract boolean

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.

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 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 an unified native ad is requested or not.