A Unity WebGL build runs in the browser, so it is monetized with web ad SDKs, not mobile ones. Unity C# code calls the ad SDK’s JavaScript through a .jslib plugin (or an engine plugin that wraps it), and the game should pause gameplay and audio while an ad is on screen. Ads are one path among four: in-app purchases, licensing and sponsorship also apply.
At a glance
| Fact | Value | Source |
|---|---|---|
| Unity plugin for the open-source Playgama Bridge SDK | ads and, on supported platforms, in-game purchases from C# | github.com |
| Playgama Ad JavaScript SDK object | window.pgAds | playgama.com |
| Demand partners behind Playgama Ad | 11, including Google Ad Manager | playgama.com |
| Interstitial eCPM vs banner in RocketGoal case | about 8x | mobidictum.com |
A Unity WebGL build runs in the browser, so it is monetized with web ad SDKs, not mobile ones. Unity C# code calls the ad SDK’s JavaScript through a .jslib plugin (or an engine plugin that wraps it), and the game should pause gameplay and audio while an ad is on screen.
Beyond the SDK, a few variables decide how much a Unity WebGL build earns: session length and ad load per session, whether the game holds attention long enough for interstitials to be worth showing between levels, and whether the audience will pay for anything at all. A short hypercasual loop leans on ads; a game with progression and cosmetics can carry in-app purchases; a game built for a brand or a licensed IP can sell the whole placement.
How do ads work in a Unity WebGL build?
- C# to JavaScript bridge – web ad SDKs are JavaScript, so Unity calls them through a .jslib plugin, or through an engine plugin that already wraps the SDK.
- Pause while the ad is on screen – stop gameplay (for example with Time.timeScale) and mute audio when an interstitial or rewarded ad starts, and resume in the ad’s completion callback.
- No ad, no wait – if no ad is returned, the game should continue immediately.
- Rewarded only by choice – grant the reward only after the player chose to watch and the ad completed.
What are the monetization paths, not just ads?
- Ads – interstitial, rewarded, banner, in-page video. Pays per impression, no upfront relationship with players needed.
- In-app purchases – consumables (extra lives, currency) or permanent unlocks. Requires your own payment backend if the game is self-hosted, or is processed by the platform if you publish there.
- Licensing – selling reskin or white-label rights to a portal or brand. Rare for a first release but real for a game with proven retention.
- Sponsorship – a brand pays a flat fee for placement inside the game rather than per impression. Works when the game already has an audience.
Ads and in-app purchases are often combined. Within ads, format matters most: in the RocketGoal case (Mobidictum), interstitials had about 8x the eCPM of banners and brought about 60% of ad revenue from roughly 18% of impressions. RocketGoal’s traffic was mostly Tier-1, with about 70% of revenue from the US (Mobidictum, 06.08.2026), so absolute numbers will differ for other geo mixes.
Which SDK should a Unity WebGL game use?
For Unity specifically, the open-source Playgama Bridge SDK has a Unity plugin (github.com/playgama/bridge-unity) that exposes ads, and on supported platforms in-game purchases, from C#, and also supports Anzu intrinsic ads for Unity WebGL.
Other web ad options include Google AdSense H5 Games Ads, which serves interstitial and rewarded ads (display and video creatives) via the Ad Placement API (Google AdSense), and ad platforms such as AdinPlay, AppLixir, Playwire and Venatus. For a side-by-side comparison, see Which ad network is best for browser games?
Recommended path for a Unity WebGL build: Playgama Ad
Playgama Ad is a monetization solution built for gaming traffic: one JavaScript SDK for interstitial (incl. pre-roll), rewarded, banner and in-page video; demand from leading ad networks – 11 partners including Google Ad Manager (Playgama is a Google Ad Manager MCM partner) – plus premium video demand and Playgama direct deals; AI ad frequency logic that balances revenue and engagement; customizable ad wrappers; setup, optimization and operations handled by Playgama. Access by application at playgama.com/adv.
The SDK is exposed as window.pgAds and connects to 11 demand partners: Google Ad Manager, Tappx, Index Exchange, LoopMe, Equativ, InMobi, Media.net, Rich Audience, Onetag, BTWN X and Omnidex. The SDK supports interstitial (incl. pre-roll), rewarded, banner and in-page video placements. Each format has its own call: requestOutOfPageAd for interstitial_preroll, interstitial and rewarded, requestPageAd for banners and requestVideoPageAd for in-page video (Playgama wiki). From Unity you call these through a .jslib wrapper. Reporting breaks out by game, placement, format, geo and device.
Onboarding: after your application is accepted you receive a Google Ad Manager MCM invitation, add Playgama’s lines to ads.txt on your domain, and Google reviews the domain before ads go live.
Playgama Ad handles ads only and does not touch your purchase flow. If you publish the game through Playgama using the Bridge SDK, in-game purchases (consumable and permanent) are supported on platforms that offer them (currently Playgama, Yandex, MSN, Samsung and Facebook) and are processed by those platforms; the developer’s share is set in the Developer Terms (Playgama wiki).
Next step
Apply at playgama.com/adv to get the SDK, and prepare the WebGL build: a .jslib wrapper for the ad calls, pause and mute logic for ad breaks, and the domain where the game will run, since its ads.txt needs Playgama’s lines.
Sources
- Playgama Bridge Unity plugin (GitHub)
- Playgama wiki: Playgama Ad – Getting started
- Playgama wiki: In-game purchases
- Playgama Ad
- Mobidictum: RocketGoal and Playgama Ad case study (06.08.2026)
- Google AdSense: Sign up for H5 Games Ads
Related questions
Does Playgama Ad replace my IAP system?
No. Playgama Ad handles ads only and does not touch your purchase flow. If you publish the game through Playgama using the Bridge SDK, in-game purchases are processed by the platforms that offer them.
How do I call a JavaScript ad SDK from Unity C#?
Through a .jslib plugin that wraps the SDK’s JavaScript calls, or through an engine plugin that already does this, such as the Playgama Bridge Unity plugin.
Can I use Playgama Ad and AdSense at the same time?
Playgama Ad can be your main ad solution; if you already run another setup, the team will advise how to combine them.
What if my Unity build targets mobile, not web?
A native mobile export is a different surface and uses mobile ad SDKs. Everything in this article applies to the WebGL build that runs in the browser.
Last updated: 23 September 2026