Rough implementation of iAd