[MonoTouch] ADBannerView: Unhandled error - Why?

stevek steve.keane at solvd.co.uk
Thu Mar 15 16:19:09 UTC 2012


I am trying to use iAds with an ADBannerViewDelegate. Quite often I get a
warning in the console:
"ADBannerView: Unhandled error (no delegate or delegate does not implement
didFailToReceiveAdWithError:):"

Sometimes it works and dumps out "aaFailedToReceiveAd" other times I get the
warning.

The iAd is inside a view if that makes any difference.

Any ideas what is wrong?


My code in the delegate that (occasionally) works:

public override void FailedToReceiveAd (ADBannerView banner,
MonoTouch.Foundation.NSError error)
	        {
				System.Diagnostics.Debug.WriteLine("aaFailedToReceiveAd");
	                        banner.Hidden = true;
				//TODO: SK - fall back to Admob
				System.Diagnostics.Debug.WriteLine("Now show Admob instead...");
				_gAd.Hidden = false;
	        }

--
View this message in context: http://monotouch.2284126.n4.nabble.com/ADBannerView-Unhandled-error-Why-tp4475532p4475532.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list