premium_ads (v0.2.6)

Repository Setup Required: Due to Android Gradle Plugin 7+ limitations with dependencyResolutionManagement, you MUST add the Premium Ads Maven repository to your Flutter app's repository configuration.

⚠️ Critical: The plugin includes the repository in its own build.gradle, but AGP 7+ ignores module-level repositories by default.

Setup Instructions

In your Flutter app's android/settings.gradle:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
    repositories {
        google()
        mavenCentral()
        maven { url "https://repo.premiumads.net/artifactory/mobile-ads-sdk/" }
    }
}

Option 2: Root build.gradle (For older templates)

In your Flutter app's android/build.gradle:

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url "https://repo.premiumads.net/artifactory/mobile-ads-sdk/" }
    }
}

Android configuration (auto-configured by plugin)

Dependency:

implementation 'net.premiumads.sdk:admob-adapter:2.2.6'

iOS CocoaPods (auto-configured by plugin)

This plugin's podspec depends on:

pod 'PremiumAdmobAdapter', '2.2.6'

Usage

import 'package:premium_ads/premium_ads.dart';

// Enable debug mode (recommended for development)
await PremiumAds.setDebug(true);

// Disable debug mode (for production)
await PremiumAds.setDebug(false);

Learn More

📚 Full Documentation & Guides: https://docs.premiumads.net/

Flutter plugin for Premium Ads (AdMob/AdManager adapter)

The official PremiumAds documentation provides comprehensive guides for:

Platform Support

  • Android: Banner, Interstitial, App Open, Rewarded/Rewarded Interstitial
  • iOS: Banner, Interstitial, Rewarded/Rewarded Interstitial, Native

Advanced Features

  • Mediation Integration: ironSource, Applovin MAX, Google AdMob, Google AdManager, AdMost, Appodeal
  • Third-party Integration: Tenjin and other attribution partners

Note: PremiumAds is a Google Certified Publishing Partner providing advanced ad monetization solutions.

Libraries

premium_ads