unity_ads_plugin
0.6.0, released 3 weeks ago by pavelzaichyk.com
Flutter plugin to display Unity Banner, Interstitial, and Rewarded Video Ads.
What it does
Integrates the Unity Ads SDK into Flutter applications for Android and iOS. It allows developers to initialize the SDK, manage privacy consent, load ads, and display banner or fullscreen video ads with status callbacks.
AI-written summary of version 0.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to monetize your Flutter mobile application using Unity Ads.
- You need to display banner, interstitial, or rewarded video ads.
Skip it when
- You prefer using AdMob or another ad network instead of Unity Ads.
Strengths
- Supports Unity Banner, Rewarded, and Interstitial Video Ads
- Provides privacy consent management and server-to-server reward callbacks
- Firebase Test Lab support on Android
Weaknesses
- Requires managing native Unity SDK initialization and placement IDs
- Android fullscreen ads may require Manifest adjustments to avoid separate recent apps tasks
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Requires setting up game IDs from Unity Ads, configuring platform-specific settings, and potentially adjusting Android Manifest task affinities for fullscreen ads.
import 'package:unity_ads_plugin/unity_ads_plugin.dart';
void main() {
UnityAds.init(
gameId: 'YOUR_GAME_ID',
testMode: true,
onComplete: () => print('Unity Ads Initialized'),
onFailed: (error, message) => print('Unity Ads Initialization Failed: $error $message'),
);
}Alternatives
Packages that do the same job and could replace unity_ads_plugin.
- google_mobile_ads
If you want to display ads through Google AdMob / Google Ad Manager instead of Unity Ads.
92Compare - yandex_mobileads
If you want to integrate Yandex Mobile Ads SDK instead of Unity Ads.
84Compare