We're building an iPhone app and using this iAd plugin from PhoneGap: https://github.com/shazron/iAdPlugin/blob/master/SAiOSAdPlugin.m.
Because we built the app with HTML5, not Objective-C, and don't know how to adjust the plug-in.
When iAd lacks inventory, it displays a blank, white rectangle (320x50). We would like to display a 320x50 web page instead of the white rectangle, acting as a fallback ad, only show iAd when it has ad inventory again.
We know it's necessary to include code in (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError*)error
, but would love tips on what to do next.