var manager = new Adman.Manager(app, { <br>redis: {“port”: 6667, “db”: 0},
ad_manager.adEvent('AdComplete', function(req, res) {
... Here you can place the code you want ...
... to run when commercial is over ...
manager.adEvent('AdNone', function(req, res) {
... Here you can place the code you want ...
... to run when there are no ads to play ...
app.intent("SomeYourIntent", function(req, res) {
if (you_want_to_start_commercial) {
return ad_manager.start(req, res);
// ad_manager.start returns Promise