Skip to content

Chameleon Ad

Overview

Chameleon Ads is an ad network focused on websites. This components allows you to monetize your smartphone app with their network.

Preview of Chameleon Ad

Test Ad displayed with Chameleon Ads

In order to use this component, you will need an User ID and an App ID. Both parameters can be requested at Kodular Account (account.kodular.io/cpanel/creator/ads).
It is not needed to register on their website, as we have already integrated their service in our system.

Properties

App ID

Designer App ID Blocks App ID

( Setter only )
Type: Integer

The App ID is used to identify which app is serving ads.

Test Mode

Designer Test Mode Blocks Test Mode

( Getter + Setter )
Type: Boolean

Defines wether the app is in development mode or not.

Options
true Chameleon Ads will load a sample ad.
false App is in production, and will load normal ads

User ID

Designer UUID Blocks User ID

( Setter only )
Type: String

The User ID is generated using an UUID (Universally Unique IDentifier) format. It is used to determine which user should the earnings be sent.

Methods

Load Ad

Method Load Ad

( None )

Perform a process in the background to request an ad. It triggers On Ad Loaded event if request succeeds.

Show Ad

Method Show Ad

( None )

Opens a pop-up with the loaded ad. After 5 seconds, user can close the ad.

Events

Ad Closed

Event Ad Closed

( None )

Indicates that the user has closed the ad after being successfully showed.

Ad Failed To Load

Event Ad Failed To Load

( Text error Message )

Triggered after a failed attempt to load the ad.

Params
error Message String: Contains the reason of why ad failed to load.

Ad Failed To Show

Event Ad Failed To Show

( Text error Message )

Triggered after a failed attempt to show the ad.

Params
error Message String: Contains the reason of why ad failed to show. In most cases it might be that ad was not previously loaded.

Ad Loaded

Event Ad Loaded

( None )

Indicates that the ad has been successfully loaded and is ready to be shown.

Example

The below blocks can be used for the showing a an ad using Chameleon Ad component. In this example, ad starts loading in background and, when it is ready, the ad pop-outs.

Chameleon Ads Example