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:
-
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.
-
runOnAdClosedmethod: Calls the method based on the game flow. -
replayEventfunction: Triggers the replay ad on the Leaderboard. -
rewardedEvent: Triggers rewarded ad.
Move the downloaded MLib files under the index.html folder of the game. -
-
You can define the functions for other rewarded slots, such as
skipLevel,addCoins, etc. -
When you trigger
replayEventandrewardEvent, you can control them using therunOnAdClosedmethod.
Do not modify the replayEvent and rewardEvent functions.