# MediationAdapter


```
interface MediationAdapter : MediationExtrasReceiver
```

<br />

Known direct subclasses [MediationBannerAdapter](https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationBannerAdapter), [MediationInterstitialAdapter](https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationInterstitialAdapter), [MediationNativeAdapter](https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationNativeAdapter)

|---|---|
| `https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationBannerAdapter` | **This interface is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead |
| `https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationInterstitialAdapter` | **This interface is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead. |
| `https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationNativeAdapter` | **This interface is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead |

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> Use \[com.google.android.gms.ads.mediation.Adapter\] instead.

Adapter for third party ad networks.

## Summary

| ### Nested types |
|---|
| `class https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter.AdapterInfoBuilder` **This class is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#CAPABILITIES_DELAYED_IMPRESSIONS() = 1` **This property is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#CAPABILITIES_FLOOR_CPM() = 2` **This property is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#CAPABILITIES_RETURNS_CPM() = 4` **This property is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `[onDestroy](https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#onDestroy())()` **This function is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `[onPause](https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#onPause())()` **This function is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `[onResume](https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#onResume())()` **This function is deprecated.** Use \[com.google.android.gms.ads.mediation.Adapter\] instead. |

## Constants

### CAPABILITIES_DELAYED_IMPRESSIONS

```
const val CAPABILITIES_DELAYED_IMPRESSIONS = 1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Use \[com.google.android.gms.ads.mediation.Adapter\] instead.

Specifies that the adapter supports delayed impressions.

### CAPABILITIES_FLOOR_CPM

```
const val CAPABILITIES_FLOOR_CPM = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Use \[com.google.android.gms.ads.mediation.Adapter\] instead.

Specifies that the adapter supports specifying a floor cpm value per ad request.

### CAPABILITIES_RETURNS_CPM

```
const val CAPABILITIES_RETURNS_CPM = 4: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Use \[com.google.android.gms.ads.mediation.Adapter\] instead.

Specifies that the adapter supports returning a floor cpm value per ad response.

## Public functions

### onDestroy

```
fun [onDestroy](https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#onDestroy())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Use \[com.google.android.gms.ads.mediation.Adapter\] instead.

Tears down the adapter control.

This is called at the end of the mediator's life cycle. The adapter is expected to release any resources and shut down. After this method is called, any subsequent calls to any other method on this adapter may throw an `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html`.

This method is not guaranteed to be called. There are a number of reasons that this method can be skipped, such as a force close of the application.

### onPause

```
fun [onPause](https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#onPause())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Use \[com.google.android.gms.ads.mediation.Adapter\] instead.

Called when the application calls `https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#onPause()` on the ad view. The adapter is expected to pause any processing associated with the ad being shown.

### onResume

```
fun [onResume](https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#onResume())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Use \[com.google.android.gms.ads.mediation.Adapter\] instead.

Called when the application calls `https://developers.google.com/admob/android/next-gen/reference/kotlin/com/google/android/gms/ads/mediation/MediationAdapter#onResume()` on the ad view. The adapter is expected to resume any processing associated with the ad being shown.