Skip to content
This repository contains the GameMonetize.com SDK for WebgGL Unity3D games. This allows you to display advertisements in the games published within the GameMonetize.com network.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md

README.md

  

GameMonetize.com-SDK WebGL Unity3D

This repository contains the GameMonetize.com SDK for WebGL Unity3D games. This allows you to display advertisements in the games published within the GameMonetize.com network. https://GameMonetize.com

STEP 1:

Download the plugin and Import the .unitypackage into your game.

Download here: https://drive.google.com/file/d/1lRYpxHe8mRtJ1nIsBFsWPEcv_W3zFBfQ/

STEP 2:

Drag the prefab "GameMonetize" into your scene.

STEP 3:

Copy your GAME_ID in your GameMonetize developer's control panel (in the Game Management > My games > Our game), at https://gamemonetize.com/account/

STEP 4:

Open the prefab and replace the GAME_ID values with your own keys.

STEP 5:

Use GameMonetize.Instance.ShowAd() to show an advertisement.

STEP 6:

Make use of the events GameMonetize.OnResumeGame and GameMonetize.OnPauseGame for resuming/pausing your game in between ads.

Example:

public class ExampleClass: MonoBehaviour {
	void Awake()
	{
	  GameMonetize.OnResumeGame += ResumeGame;
	  GameMonetize.OnPauseGame += PauseGame;
	}
	
	void OnDestroy()
	{
	  GameMonetize.OnResumeGame -= ResumeGame;
	  GameMonetize.OnPauseGame -= PauseGame;
	}

	public void ResumeGame()
	{
	  // RESUME MY GAME
	}

	public void PauseGame()
	{
	  // PAUSE MY GAME
	}

	public void ShowAd()
	{
	  GameMonetize.Instance.ShowAd();	
	}
}

FAQ

How to upload a game files?

Answer: When your game is ready to upload, you need to compress all game files to .ZIP file - Root folder of .ZIP file must include index.html and game files

Implementation self-hosted games.

In the case where a developer wants to self-host their game, please contact us on at: info@gamemonetize.com

Support:

If you have any technical questions or comments, please email us at: info@gamemonetize.com

Or simply check documentation on: https://gamemonetize.com/sdk

You can’t perform that action at this time.