Initialization HTML5 branding implementation

First of all you'll have to include our javascript file inside your game. The most common place is inside the <head> tag of the index.html file.

<script src="https://media.admeen.com/branding/api.js"></script>
Use our debug file to get console debug information. Please don't forget to include the non-debug file before publishing your game!
<script src="https://media.admeen.com/branding/api.debug.js"></script>

Load object

Once the script has been included you can initialize the Admeen object using custom settings as your game name, debug enabled and/or custom configuration (see example below).

// Basic initialization (name is required)
admeen("init",{name:"Great HTML5 game"});

// More advanced init with debugging enabled and custom configuration
var admeenData = {
	name: "Great HTML5 game", //Name of the game
	config: {} //Object to overwrite default configuration, more info in the 'Branding Logo' section
};
admeen("init", admeenData);

Use API

Now that the Admeen object has been initialized you can use the API functions. Please select the type of element (at the top of this page) you want to implement.

Retina images

We check the device retina support. If a device supports retina images we will serve them. If you make a call to our splash or logo API to fetch the image url a @2x version can be returned, so please check your retina implementation as well. In some circumstances you don't want to receive the @2x version. You can force the API to disable retina by setting retina:false in the call:

// Disable retina
var admeenData = {
	name: "Great HTML5 game", //Name of the game
	retina: false,
	config: {} //Object to overwrite default configuration, more info in the 'Branding Logo' section
};
admeen("init", admeenData);