doesn't it work like this?
> ysdk.adv.showFullscreenAdv({
var self = this;
callbacks: {
onClose: function() {
self.runtime.trigger(cr.plugins_.yourpluginname.prototype.cnds.Onclose,self)
},
onError: function(error) {
self.runtime.trigger(cr.plugins_.yourpluginname.prototype.cnds.onError,self)
}
}
});
Thanks for your reply, i will try it