パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.1.1

unity_mediation

Flutterアプリケーション向けのUnity Mediationプラグイン。このプラグインは、さまざまな広告ソースからの報酬型広告およびインタースティシャル広告を表示できます。

AndroidiOS
30日間ダウンロード
44
いいね数
31
Pub ポイント
150

パッケージをインストール

flutter pub add unity_mediation

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

unity_mediation パッケージは、Flutter アプリケーションが Unity Mediation を介して複数の広告ソースから報酬型およびインターシテーシャル広告を表示できるようにします。さまざまな広告ネットワークを統合するための統一インターフェイスを提供し、広告の管理と最適化を簡素化します。Android および iOS に対応しており、開発者がアプリを効率的に収益化できるだけでなく、プラットフォーム間で一貫した広告パフォーマンスを維持できます。このパッケージは、既存の Flutter プロジェクトとのシームレスな統合を目的として設計されています。

用途

  • 報酬広告によるモバイルアプリの収益化
  • アプリの画面の間でインテルスティシャル広告を表示する
  • 1つのインターフェースを通じて複数の広告ネットワークを統合する
  • Unity Mediation を活用した広告収益の最適化
  • Android および iOS でのクロスプラットフォーム広告配信の有効化

主な機能

  • リワード広告およびインテルスティシャル広告タイプをサポート
  • 複数の広告ソースからの広告を集約
  • クロスプラットフォーム互換性(Android、iOS)
  • Flutter とのシンプルな統合
  • リアルタイム広告パフォーマンスモニタリング

適している対象

  • 広告収益化を検討するFlutter開発者
  • マルチソース広告メディエーションを必要とするアプリ
  • Android および iOS ユーザーをターゲットにするプロジェクト
  • 広告管理に Unity Mediation を使用する開発者
  • 広告収益を最大化することを目指すモバイルアプリ

注意事項

  • Unity Mediationダッシュボードでの設定が必要です
  • 完全な機能を実現するには、Unity SDK に依存しています
  • 広告トラッキングには追加の権限が必要になる場合があります
  • 適切なユーザー同意処理と併用すると最適です
  • パフォーマンスは、広告ネットワークの利用可能性によって異なる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Unity Mediation

Pub License Pub likes Pub popularity Pub points Flutter platform

Buy Me A Coffee PayPal

Unity Mediation has been deprecated and is no longer supported. Use Unity LevelPlay for mediation of ad networks instead. If your application uses only ads from Unity Ads source, use Unity Ads Plugin.

Unity Mediation plugin for Flutter Applications. This plugin is able to display Rewarded and Interstitial Ads from different ad sources.

Getting Started

1. Configure
iOS
  • set iOS version to 9.0 or higher in ios/Podfile file
  • in ios/Podfile file add next lines after platform :ios line:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
Android
  • set minSdkVersion to 21 in android/app/build.gradle file
2. Configure ad sources

For using additional advertising sources, it's needed to configure them.

iOS

Add dependencies of configured ad sources to ios/Podfile file from the table below

target 'Runner' do
  use_frameworks!
  use_modular_headers!
  # list of adapters
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

AdMob ad source requires additional configuration. If you use AdMob add your AdMob app ID to ios/Runner/Info.plist file

<key>GADApplicationIdentifier</key>
<string>YOUR_ADMOB_APP_ID</string>
Android

Add dependencies of configured ad sources to android/app/build.gradle file

dependencies {
    // list of adapters
}

AdMob ad source requires additional configuration. If you use AdMob add your AdMob app ID to android/app/src/main/AndroidManifest.xml file

<manifest>
    <application>
        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="YOUR_ADMOB_APP_ID"/>
    </application>
</manifest>
Ad Sources
Source iOS Android
AdColony pod 'UnityMediationAdColonyAdapter' implementation "com.unity3d.mediation:adcolony-adapter:1.0.0"
AppLovin pod 'UnityMediationAppLovinAdapter' implementation "com.unity3d.mediation:applovin-adapter:1.0.0"
IronSource pod 'UnityMediationIronSourceAdapter' implementation "com.unity3d.mediation:ironsource-adapter:1.0.0"
Vungle pod 'UnityMediationVungleAdapter' implementation "com.unity3d.mediation:vungle-adapter:1.0.1"
Meta Audience Network pod 'UnityMediationFacebookAdapter' implementation "com.unity3d.mediation:facebook-adapter:1.0.0"
AdMob pod 'UnityMediationAdmobAdapter' implementation "com.unity3d.mediation:admob-adapter:1.0.0"
3. Initialization

Initialize Unity Mediation with your game ID

UnityMediation.initialize(
  gameId: 'GAME_ID',
  onComplete: () => print('Initialization Complete'),
  onFailed: (error, message) => print('Initialization Failed: $error $message'),
);
4. Rewarded Ad

Rewarded Video Ad

Load an ad before show it.

UnityMediation.loadRewardedAd(
  adUnitId: 'REWARDED_AD_UNIT_ID',
  onComplete: (adUnitId) => print('Rewarded Ad Load Complete $adUnitId'),
  onFailed: (adUnitId, error, message) => print('Rewarded Ad Load Failed $adUnitId: $error $message'),
);

Show a loaded rewarded ad.

UnityMediation.showRewardedAd(
  adUnitId: 'REWARDED_AD_UNIT_ID',
  onStart: (adUnitId) => print('Rewarded Ad $adUnitId started'),
  onClick: (adUnitId) => print('Rewarded Ad $adUnitId click'),
  onRewarded: (adUnitId, reward) => print('Rewarded Ad $adUnitId rewarded $reward'),
  onClosed: (adUnitId) => print('Rewarded Ad $adUnitId closed'),
  onFailed: (adUnitId, error, message) => print('Rewarded Ad $adUnitId failed: $error $message'),
);
Server-to-server redeem callbacks

To use server-to-server callbacks, you need to set userId parameter when call showRewardedAd.

Read more on docs.unity.com.

5. Interstitial Ad

Interstitial Video Ad

Load an ad before show it.

UnityMediation.loadInterstitialAd(
    adUnitId: 'INTERSTITIAL_AD_UNIT_ID',
    onComplete: (adUnitId) => print('Interstitial Ad Load Complete $adUnitId'),
    onFailed: (adUnitId, error, message) => print('Interstitial Ad Load Failed $adUnitId: $error $message'),
);

Show a loaded interstitial ad.

UnityMediation.showInterstitialAd(
    adUnitId: 'INTERSTITIAL_AD_UNIT_ID',
    onStart: (adUnitId) => print('Interstitial Ad $adUnitId started'),
    onClick: (adUnitId) => print('Interstitial Ad $adUnitId click'),
    onClosed: (adUnitId) => print('Interstitial Ad $adUnitId closed'),
    onFailed: (adUnitId, error, message) => print('Interstitial Ad $adUnitId failed: $error $message'),
);
6. Banner Ad

Banner Ad

Place BannerAd widget in your app.

BannerAd(
  adUnitId: 'BANNER_AD_UNIT_ID',
  onLoad: (adUnitId) => print('Banner loaded: $adUnitId'),
  onClick: (adUnitId) => print('Banner clicked: $adUnitId'),
  onFailed: (adUnitId, error, message) => print('Banner Ad $adUnitId failed: $error $message'),
),

Donate

Your donation motivates me to work more on plugins and packages. If you found this plugin helpful and would like to thank me:

Donate Buy Me A Coffee PayPal

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。