Monetizr Developer Hub

Welcome to the Monetizr developer hub. Here you will find user documentation and our API reference guide to get you started.

Get Started    API Reference

Unity Plugin Setup

Follow steps in this section to set up and start using Monetizr plugin for Unity.

Requires Unity 2017.2+

Unity 5.6 and earlier are not supported. The plugin uses UnityWebRequest features introduced in 2017.1, and Screen.safeArea for mobile notch handling introduced in 2017.2.

Supports Android 6+, iOS 7+.

Installation

You can install plugin from Github. Import the provided .unitypackage in your project, or paste the Monetizr folder from the Assets folder in your project.

Note about provided code examples

All plugin code is contained within the Monetizr namespace. If given code examples are not working make sure you have using Monetizr; at the top of your C# script.

Using the plugin

Monetizr is implemented as a singleton prefab. You can find this prefab at Monetizr/Prefabs/Monetizr Prefab. Place this in the first scene of your game. Monetizr code makes sure that there is only 1 prefab instantiated.

Out-of-the-box it comes preconfigured with our test access token.

Out-of-the-box it comes preconfigured with our test access token.

Showing the product
Use the public test token "4D2E54389EB489966658DDD83E2D1" to show the product "Sample shirt".

MonetizrClient.Instance.ShowProductForTag("Sample shirt");
Product page using default dark color scheme

Product page using default dark color scheme

The plugin is written using the singleton pattern in order to simplify the workflow. At any time, you can access the current MonetizrMonoBehaviour with MonetizrClient.Instance.


What's Next

Creating account

Unity Plugin Setup


Follow steps in this section to set up and start using Monetizr plugin for Unity.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.