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.

Notifications You must be signed in to change notification settings

MonetizeGame/GameMonetize.com-SDK-Unity3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 

Repository files navigation

  


📌 DOWNLOAD our WebGL Template:
➡️ Download Here WebGL Template


📌 DOWNLOAD CODE protection against game stealing:
➡️ Download Here SiteLock.cs

GameMonetize.com-SDK WebGL Unity

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/1sFXHpEL3V0IG_ZUeauR9eAZxIzj8dBkn/

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

Protect your WebGL games from theft (recommended)

How to protect my games?

Answer: Together with our awesome developers, we have developed a script that will help you protect your games from theft of your Unity WebGL games.

Please DOWNLOAD HERE a file SiteLock.cs and attach this file to your Unity game, for any help or questions please contact us on at: info@gamemonetize.com

CREDITS TO: BestCrazyGames M3ntoL (https://bestcrazygames.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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published