AD integration (not AdMob)

Hi guys!
I would like to integrate advertising from the Adtoapp. In IntelXDK I hooked them Appodeal Cordova Plugin. But how to implement the call ads and return to the game after watching the video? How to implement this code:

To show an ad with placement, you have to call show method like this:

Appodeal.showWithPlacement(adTypes, placementName);

SDK Integration Manual here: