Summary: Inherited Constants | Methods | Inherited Methods | [Expand All]
public interface

# NativeMediationAdRequest

implements MediationAdRequest

com.google.android.gms.ads.mediation.NativeMediationAdRequest

## Class Overview

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

[Expand] Inherited Constants
From interface com.google.android.gms.ads.mediation.MediationAdRequest
int | TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE | 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).
int | TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE | 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).
int | TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED | 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).

Public Methods
abstract NativeAdOptions | getNativeAdOptions() Returns the `NativeAdOptions` provided with the native ad request.
abstract boolean | isAppInstallAdRequested() Returns whether an app install ad is requested or not.
abstract boolean | isContentAdRequested() Returns whether a content ad is requested or not.

[Expand] Inherited Methods
From interface com.google.android.gms.ads.mediation.MediationAdRequest
abstract Date | getBirthday() Returns the birthday of the user, if defined by the `AdRequest`.
abstract int | getGender() Returns the gender of the user, if defined by the `AdRequest`.
abstract Set<String> | getKeywords() Returns the set of keywords requested by the user, if defined by the `AdRequest`.
abstract Location | getLocation() Returns the location of the user, if defined by the `AdRequest`.
abstract boolean | isDesignedForFamilies() Publishers that have opted into the Designed for Families program may specify that an ad request should return a Designed for Families-compliant ad.
abstract boolean | isTesting() Returns true if the publisher is asking for test ads.
abstract int | taggedForChildDirectedTreatment() 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

#### public abstract NativeAdOptions getNativeAdOptions ()

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

#### public abstract boolean isAppInstallAdRequested ()

Returns whether an app install ad is requested or not.

#### public abstract boolean isContentAdRequested ()

Returns whether a content ad is requested or not.