Closed feeling99 closed 9 years ago
Yeah, it's a problem.
I am thinking to use same event name, but with parameters, for example:
'onAdLoaded', {'adNetwork':'AdMob','adType':'banner','adEvent':'onAdLoaded'}
What do you think?
yeah that will do, I think.
it's fixed.
document.addEventListener('onAdFailLoad', function(data){
alert('error: ' + data.error +
', reason: ' + data.reason +
', adNetwork:' + data.adNetwork +
', adType:' + data.adType +
', adEvent:' + data.adEvent); // adType: 'banner' or 'interstitial'
});
document.addEventListener('onAdLoaded', function(data){});
document.addEventListener('onAdPresent', function(data){});
document.addEventListener('onAdLeaveApp', function(data){});
document.addEventListener('onAdDismiss', function(data){});
That's great. I will try that out.
Hi,
It seems all your plugins (admob/mopub/mmedia) use the same event name: document.addEventListener('onBannerReceive', function(){})
this cause conflict if user try to use multiple plugins at the same time. It would be good if you can use different event name for each plugin. for example: for mopub use 'onMopubBannerReceive' for admob use 'onAdmobBannerReceive' for mmedia use 'onMmediaBannerReceive'
cheers,