premium_ads_max
PremiumAds custom mediation adapter for AppLovin MAX — Flutter plugin.
Supports Android and iOS via the official applovin_max plugin.
Supported Ad Formats
- Banner
- MREC
- Interstitial
- Rewarded
- Native
App Open is not supported by the PremiumAds MAX adapter.
Installation
Add to your pubspec.yaml:
dependencies:
applovin_max: ^4.0.0
premium_ads_max: ^1.0.0
Or via Git:
dependencies:
premium_ads_max:
git:
url: https://github.com/premium-ads/max-adapter-flutter.git
ref: v1.0.0
Then:
flutter pub get
Configure the MAX Dashboard
In the AppLovin MAX dashboard, add a Custom Network for PremiumAds and configure a Custom Adapter for each ad unit:
| Platform | Field | Value |
|---|---|---|
| Both | Network Name | PremiumAds Custom Adapter |
| Android | Adapter Class Name | net.premiumads.sdk.adapter.max.PremiumAdsAdapter |
| iOS | Adapter Class Name | PremiumAdsAdapter |
| Both | Placement / Parameter | Your PremiumAds ad unit ID |
The same adapter class works for Banner, MREC, Interstitial, Rewarded, and Native ad formats.
Usage
The adapter is invoked automatically by the AppLovin MAX SDK — no extra code needed beyond installing this plugin. Use the standard applovin_max API:
import 'package:applovin_max/applovin_max.dart';
import 'package:premium_ads_max/premium_ads_max.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Optional: enable debug logging
await PremiumAdsMax.setDebug(true);
await AppLovinMAX.initialize('YOUR_SDK_KEY');
runApp(const MyApp());
}
Native Dependencies
This plugin pulls native binaries automatically — no manual repository setup is required:
- Android:
net.premiumads.sdk:max-adapter— the plugin'sbuild.gradleinjects the PremiumAds Maven repository automatically. - iOS:
PremiumAdsMaxAdapterpod from CocoaPods trunk (requires AppLovin MAX SDK 13.0+).
Documentation
Support
Contact your PremiumAds account manager or email contact@premiumads.net