Unity Ad Monetization Guide using Unity LevelPlay: Rewarded Ads & Network Mediation (Part 2)
Welcome to Part 2 of our 3-Part Unity LevelPlay Ad Monetization Masterclass:
- Part 1: SDK Setup, LevelPlay Architecture & Interstitial/Banner Integration →
- Part 2: Rewarded Video Ads, S2S Reward Validation & Network Mediation Setup (This Guide)
- Part 3: eCPM Optimization, A/B Testing, LiveOps & ARPDAU Maximization →
In this second installment, we focus on Rewarded Video Ads using the modern Unity LevelPlay SDK v9.0+ (com.unity.services.levelplay, namespace Unity.Services.LevelPlay). We cover LevelPlayRewardedAd lifecycle management, event cleanup, duplicate reward prevention, Server-to-Server (S2S) reward validation, and third-party network adapter setup.
1. Rewarded Video Architecture & Reward Validation
Rewarded ads let players opt in to watch a video ad in exchange for an in-game reward (such as extra lives, revives, or soft currency).
Client-Side vs. Server-to-Server (S2S) Validation
- Client-Side Callbacks (
OnAdRewarded): The LevelPlay SDK firesOnAdRewardedlocally when the ad network confirms completion. Suitable for offline-first casual games with local economies, provided you guard against duplicate callback grants. - Server-to-Server (S2S) Callbacks: LevelPlay's servers send an HTTP GET request to your backend endpoint with signed query parameters (
userid,rewards,eventId,timestamp,signature) once the ad completes. Your backend verifies the MD5 signature against your LevelPlay Private Key and enforceseventIdidempotency before crediting the player's server-side balance.
2. Production-Structured C# Rewarded Ad Controller (LevelPlayRewardedAd)
This production-structured C# example demonstrates proper Unity.Services.LevelPlay namespace usage, named event handlers with full OnDestroy cleanup, Dispose() lifecycle management, display-failure recovery, and client-side duplicate reward prevention.
Key Production Safeguards in This Controller
- Named event handlers +
Dispose(): Avoiding anonymous lambdas onLevelPlay.OnInitSuccessguarantees you can cleanly unsubscribe inOnDisable/OnDestroyand prevent memory leaks or duplicate callbacks across scene reloads. - Duplicate reward guard: Checking both
rewardGrantedForCurrentShowandadInfo.AuctionIdprevents accidental double-crediting if a mediation adapter fires a duplicate callback. OnAdDisplayFailedrecovery: Always reload after a display failure so the placement does not stay stuck in an unready state.- Accurate revenue logging:
LevelPlayAdInfo.Revenuerepresents estimated per-impression revenue in USD, not eCPM (eCPM = Revenue × 1000).
3. Server-to-Server (S2S) Reward Validation (Illustrative Backend Example)
If your game has a server-authoritative economy, configure a Server-to-Server Callback URL in the LevelPlay dashboard:
Per Unity LevelPlay's S2S documentation, LevelPlay computes the callback signature as:
signature = MD5(timestamp + eventId + decodedUserId + rewards + PRIVATE_KEY)
The following illustrative Node.js / Express handler shows how to validate the signature and enforce eventId idempotency before crediting a player:
Always verify your endpoint with the Callback Test tool in the LevelPlay dashboard before releasing to production.
4. Configuring Ad Network Mediation in LevelPlay
To increase auction competition, add demand networks in the LevelPlay Dashboard under Setup > SDK Networks and install their matching adapters via the LevelPlay Network Manager (EDM4U).
Common Network Adapters & Prerequisites
| Ad Network Demand Source | Mediation Models | Setup Prerequisite |
|---|---|---|
| Google AdMob | In-App Bidding & Waterfall | Configure AdMob App ID in LevelPlay / Android & iOS manifests |
| AppLovin | In-App Bidding & Waterfall | Add AppLovin SDK Key and Zone/Ad Unit IDs in LevelPlay dashboard |
| Meta Audience Network | In-App Bidding Only | Requires Meta Business Manager verification and Placement IDs |
| Unity Ads | In-App Bidding & Waterfall | Link Unity Organization / Project Game IDs |
| Mintegral | In-App Bidding & Waterfall | Configure App ID, App Key, and Placement/Unit IDs for global & APAC demand |
5. Official Documentation References
- Unity LevelPlay Unity SDK — Rewarded Video Integration
- Unity LevelPlay — Server-to-Server (S2S) Callbacks
- Unity LevelPlay — Network Adapters & Mediation Setup
6. Part 2 Summary & Next Steps
In this installment, we implemented LevelPlayRewardedAd on Unity.Services.LevelPlay v9+, added proper event cleanup and duplicate-reward guards, outlined S2S signature verification, and reviewed mediation adapter prerequisites.
👉 Continue to Part 3: eCPM Optimization, A/B Testing, LiveOps & ARPDAU Maximization →
Related Monetization & Unity Engineering Guides
- Unity Ads SDK Setup Guide: Standalone Rewarded Video Integration in C# →
- Unity IAP 5 Setup Guide: In-App Purchases & Receipt Validation →
- GameAnalytics Unity SDK Setup: Tracking Retention & ARPDAU →
- Unity Game Development Services | Mobile Game Development Services
💡 Looking for a Custom Ad Monetization & LiveOps Strategy?
Struggling with mediation configuration, S2S validation, or ad-driven retention drops? I work directly with mobile game studios to architect maintainable ad mediation, IAP economies, and LiveOps systems:
- Mediation & Bidding Architecture: Clean LevelPlay v9+ setups across AdMob, AppLovin, Unity Ads, and Meta.
- Segmented Monetization: Tailored ad rules for non-payers vs. paying players.
- LiveOps & Retention Tuning: Balancing ad exposure alongside D7/D30 retention and LTV.
👉 Book a Game Monetization & LiveOps Strategy Session or reach out directly to discuss your game's architecture.
🎮 Shipped Mobile Games & Official Store Profiles
Explore live commercial titles built with Unity and published across official app stores:
Featured Live Titles:
- Pet Hero: Animal Hospital — App Store | Google Play
- Restaurant RUSH: Idle Tycoon — App Store | Google Play
- Bird Sort Mania — Google Play | Read AI Dev Breakdown
Planning to monetize your mobile game or optimize your engineering budget? Check out our 2026 Mobile Game Development Cost Guide or book an engineering consultation.
Get Practical Unity Development Insights
Technical guides on Unity performance, AI gameplay systems, mobile monetization, and game development.
Unsubscribe at any time. Your data is never shared.
Recommended Reading
More articles in Game Monetization
Unity LevelPlay SDK Setup Guide: Interstitial & Banner Ads (2026)
Learn how to install Unity LevelPlay, initialize the SDK, and integrate interstitial and banner ads using modern Unity C# APIs, with testing and troubleshooting tips.
Unity Ads SDK Setup Guide: Rewarded Video Integration in C#
Learn to install and initialize Unity Ads in Unity, implement rewarded video ads in C#, handle callbacks, test on Android and iOS, and avoid common SDK errors.
Unity Ad Monetization Guide using Unity LevelPlay: eCPM Optimization, LiveOps & ARPDAU (Part 3)
Part 3 of the 3-part LevelPlay masterclass. Learn how to structure geo-tiered mediation groups, run A/B tests on ad frequency caps, segment payer vs non-payer cohorts, and capture LevelPlay ILRD impression revenue safely.