# NativeMediationAdRequest

# NativeMediationAdRequest


```
public interface NativeMediationAdRequest extends MediationAdRequest
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
>
> Use `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/Adapter` and `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/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.

## Summary

| ### Public methods |
|---|---|
| `abstract float` | `[getAdVolume](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#getAdVolume())()` Returns ad volume as a fraction of system volume. |
| `abstract https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/formats/NativeAdOptions` | `[getNativeAdOptions](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#getNativeAdOptions())()` **This method is deprecated.** Use `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#getNativeAdRequestOptions()`. <br /> |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/nativead/NativeAdOptions` | `[getNativeAdRequestOptions](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#getNativeAdRequestOptions())()` Returns the `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/nativead/NativeAdOptions` provided with the native ad request. |
| `abstract boolean` | `[isAdMuted](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#isAdMuted())()` Returns whether ad is muted. |
| `abstract boolean` | `[isUnifiedNativeAdRequested](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#isUnifiedNativeAdRequested())()` Returns whether an unified native ad is requested or not. |

| ### Inherited Constants |
|---|
| From [com.google.android.gms.ads.mediation.MediationAdRequest](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest) |---|---| | `default static final int` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE() = 0` As returned by `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#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` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE() = 1` As returned by `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#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` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED() = -1` As returned by `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#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](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest) |---|---| | `abstract https://developer.android.com/reference/java/util/Date.html` | `[getBirthday](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#getBirthday())()` **This method is deprecated.** | | `abstract int` | `[getGender](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#getGender())()` **This method is deprecated.** | | `abstract https://developer.android.com/reference/java/util/Set.html<https://developer.android.com/reference/java/lang/String.html>` | `[getKeywords](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#getKeywords())()` Returns the set of keywords requested by the user, if defined by the `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/AdRequest`. | | `abstract https://developer.android.com/reference/android/location/Location.html` | `[getLocation](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#getLocation())()` Returns the location of the user, if defined by the `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/AdRequest`. | | `abstract boolean` | `[isDesignedForFamilies](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#isDesignedForFamilies())()` **This method is deprecated.** | | `abstract boolean` | `[isTesting](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#isTesting())()` Returns true if the publisher is asking for test ads. | | `abstract int` | `[taggedForChildDirectedTreatment](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/MediationAdRequest#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

### getAdVolume

```
abstract float [getAdVolume](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#getAdVolume())()
```

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

### getNativeAdOptions

```
abstract NativeAdOptions [getNativeAdOptions](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#getNativeAdOptions())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#getNativeAdRequestOptions()`.

Returns the `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/formats/NativeAdOptions` provided with the native ad request. It returns null if `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/formats/NativeAdOptions` are not provided.

### getNativeAdRequestOptions

```
abstract @NonNull NativeAdOptions [getNativeAdRequestOptions](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#getNativeAdRequestOptions())()
```

Returns the `https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/nativead/NativeAdOptions` provided with the native ad request.

### isAdMuted

```
abstract boolean [isAdMuted](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#isAdMuted())()
```

Returns whether ad is muted.

### isUnifiedNativeAdRequested

```
abstract boolean [isUnifiedNativeAdRequested](https://developers.google.com/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/mediation/NativeMediationAdRequest#isUnifiedNativeAdRequested())()
```

Returns whether an unified native ad is requested or not.