Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Show and hide iad

$
0
0

This code was rejected .It had something to do with hide and show iad didnt seem to hide when theres no iad so whats do i need to change?

var adMobModule = require('ti.admob');

var userAdView = Ti.UI.createView({ height: Ti.UI.SIZE,//dp(50), bottom: 0, backgroundColor: '#000' }); win.add(userAdView);

var iAdView = Ti.UI.iOS.createAdView({ bottom: -50 });

iAdView.addEventListener('load', function(e){ iAdView.bottom = 0;

});

iAdView.addEventListener('error', function(e){ //hide iad? iAdView.bottom = -50;

});

userAdView.add(iAdView);


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>