Theme switcher

Overview & Getting Started

Welcome to Haxelo SDK documentation, this will guide you to quickly integrate and utilize the SDK functionalities within your games.

Basics

Lets get started



Registration

First of all we need to add your first game on our platform

1

Registration

Register at Haxelo platform as game owner and follow the steps

2

Games section

You can access your games from Games section

3

Add game

You can easilly add your game by clicking on Add Game button

4

Input relevant information

Make Sure that info is up to date and correct. This will ensure montization effectivness.

5

Congragulations, you've added your first game.

You can publish your game using this button


Download SDK

Here you can download relevant version of Haxelo SDK

Import it into your Unity project.

Insert keys into Haxelo editor

You can copy your api key and Identifier anytime from here

Insert keys into the editor.

To open Haxelo editor, from the main menu bar find Haxelo, and click on Configure.

Enter your API key and Game ID, then click apply and wait for the verification process. If it's succeeded, you should see the message “API Key applied successfully!”.

Haxelo Configuration

You can open Haxelo configuration window by navigating to Haxelo tab at the top.

After setup is done, the configuration has several tools that you can configure.

Outline Color

You can select your default global outline color from here, however, you can override this setting from the banner configuration. Outlines only appear on banners that are clickable and have widgets.

Logs

You can enable/disable haxelo logs from this configuration.

Default Texture

You can select default texture for banners, if there are no ads, this will be shown.

Placing billboards

To get started with banners, from haxelo menu open Haxelo Adverts.

This window should pop up.

Select your Ad Type and banner size. Then click on Create. The banner should appear in your scene. Position it as you would like, but keep in mind that you can't modify the aspect ratio of the banner.

Each banner can be separately configured, but this is not a required step. They all have their default values, if required, you can configure each of them.

By enabling custom outline color, you can override the global color value.

Default texture can also be overridden from banner configuration.

PLEASE DO NOT MODIFY ID, THIS IS FOR BANNER IDENTIFICATION AND CHANGING IT WILL CAUSE PROBLEMS.

Invisible on no content means that your banner will not be visible in the game if there is no ad to show. by default, it's disabled.

You are also able to turn on/off vibration on interaction for mobile devices only.

On magnifier close callback can be used to do any action when the user closes the advertisement of this banner.

Interaction type can also be configured from banner configration.

If needed, you can also set up your custom canvas for magnifier and assign it in the inspector of banner.

In your resources folder, you will find the default prefab. Duplicate it and redesign it for your needs. Please do not remove or modify the default prefab to avoid errors.

Also please keep the canvas structure and button functions the same, otherwise it will not function as expected.

Haxelo SDK Methods

In the project, there is sample initialization script that will show you how you can initilize Haxelo Session and use all of the methods.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 using System.Collections; using System.Collections.Generic; using UnityEngine; using haxelo; public class DemoScript : MonoBehaviour { // Start is called before the first frame update void Start() { //Initialize Haxelo Session by passing accurate data UserData data = new UserData("Female", 25); Haxelo.Initialize(data, false); //Set Target Camera Haxelo.setTargetCamera(Camera.main); //Track magnifier opens to pause the game Haxelo.onMagnifierOpen.AddListener(delegate { Haxelo.Log("Magnifier open event!"); Time.timeScale = 0; }); //Track magnifier opens to unpause the game Haxelo.onMagnifierClose.AddListener(delegate { Haxelo.Log("Magnifier Close event!"); Time.timeScale = 1; }); //Track Clicks to optionally reward user Haxelo.onLinkClick.AddListener(delegate { Haxelo.Log("Link Click event!"); Time.timeScale = 1; }); } //optionally Track player activity private void Update() { Haxelo.Log($"Player Activity {Haxelo.isPlayerActive()}"); } }