The AppLovin SDK provides multiple ways to retrieve the SDK version.
Log
The AppLovin SDK prints the SDK version to the log as part of the initialization process. You will find these lines in the device log:
========================================
AppLovin SDK
Version: X.XX.X
Native Android
Programatically
The version can be retrieved programmatically through a field on the SDK. The following code snippets for Java and Kotlin.
Java
String version = AppLovinSdk.VERSION;
int versionCode = AppLovinSdk.VERSION_CODE;
Kotlin
val version : String = AppLovinSdk.VERSION
val versionCode : Int = AppLovinSdk.VERSION_CODE
AppLovin MAX Mediation Debugger
The version can be found in the Mediation Debugger. Which can be shown in the app through a SDK method after the SDK initializes. The following code snippet is valid for both Java and Kotlin integrations.
AppLovinSdk.getInstance(this).showMediationDebugger();
Native iOS
Programatically
The version can be retrieved programmatically through a property on the SDK. The following are code snippets for Swift and Objective-C.
Swift
var version : String = ALSdk.version()
var versionCode : UInt = ALSdk.versionCode
Objective-C
NSString *version = [ALSdk version];
NSUInteger versionCode = [ALSdk versionCode];
AppLovin MAX Mediation Debugger
The version can be found in the Mediation Debugger. Which can be shown in the app through a SDK method after the SDK initializes. The following are code snippets for Swift and Objective-C.
Swift
ALSdk.shared()!.showMediationDebugger()
Objective-C
[[ALSdk shared] showMediationDebugger];
Unity (MAX Plugin)
AppLovin MAX Mediation Debugger
The version can be found in the Mediation Debugger. Which can be shown in the app through a SDK method after the SDK initializes.
MaxSdk.ShowMediationDebugger();