# VersionInfo

# VersionInfo


```
class VersionInfo : VersionInfo
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.android.gms.ads.VersionInfo](https://developers.google.com/admob/android/reference/kotlin/com/google/android/gms/ads/VersionInfo) ||
|   | ↳ | [com.google.android.gms.ads.mediation.VersionInfo](https://developers.google.com/admob/android/reference/kotlin/com/google/android/gms/ads/mediation/VersionInfo) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use `https://developers.google.com/admob/android/reference/kotlin/com/google/android/gms/ads/VersionInfo`.

Version info for adapters and for third party SDKs.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/admob/android/reference/kotlin/com/google/android/gms/ads/mediation/VersionInfo#VersionInfo(int,int,int)(majorVersion: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, minorVersion: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, microVersion: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Creates a new VersionInfo object that will contain the version of an rtb adapter or third party SDK. |

| ### Inherited functions |
|---|
| From [com.google.android.gms.ads.VersionInfo](https://developers.google.com/admob/android/reference/kotlin/com/google/android/gms/ads/VersionInfo) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/admob/android/reference/kotlin/com/google/android/gms/ads/VersionInfo#getMajorVersion()()` Gets the major version. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/admob/android/reference/kotlin/com/google/android/gms/ads/VersionInfo#getMicroVersion()()` Gets the micro version. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/admob/android/reference/kotlin/com/google/android/gms/ads/VersionInfo#getMinorVersion()()` Gets the minor version. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://developers.google.com/admob/android/reference/kotlin/com/google/android/gms/ads/VersionInfo#toString()()` Returns a semantic versioning string of this object with the format ` majorVersion.minorVersion.microVersion`. | |

## Public constructors

### VersionInfo

```
VersionInfo(majorVersion: Int, minorVersion: Int, microVersion: Int)
```

Creates a new VersionInfo object that will contain the version of an rtb adapter or third party SDK.