pdavenue_ads_monetize

A Flutter plugin bridging the native Android Ads Monetize SDK to display standard (interstitial/rewarded), video, app open, native, and banner ads.

Features

  • SDK Initialization: Easy, one-line asynchronous initialization with debugging configuration.
  • Priority Loading & Show: Built-in prioritization for interstitial, rewarded, full-screen native, and custom URL redirect formats.
  • App Open Ads: Support for blocking, allowing, and manually showing App Open ads on app resume lifecycle events.
  • Inline Custom Widgets: Ready-to-use Flutter widgets (MonetizeNativeAd and MonetizeBannerAd) to embed native layout configurations.
  • Unified Style Configuration: Style your ads dynamically via standard Dart configuration objects (LoaderUI and NativeUI).

Getting Started

Installation

Add pdavenue_ads_monetize to your pubspec.yaml dependencies:

dependencies:
  pdavenue_ads_monetize: ^1.0.1

Usage

Initialize the SDK

Call the initialize method before triggering any ads:

import 'package:pdavenue_ads_monetize/pdavenue_ads_monetize.dart';

await AdsSdk.adsInitialize(
  appId: "your-google-app-id",
  isDebugOn: true,
);

Pre-load Priority Ads

await AdsManager.initAds(
  isShowAds: "5", // Load configuration
  adsPriority: "1,2,3", // Order of ad networks
);

Trigger Standard Ads

AdsManager.showAds(
  isShowAds: "1", // 1 = Interstitial, 2 = Rewarded, 3 = Redirect, 4 = Full Native
  eventName: "YOUR_EVENT_NAME",
);

Inline Native Ad

const SizedBox(
  height: 320,
  child: MonetizeNativeAd(
    eventName: "DEMO_NATIVE_AD",
    type: NativeAdsType.BIG, // SMALL, MEDIUM, BIG
  ),
)

Inline Banner Ad

const SizedBox(
  height: 60,
  child: MonetizeBannerAd(
    eventName: "DEMO_BANNER_AD",
    bannerType: BannerType.ADAPTIVE, // STANDARD, ADAPTIVE, COLLAPSIBLE_TOP, COLLAPSIBLE_BOTTOM
  ),
)

Platform Support

  • Android: API Level 21+ supported.