If you haven’t already done so, add your game to Applixir then get your gameId, zoneId and accountId
-Go to: http://www.applixir.com/login
-Create a new account if you don’t already have one then login to it:
Press Add new Game
-on "Select Game Platform” - choose Android:
-Add Game Name
-Add game Url (the web page that you will add the html code in it and where ads will be displayed)
-press ADD GAME
-You can come back and click on your game to get gameId, zoneId and accountId if you forget them
-Adding the code to your website to show the Reward Video ads
-(if you don’t have a website there are lots of free site builders or we have instructions to use blogger)
Here is an example of a web page with Applixir ad integration:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Reward Ad</title>
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true"/>
<script type="text/javascript" src="https://cdn.applixir.com/applixir.sdk3.0m.js"></script>
</head>
<body>
<div id="applixir_vanishing_div" hidden>
if (enable_fullscreen === true) {
<iframe id="applixir_parent" allow="autoplay ; fullscreen"></iframe>
} else {
<iframe id="applixir_parent" allow="autoplay"></iframe>
}
</div>
<script type="text/javascript">
function adStatusCallback(status)
{
switch(status) {
case "ad-watched":
{
// Code to handle your user’s reward for watching the ad.
// Use ad-rewarded instead if you use RMS
}
break;
case "ads-unavailable":
{
// Code to tell the users there are no ads available.
// This isn’t be needed if you set fallback: 1 in options
}
break;
case "ad-blocker":
{
// The user has an ad blocker installed. Provide a message telling them they can’t
// get any rewards unless they disable their ad blocker for this app
}
break;
}
if(Android && Android.adStatusCallback) Android.adStatusCallback(status)
}
var options = {
zoneId: 2050, // Test zone, replace with value from panel on Games page when done testing
adStatusCb: adStatusCallback,
};
invokeApplixirVideoUnit(options);
</script>
</body>
</html>