[TIMOB-15271] iOS7: Orientation - Ti.UI.iOS.createAdView does not create an ad successfully
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-09-18T16:54:34.000+0000 |
Affected Version/s | Release 3.1.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | ios7, qe-3.1.3 |
Reporter | Anshu Mittal |
Assignee | Vishal Duggal |
Created | 2013-09-18T11:42:50.000+0000 |
Updated | 2017-03-20T20:43:28.000+0000 |
Description
Ti.UI.iOS.createAdView does not create an ad successfully.
This is not regression since the issue occurs on 3.1.2 GA as well
Steps to reproduce:
1. Create an app using the code below.
2. Launch the app.
Expected:
An iAd should be created and displayed on the screen.
Actual:
The screen remains blank.
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var adView = Ti.UI.iOS.createAdView({
width : 'auto',
height : 'auto',
top : 0,
zIndex : 100
});
win1.add(adView);
adView.show();
win1.open();
Add an error listener and you'll see that there is an error. FYI Error Domain=ADErrorDomain Code=3 "The operation couldn’t be completed. Ad inventory unavailable" UserInfo=0xdc8c090 {ADInternalErrorCode=3, ADInternalErrorDomain=ADErrorDomain, NSLocalizedFailureReason=Ad inventory unavailable}
Closing ticket as invalid.