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

Interstitial ads on iPhone, with iad

$
0
0

Hi,

I would like to make an interstitial iad for my application. But Appcelerator show only ads with the standard banner format.

This is my code :

var win = Ti.UI.createWindow({
    backgroundColor : 'yellow'
});
var ad = Ti.UI.iOS.createAdView({
    width : Ti.Platform.displayCaps.platformWidth,
    height : Ti.Platform.displayCaps.platformHeight,
    top : 0,
    backgroundColor : "pink"
});
 
ad.addEventListener("load", function(e){
    alert("iad - loaded");
});
ad.addEventListener("error", function(e){
    alert("iad - error");
});
ad.addEventListener("action", function(e){
    alert("iad - action");
});
ad.addEventListener("click", function(e){
    alert("iad - click");
});
ad.addEventListener("singletap", function(e){
    alert("iad - singletap");
});
ad.addEventListener("touchstart", function(e){
    alert("iad - touchstart");
});
ad.show();
 
win.add(ad);
 
win.open();
could I forget something ? thanks

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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