ALSdk Class Reference
Inherits from | NSObject |
---|---|
Declared in | ALSdk.h |
SDK Configuration
sdkKey
This SDK’s key.
@property (strong, nonatomic, readonly) NSString *sdkKey
Discussion
This SDK’s key.
Declared In
ALSdk.h
settings
This SDK’s settings.
@property (strong, nonatomic, readonly) ALSdkSettings *settings
Discussion
This SDK’s settings.
Declared In
ALSdk.h
– setPluginVersion:
Set Plugin version.
- (void)setPluginVersion:(alnonnull NSString *)version
Parameters
version |
Some descriptive string which identifies the plugin. |
---|
Discussion
Set Plugin version.
This is mainly used internally, however if you’ve written a mediation adaptor or plugin, you can set this. Common examples include things like “Bob’s Cocos2D Plugin v1.0”.
Declared In
ALSdk.h
SDK Information
+ version
Get the current version of the SDK.
+ (alnonnull NSString *)version
Return Value
The current SDK version.
Discussion
Get the current version of the SDK.
Declared In
ALSdk.h
SDK Services
adService
Get an instance of AppLovin Ad service. This service is used to fetch and display ads from AppLovin servers.
@property (strong, nonatomic, readonly) ALAdService *adService
Return Value
Ad service. Guaranteed not to be null.
Discussion
Get an instance of AppLovin Ad service. This service is used to fetch and display ads from AppLovin servers.
Declared In
ALSdk.h
nativeAdService
Get an instance of AppLovin Native Ad service. This service is used to fetch and display native ads from AppLovin servers.
@property (strong, nonatomic, readonly) ALNativeAdService *nativeAdService
Return Value
Native ad service. Guaranteed not to be null.
Discussion
Get an instance of AppLovin Native Ad service. This service is used to fetch and display native ads from AppLovin servers.
Declared In
ALSdk.h
postbackService
Get an instance of the AppLovin postback service. This service is used to dispatch HTTP GET postbacks to arbitrary URLs.
@property (strong, nonatomic, readonly) ALPostbackService *postbackService
Return Value
Postback service. Guaranteed not to be null.
Discussion
Get an instance of the AppLovin postback service. This service is used to dispatch HTTP GET postbacks to arbitrary URLs.
Declared In
ALSdk.h
eventService
Get an instance of the AppLovin event service. This service is used to track post-install user events.
@property (strong, nonatomic, readonly) ALEventService *eventService
Return Value
Event service. Guaranteed not to be null.
Discussion
Get an instance of the AppLovin event service. This service is used to track post-install user events.
Declared In
ALSdk.h
Custom User Targeting
targetingData
Get an instance of AppLovin Targeting data. This object contains targeting values that could be provided to AppLovin for better advertisement performance.
@property (strong, nonatomic, readonly) ALTargetingData *targetingData
Return Value
Current targeting data. Guaranteed not to be null.
Discussion
Get an instance of AppLovin Targeting data. This object contains targeting values that could be provided to AppLovin for better advertisement performance.
Declared In
ALSdk.h
SDK Initialization
+ initializeSdk
Initialize the default instance of AppLovin SDK.
+ (void)initializeSdk
Return Value
An instance of AppLovinSDK
Discussion
Initialize the default instance of AppLovin SDK.
Please make sure that application’s
Info.plist
includes a property ‘AppLovinSdkKey’ that is set to provided SDK key.
Declared In
ALSdk.h
Getting SDK Instances
+ shared
Get a shared instance of AppLovin SDK.
+ (alnullable ALSdk *)shared
Return Value
An instance of AppLovinSDK
Discussion
Get a shared instance of AppLovin SDK.
Please make sure that application’s
Info.plist
includes a property ‘AppLovinSdkKey’ that is set to provided SDK key.
Declared In
ALSdk.h
+ sharedWithKey:
Get an instance of AppLovin SDK using default SDK settings.
+ (alnullable ALSdk *)sharedWithKey:(alnonnull NSString *)sdkKey
Parameters
sdkKey |
SDK key to use. Must not be nil. |
---|
Return Value
An instance of AppLovinSDK
Discussion
Get an instance of AppLovin SDK using default SDK settings.
Declared In
ALSdk.h
+ sharedWithKey:settings:
Get an instance of AppLovin SDK.
+ (alnullable ALSdk *)sharedWithKey:(alnonnull NSString *)sdkKey settings:(alnonnull ALSdkSettings *)settings
Parameters
sdkKey |
SDK key to use. Must not be nil. |
---|---|
settings |
User-provided settings. Must not be nil, but can be an empty |
Return Value
An instance of AppLovinSDK
Discussion
Get an instance of AppLovin SDK.
Declared In
ALSdk.h