init
void
init
(
config
)
Initialize the connection with your application and the AD server
- Parameters:
-
config <Object>See manual for configuration options
- Returns:
void
setContent
Boolean
setContent
(
uri
,
metadata
)
Set content uri and metadata for the AD server and lauches ads and playback
- Parameters:
-
uri <String>Uri of the content -
metadata <Object>Metadata to send to the ad server
- Returns:
Boolean