Voice Ads SDK (Mobile web)
Voice Ads SDK for mobile web
Last updated
Voice Ads SDK for mobile web
Last updated
Download the SDK from
It is required to add the script xman.min.js on a page to embed.
Please note that our SDK is built for Google Chrome browser on Android OS mobile devices.
AdMan ID should be sent as an object with the following attributes:
siteID - Site ID (Required, must be supplied by support team)
playerID - player ID for corresponding site (optional)
We use 1981 for testing purposes only. The value for a country will be different for different publishers.
Please ask our representatives for your value. Please, do not change the value during the initial integration.
The list of players supported by default:
You can use the SDK with any other player.
Please contact us at support@instreamatic.com in case of issues and we will do our best to troubleshoot.
To display a banner the parameter banner is used, which defines the element to embed a banner and its dimensions.
It is possible to set up a banner more precisely via the overlay system.
The script allows the display of a banner and an ad data via the overlay system. The overlay parameter receives an array of elements with the following fields:
Field
Description
id
an overlay id
target
a jQuery selector of the element to embed the overlay into
mode
overlay embedding mode
Name
Description
AdMan.Overlay.Mode.REPLACE
the overlay replaces the element
AdMan.Overlay.Mode.BEFORE
the overlay is embedded before the element
AdMan.Overlay.Mode.AFTER
the overlay is embedded after the element
AdMan.Overlay.Mode.PREPEND
the overlay is embedded into beginning of the element
AdMan.Overlay.Mode.APPEND
the overlay is embedded into the end of the element
Name
Description
AdMan.Overlay.Animate.OPACITY
AdMan.Overlay.Animate.SLIDE
AdMan.Overlay.Animate.BLUR
Name
Description
default
content
HTML code of an overlay
src
URL to overlay content
showOn
an array of events initializing overlay showing, by default ["adStarted"]
closeOn
an array of events initializing overlay hiding, by default []
Class name
Description
instreamatic-banner
a banner is added to the element
b[width]x[height]
is used with instreamatic-banner and allows the choice from the following banner dimensions:
b728x90
b468x60
b300x250
b240x400
b200x300
b160x160
b128x128
b640x640
instreamatic-left
playback remaining time is set to the element
instreamatic-close
the element is used to close the overlay, the attribute "data-delay" is used to set the time after which the element will be disabled in seconds
The following events can be generated:
Event Name
Description
adLoad
an ad request is sent
adNone
there is no ad for the user
adReady
the ad is ready to play
adStarted
the ad playback is started
adCompleted
the ad playback is finished
You can initiate playback by calling the start() method of AdManager. Please see the example below:
If you need help with integration, please send us the link to the page with your player to support@instreamatic.com . Our team will take a look at the player and will do their best to set up the SDK.