You can retrieve the AppLovin SDK version in multiple ways:
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
Programmatically
You can retrieve the version programmatically through a field on the SDK. The following code snippets show how to do this in Java and Kotlin:
-
String version = AppLovinSdk.VERSION; int versionCode = AppLovinSdk.VERSION_CODE;
-
val version : String = AppLovinSdk.VERSION val versionCode : Int = AppLovinSdk.VERSION_CODE
AppLovin MAX Mediation Debugger
You can find the version in the Mediation Debugger, and can then show it in your app by means of an SDK method (after the SDK initializes). The following code snippet is valid for both Java and Kotlin integrations:
AppLovinSdk.getInstance(this).showMediationDebugger();
Native iOS
Programmatically
You can retrieve the version programmatically by means of a property on the SDK. The following code snippets show how to do this in Swift and Objective-C:
-
var version : String = ALSdk.version() var versionCode : UInt = ALSdk.versionCode
-
NSString *version = [ALSdk version]; NSUInteger versionCode = [ALSdk versionCode];
AppLovin MAX Mediation Debugger
You can find the version in the Mediation Debugger, and can then show it in your app by means of an SDK method (after the SDK initializes). The following code snippets show how to do this in Swift and Objective-C:
-
ALSdk.shared()!.showMediationDebugger()
-
[[ALSdk shared] showMediationDebugger];
Unity (MAX Plugin)
AppLovin MAX Mediation Debugger
You can find the version in the Mediation Debugger, and can then show it in your app by means of an SDK method (after the SDK initializes):
MaxSdk.ShowMediationDebugger();