This page shows you how to download, configure, and initialize the AppLovin Flutter plugin.
Download the AppLovin MAX Flutter plugin through pub.dev by entering the following dependency into your pubspec.yaml under dependencies:
You can add that dependency to pubspec.yaml manually, or by issuing the following flutter command:
To receive release updates, subscribe to the AppLovin MAX Flutter Plugin GitHub repository.
applovin_maxIf you added the dependency manually (rather than with the flutter pub add command), issue the following flutter command to install applovin_max:
(If you add the dependency with the flutter pub add command, this step takes place automatically.)
Import the plugin into your Dart code with this import statement:
[COMPONENT: SdkKey]
[COMPONENT: Cached]
[COMPONENT: IOS14Support]
You can find your Ad Review Key in the Account > General > Keys section of the AppLovin dashboard.
Users have a better experience if mediated networks cache their ad assets. For this reason, always initialize the AppLovin SDK on startup. This gives mediated networks time to cache ads. This is especially important with video ads.
In iOS 14, Apple introduced global privacy policy changes. Apple requires applications to comply with these new policies. If you fail to comply, you may lose revenue. This section explains how to comply.
Update your app’s Info.plist with network-specific identifiers.
See the SKAdNetwork documentation for instructions.
You must get consent from your users in certain jurisdictions on behalf of AppLovin’s monetization partners. You must also pass consent values to AppLovin. To learn how, review the Privacy–consent, age-related flags, and data APIs documentation.
You can find your SDK key in the Account > General > Keys section of the AppLovin dashboard.