SDK docs

GDevelop 5

Export the web build and call the browser bridge from a JavaScript event at a deliberate game-state transition.

Export checklist

  • Export as a web game and ZIP the generated directory, not a parent folder.
  • Keep the generated index.html and resource files together.
  • Remove third-party advertising extensions before submission.

Bridge the SDK

Use one JavaScript event for each approved placement. Keep the reward event in the onReward callback rather than the button click event.

JavaScript
// GDevelop JavaScript event
window.PlayKovoSDK?.showRewarded({
  placement: "continue_run",
  onReward: () => runtimeScene.getGame().getVariables().get("continueGranted").setBoolean(true),
  onError: () => runtimeScene.getGame().getVariables().get("continueGranted").setBoolean(false),
});

Pause and sound

PlayKovo pauses your game during ads, while the app menu is open and when the tab or app is in the background, and mutes it from the player's sound button. Forward those events into the engine. The check for isMuted skips this on SDK 1.x, so the same build runs on both versions.

JavaScript
// GDevelop JavaScript event, run once at the beginning of the scene
const sdk = window.PlayKovoSDK;
if (sdk?.isMuted) {
  sdk.on("pause", () => runtimeScene.setTimeScale(0));
  sdk.on("resume", () => runtimeScene.setTimeScale(1));
  sdk.on("audio", ({ muted }) => runtimeScene.getGame().getSoundManager().setGlobalVolume(muted ? 0 : 100));
}

Test before review

Try the continue flow with test ads enabled and disabled. Only the rewarded completion may set the continue variable to true.

One SDK, every web engine

PlayKovo uses the same versioned browser SDK for approved hosted games. Engine pages explain the integration point; they do not require an engine-specific provider key or SDK download.

We use optional cookies for site analytics and site advertising. You can change your choice later. Privacy policy.