But in the simulator and on the device it gives an error
UserInfo={ADInternalErrorCode=4, NSLocalizedFailureReason=Application has iAd Network configuration error, ADInternalErrorDomain=ADErrorDomain}
iAd was shut down on June 30th. You'll have to use something else such as AdMob.