Integrate iAds and InApp Purchases into your app using this template, just copy paste these functions and do minor changes and you are all set to go. This template will give the example of removing iAds with InApp purchase. Detailed instructions of how set up InApp Purchase on Apple Developer account is also included. This template is written in the latest SWFIT language, which will support all the upcoming iOS versions.
UPDATE: V1.2 Compiled with XCode 6.3.1, thus removing the issues faced.
V1.1 Updated with multiple IAP’s support Updated with restore IAP support