Skip to main content

Flutter Plugin Overview

Flutter bindings for the OCM AdNetwork SDK that deliver banner, interstitial, rewarded, and native ads on Android and iOS, with Prebid rendered through Google Ad Manager or directly through Prebid Mobile.

📋 Requirements​

General​

  • Flutter: 3.24 or newer
  • Dart: 3.5 or newer
  • OCM publisher and Prebid configuration IDs, plus the Google Ad Manager ad unit IDs your setup uses

iOS​

  • Minimum iOS Version: 15.0
  • Dependency manager: Swift Package Manager (Flutter's default) or CocoaPods

Android​

  • Min SDK: 25
  • Java: 17

Features​

  • 🎯 Banner Ads - Prebid + GAM or direct Prebid rendering, chosen per ad unit
  • 🎬 Interstitial Ads - Full-screen ads with Prebid header bidding and GAM
  • 🏆 Rewarded Ads - Reward users for watching video ads, with optional server-side verification
  • 📱 Native Ads - Rendered native views with impression and click tracking, through GAM or direct Prebid
  • 🔄 Cross-Platform - One Dart API for Android and iOS
  • 📊 Event Callbacks - Load, failure, click, impression, and reward events

What's Included​

The plugin pulls in the native OCM SDKs, so you don't add them yourself:

  • iOS: OCM AdNetwork iOS SDK 1.2.7 (OCMAdNetworkIOS ~> 1.2.7 through CocoaPods, or the 1.2.7 release through Swift Package Manager)
  • Android: OCM AdNetwork Android SDK (com.orangeclickmedia.adnetwork:adnetwork-sdk:1.1.9)
  • Google Mobile Ads SDK: ✅ Included on both platforms
  • Prebid Mobile SDK: ✅ Included on both platforms

Package Information​

  • Package Name: ocm_ads
  • pub.dev: ocm_ads
  • Current Version: 0.0.5
  • License: MIT
  • Publisher: orangeclickmedia.com (verified)

Platform Support​

PlatformBannerInterstitialRewardedNative view (OcmNativeAdView)Native data loader (OcmNativeAdLoader)
iOS✅✅✅✅❌
Android✅✅✅✅✅
info

On other platforms (web, desktop) the widgets render an empty box and report an unsupported_platform error through their failure callback.

Next Steps​

Continue to the Installation guide to add the plugin to your Flutter app.

📞 Support​

For support and documentation, contact us at [email protected]