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

Android

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

Requires Android SDK version 21+

Lollipop 5.0 and above

Step 1. Installation

Find the plugin on Github.

Use Gradle (build.gradle file inside your application root folder) to install and Monetizr plugin to dependencies list.

MavenCentral and Google are added to repositories by default but it's still suggested to check if they are present.

repositories {
  mavenCentral()
  google()
}

dependencies {
  ...
  implementation 'io.monetizr.monetizrsdk:MonetizrSDK:1.0.0'
  ...
}

Use Maven

<dependency>
	<groupId>io.monetizr.monetizrsdk</groupId>
	<artifactId>MonetizrSDK</artifactId>
	<version>1.0.0</version>
	<type>pom</type>
</dependency>

Step 2. Retrieve access token

At Monetizr we are working on new reward management platform for your apps. There you will be able to manage your access tokens and related rewards. Until then please contact us at support@themonetizr.com to get in touch and retrieve an access token.

Test access token: 4D2E54389EB489966658DDD83E2D1
Test callback rewards: "Sample shirt", "Sample pin", "Sample gift card".

Step 3. Use plugin

1. Specify access token
Should be called once, before invoking Monetizr plugin for the first time. You can change access token at any time just make sure to always use your unique token.

MonetizrSdk.apikey = "4D2E54389EB489966658DDD83E2D1"

2.Invoke reward window

You can invoke this window at any time in your game. It will show reward window with your custom merch in it. Rewards tags are being created specifically for you.

MonetizrSdk.showProductForTag("Sample shirt")

Additional information

Enable debugging mode with specifying debuggable property to true. This property will print out messages to Logcat window in Android Studio. With property set to false (defaults to false) it will ignore error messages and will not make any interaction with host application.

MonetizrSdk.debuggable = true

Required permissions:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Android


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

Suggested Edits are limited on API Reference Pages

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