phonegap/phonegap-plugins — pull request #305 by asgeo1 (2011-12-31 05:02:29+00:00)
Title: AdPlugin: Orientation not being set correctly when device is flat

UIDevice measures orientation based on accelerometer - which does not work if the device is flat. Using the status bar orientation will work no matter what.

See http://stackoverflow.com/questions/930075/uidevice-orientation