496/5000
Regards,
I want to show rewarded ads, they are shown correctly, but I can not capture when the user closes the ad before it ends, if I click I can capture the information, but if I see the complete ad or close it before it ends it always prints the same How can I know if the ad is closed early?
I capture the information in this way, use sdkbox
sdkbox.PluginAdMob.setListener({
adViewDidReceiveAd: function(name) {
//cuando se recibe un anuncio de forma correcta
},
adViewDidFailToReceiveAdWithError: function(name, msg) {
//se presenta un error en la solicitud de un anuncio
},
adViewWillPresentScreen: function(name) {
//se esta mostrando el anuncio en pantalla corectamente
},
adViewDidDismissScreen: function(name) {
//self.showInfo('adViewDidDismissScreen name=' + name);
},
adViewWillDismissScreen: function(name) {
//self.showInfo('adViewWillDismissScreen=' + name);
},
adViewWillLeaveApplication: function(name) {
//cuando dan clic en el anuncio y son dirigidos a otra app
},
reward: function(name, currency, amount, action_type) {
//informacion del anuncio bonificado
},
},
});