# MediationNativeAdConfiguration

# MediationNativeAdConfiguration


```
@ParametersAreNonnullByDefault
public class MediationNativeAdConfiguration extends MediationAdConfiguration
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [com.google.android.gms.ads.mediation.MediationAdConfiguration](https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration) ||
|   | ↳ | [com.google.android.gms.ads.mediation.MediationNativeAdConfiguration](https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationNativeAdConfiguration) |

*** ** * ** ***

Data used to render mediation native ads.

## Summary

| ### Public methods |
|---|---|
| `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/nativead/NativeAdOptions` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationNativeAdConfiguration#getNativeAdOptions()()` Returns the `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/nativead/NativeAdOptions` for this ad request. |

| ### Inherited Constants |
|---|
| From [com.google.android.gms.ads.mediation.MediationAdConfiguration](https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration) |---|---| | `static final int` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE() = 0` As returned by `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#taggedForChildDirectedTreatment()`, indicates that the app should not be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA). | | `static final int` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE() = 1` As returned by `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#taggedForChildDirectedTreatment()`, indicates that the app should be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA). | | `static final int` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED() = -1` As returned by `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#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 fields |
|---|
| From [com.google.android.gms.ads.mediation.MediationAdConfiguration](https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration) |---|---| | `final https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#bidResponse()` The encrypted data from the third party server containing information the third party SDK needs to render an ad. | | `final https://developer.android.com/reference/android/content/Context.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#context()` The context passed by this publisher for this specific request. | | `final @https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#maxAdContentRating()` | | `final https://developer.android.com/reference/android/os/Bundle.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#mediationExtras()` Additional parameters passed in by the publisher for this specific request. | | `final https://developer.android.com/reference/android/os/Bundle.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#serverParameters()` Additional parameters defined by the publisher on the mediation server side. | | `final https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#watermark()` A base64-encoded watermark PNG file that identifies the source of the ad. | |

| ### Inherited methods |
|---|
| From [com.google.android.gms.ads.mediation.MediationAdConfiguration](https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration) |---|---| | `https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#getBidResponse()()` The encrypted data from the third party server containing information the third party SDK needs to render an ad. | | `https://developer.android.com/reference/android/content/Context.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#getContext()()` The context passed by this publisher for this specific request. | | `@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `@https://developers.google.com/admob/android/reference/com/google/android/gms/ads/RequestConfiguration.MaxAdContentRating https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#getMaxAdContentRating()()` Returns the maximum ad content rating for this request. | | `https://developer.android.com/reference/android/os/Bundle.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#getMediationExtras()()` Additional parameters passed in by the publisher for this specific request. | | `https://developer.android.com/reference/android/os/Bundle.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#getServerParameters()()` Parameters defined by the publisher in the AdMob or Google Ad Manager UI. | | `https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#getWatermark()()` Returns a base64-encoded watermark PNG file that identifies the source of the ad. | | `boolean` | `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#isTestRequest()()` Returns true if the publisher is asking for test ads. | | `int` | `@https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration.TagForChildDirectedTreatment https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#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>. | | `int` | `@https://developers.google.com/admob/android/reference/com/google/android/gms/ads/RequestConfiguration.TagForUnderAgeOfConsent https://developers.google.com/admob/android/reference/com/google/android/gms/ads/mediation/MediationAdConfiguration#taggedForUnderAgeTreatment()()` 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 `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/AdRequest`. | |

## Public methods

### getNativeAdOptions

```
public NativeAdOptions getNativeAdOptions()
```

Returns the `https://developers.google.com/admob/android/reference/com/google/android/gms/ads/nativead/NativeAdOptions` for this ad request.