java.lang.Object | |
↳ | com.applovin.sdk.AppLovinSdk |
This is a base class for AppLovin Ad SDK.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CIS_BUILD_TAG | ||||||||||
String | VERSION | Current SDK version | |||||||||
int | VERSION_CODE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Please use
AppLovinSdk.getInstance(Context context) rather than instantiating this class directly. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get an instance of the AppLovin Ad service.
| |||||||||||
Get an instance of the AppLovin event service.
| |||||||||||
Get instance of AppLovin SDK that is configured in
AndroidManifest.xml . | |||||||||||
Get an instance of AppLovin SDK.
| |||||||||||
Get instance of AppLovin SDK that is configured in
AndroidManifest.xml . | |||||||||||
Get an instance of the AppLovin mediation service.
| |||||||||||
Get an instance of the AppLovin native ad service.
| |||||||||||
Get an instance of the AppLovin postback service.
| |||||||||||
Get SDK settings provided on initialization
| |||||||||||
Get an instance of AppLovin Targeting data.
| |||||||||||
Get the last set user identifier.
| |||||||||||
Check if SDK has a critical error prior to initialization.
| |||||||||||
Intialize the default version of the SDK.
| |||||||||||
Initialize current version of the SDK
| |||||||||||
Check if SDK is enabled.
| |||||||||||
Set a user identifier that will be passed through to your server via S2S postbacks.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Current SDK version
Please use AppLovinSdk.getInstance(Context context)
rather than instantiating this class directly.
Get an instance of the AppLovin Ad service. This service is used to fetch ads from AppLovin servers, track clicks and conversions.
Get an instance of the AppLovin event service. This service is used to track post-install user events.
Get instance of AppLovin SDK that is configured in AndroidManifest.xml
. Please make sure that AndroidManifest.xml
includes following line:
<application> . . . <meta-data android:value="YOUR_SDK_KEY_HERE" android:name="APPLOVIN_SDK_KEY" /> </application>
context | Android application context. Must not be null. |
---|
Get an instance of AppLovin SDK.
sdkKey | Client SDK's key. |
---|---|
userSettings | User-provided settings. May be null. |
context | Android context. Must not be null. Note that a reference to context.getApplicationContext() will be persisted by the API. |
Get instance of AppLovin SDK that is configured in AndroidManifest.xml
. Please make sure that AndroidManifest.xml
includes following line:
<application> . . . <meta-data android:value="YOUR_SDK_KEY_HERE" android:name="APPLOVIN_SDK_KEY" /> </application>
settings | Settings to use with an SDK. Must not be null. |
---|---|
context | Android application context. Must not be null. |
Get an instance of the AppLovin mediation service. This service is used to track and manipulate third-party SDK adapters.
Get an instance of the AppLovin native ad service. This service is used to fetch in-content ads from AppLovin servers, track clicks and conversions.
Get an instance of the AppLovin postback service. This service is used to dispatch HTTP GET postbacks to arbitrary URLs.
Get SDK settings provided on initialization
Get an instance of AppLovin Targeting data. This object contains targeting values that could be provided to AppLovin for better advertisement performance.
Get the last set user identifier.
Check if SDK has a critical error prior to initialization. Critical errors could occur when SDK is ran on a device with API level lower then 8.
Intialize the default version of the SDK.
Please make sure that AndroidManifest.xml
includes following line:
<application> . . . <meta-data android:value="YOUR_SDK_KEY_HERE" android:name="APPLOVIN_SDK_KEY" /> </application>
context | Android application context. Must not be null. |
---|
Initialize current version of the SDK
Check if SDK is enabled. SDK is enabled when (1) client successfully registered with the AppLovin server and (2) client is not banned from the server.
Set a user identifier that will be passed through to your server via S2S postbacks.
If you are using reward validation, you can pass us a user identifier as a String. This could be something like a username, for example. We will pass it to your server when we make our S2S call during reward validation.
userIdentifier | Some string which will be passed to your server later, for purposes of identifying the user who should receive a reward. |
---|