, - Admob ( , ). , , -, .
, Appodeal PhoneGap Plugin, - . :
- ( ), b/c (
Appodeal.BANNER_TOP | Appodeal.BANNER_BOTTOM); - ( );
- , (
document.addEventListener('onBannerShown', function(){...}););
, HTML-, CSS, , Appodeal, onBannerShown -.
<style>
.appodeal-top {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 0;
}
.main-content {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.appodeal-show .appodeal-top {
height: 50px;
}
.appodeal-show .main-content {
top: 50px;
}
</style>
<script>
document.addEventListener('onBannerShown', function(){
document.getElementById('root').className = 'appodeal-show';
});
</script>
<div id="root">
<div class="appodeal-top"></div>
<div class="main-content">
...
</div>
</div>
( - ).