Skip to main content
Rectangular ad format (320x50) that occupies part of your app layout. Supported by most ad networks. Banner Example Pn

MREC Ads

Medium Rectangle format (300x250) with similar characteristics to banner ads. Mrec Example Pn

Creating Banner/MREC Widgets

Use DaroBannerAdWidget to display banner or MREC ads.
import 'package:daro_flutter/daro_flutter.dart';
DaroBannerAdWidget(
  adUnitId: '{YOUR_AD_UNIT_ID}',
  size: DaroBannerSize.banner, // 320x50
  onAdLoaded: (adInfo) {
    print('Banner ad loaded: ${adInfo.adUnitId}');
  },
  onAdFailedToLoad: (error) {
    print('Banner ad failed to load: ${error.message}');
  },
  onAdClicked: (adInfo) {
    print('Banner ad clicked');
  },
  onAdImpression: (adInfo) {
    print('Banner ad impression');
  },
)

Callback Reference

CallbackDescription
onAdLoadedCalled when the ad is successfully loaded
onAdFailedToLoadCalled when ad loading fails
onAdClickedCalled when the user clicks the ad
onAdImpressionCalled when an ad impression is recorded