Skip to content

MLib Libraries

List of Libraries

The libraries used in the MLib integration as listed follows:

Click the libraries to see them.

Include libraries in the code

Include them in your game code as follows:

  1. Click and download the MLib libraries in your system. You can find pre-created ad objects. Fill in the required values before using it.

    • Callback functions for banner and rewarded ads.

    • runOnAdClosed method: Calls the method based on the game flow.

    • replayEvent function: Triggers the replay ad on the Leaderboard.

    • rewardedEvent: Triggers rewarded ad.

    Move the downloaded MLib files under the index.html folder of the game.

  2. You can define the functions for other rewarded slots, such as skipLevel, addCoins, etc.

  3. When you trigger replayEvent and rewardEvent, you can control them using the runOnAdClosed method.

Do not modify the replayEvent and rewardEvent functions.