SDK guides
How to integrate portal SDKs and the Google Ad Placement API: the calls each portal documents, the order they run in, and minimal vanilla JS and Phaser 3 examples you can run.
- CrazyGames SDK v3 in a Phaser 3 game: init, events and ads
Integrate the CrazyGames HTML5 SDK v3 into a Phaser 3 game: initialisation, loading and gameplay events, midgame and rewarded ads, muting, and local testing.
- Google Ad Placement API: adBreak() basics and policy do's and don'ts
Show interstitial and rewarded ads in your own HTML5 game with the Ad Placement API: setup, placement types, callbacks, test mode, and Google's placement rules.
- Poki SDK: gameplayStart, gameplayStop and commercial breaks
Fire Poki SDK events in the order Poki's review checks: loading, gameplay start and stop, commercial and rewarded breaks, muting, with vanilla JS and Phaser 3 code.
- GameDistribution SDK: GD_OPTIONS, showAd() and rewarded ads
Integrate the GameDistribution HTML5 SDK: load it once, pause and mute on SDK_GAME_PAUSE, pre-roll on Play, mid-rolls, and rewarded ads that pay out only on completion.
- YouTube Playables SDK basics: ready signals, audio, pause and saves
The ytgame calls a Playable must make: load order, firstFrameReady and gameReady, YouTube's audio setting, onPause/onResume, cloud saves within 3 MiB, and ads.
- GameMonetize SDK: SDK_OPTIONS, showBanner() and pause events
Integrate the GameMonetize HTML5 SDK: SDK_OPTIONS and the loader, pausing and muting on SDK_GAME_PAUSE, showBanner() at breaks, Verify Game, and what the SDK does not document.
- One codebase, many portal builds: adapters and esbuild aliases
Ship one HTML5 game to CrazyGames, Poki, GameDistribution, GameMonetize, Y8 and YouTube Playables with a per-portal adapter swapped in at build time by esbuild.
- Y8 SDK 2.x: initialisation, showAd() breaks and rewarded ads
Integrate the Y8 JavaScript SDK: async loading and the y8sdk.ready race, init with app and game IDs, interstitial and rewarded showAd() calls, and local testing.
- Ad Placement API: prerolls, start placements and ad frequency
Place the first ad correctly with Google's Ad Placement API: the preroll call sequence, when to use start instead, data-ad-frequency-hint, and the placement policy.