# RtbSignalData

# RtbSignalData


```
public final class RtbSignalData
```

<br />

*** ** * ** ***

Data passed into the adapter for signal generation.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/rtb/RtbSignalData#RtbSignalData(android.content.Context,kotlin.collections.List,android.os.Bundle,com.google.android.gms.ads.AdSize)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html context, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationConfiguration> configurations, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/Bundle.html networkExtras, https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/AdSize adSize )` |

| ### Public methods |
|---|---|
| `final https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/AdSize` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/rtb/RtbSignalData#getAdSize()()` The ad size associated with a banner ad request, or null if this signal data is not for a banner ad request. |
| `final https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationConfiguration` | `[getConfiguration](https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/rtb/RtbSignalData#getConfiguration())()` **This method is deprecated.** Use \[RtbSignalData.configurations\] instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationConfiguration>` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/rtb/RtbSignalData#getConfigurations()()` The configurations defined by the publisher in the AdMob or Ad Manager UI. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/rtb/RtbSignalData#getContext()()` The context of the application. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/Bundle.html` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/rtb/RtbSignalData#getNetworkExtras()()` The extra parameters set by the publisher on a per-request basis for a specific ad network adapter. |

## Public constructors

### RtbSignalData

```
public RtbSignalData(
    @NonNull Context context,
    @NonNull List<@NonNull MediationConfiguration> configurations,
    @NonNull Bundle networkExtras,
    AdSize adSize
)
```

## Public methods

### getAdSize

```
public final AdSize getAdSize()
```

The ad size associated with a banner ad request, or null if this signal data is not for a banner ad request. Check `https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationConfiguration#format()` to determine the ad format being requested.

### getConfiguration

```
public final MediationConfiguration [getConfiguration](https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/rtb/RtbSignalData#getConfiguration())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Use \[RtbSignalData.configurations\] instead.

Gets the configuration defined by the publisher in the AdMob or Ad Manager UI.

### getConfigurations

```
public final @NonNull List<@NonNull MediationConfiguration> getConfigurations()
```

The configurations defined by the publisher in the AdMob or Ad Manager UI.

### getContext

```
public final @NonNull Context getContext()
```

The context of the application.

### getNetworkExtras

```
public final @NonNull Bundle getNetworkExtras()
```

The extra parameters set by the publisher on a per-request basis for a specific ad network adapter.