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

MREC Ads

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

Implementing Banner/MREC Ads

Banner ads follow a Create Ad object → Load → Display widget → Dispose pattern.

1. Create Ad Object

Create a DaroBannerAd object and configure callbacks.

2. Load the Ad

3. Display the Widget

After the onAdLoaded callback fires, place the DaroBannerAdWidget in the widget tree.
Placing DaroBannerAdWidget in the widget tree before calling ad.load() will throw a FlutterError. Always mount the widget after the onAdLoaded callback.

4. Dispose Resources

Call dispose() to clean up resources when leaving the page or when the ad is no longer needed.

Callback Reference