Guides

Monetization

Learn how to display advertisements, handle rewards, and generate revenue from your HTML5 games.

Rewarded Videos

Allow players to watch voluntary video ads in exchange for in-game currencies, lives, or boosts. Subscribe to the reward listener to trigger rewards:

// Subscribe to rewarded events
const unsubscribe = Boofer.onRewardEarned(({ type, amount }) => {
  if (type === 'extra_life') {
    player.lives += amount;
    resumeGame();
  }
});