MobFox shows AdUnit when no Ad available - fixed

Feb 9, 2012 at 11:16 AM
Edited Feb 9, 2012 at 11:26 AM

Add code to fix bug.

(sorry, insert code snippet does not work)

 

 

 

        private void AddEventHandlersToAdControl()        { ... ... ...            var mobFoxAd = _currentAdControl as MobFox.Ads.AdControl;            if (mobFoxAd != null)            {                mobFoxAd.NoAd += new MobFox.Ads.NoAdEventHandler(mobFox_NoAd);                mobFoxAd.NewAd += new MobFox.Ads.NewAdEventHandler(mobFox_NewAd);            }        }
        private void RemoveEventHandlersFromAdControl()        { ... ... ...            var mobFoxAd = _currentAdControl as MobFox.Ads.AdControl;            if (mobFoxAd != null)            {                mobFoxAd.NoAd -= new MobFox.Ads.NoAdEventHandler(mobFox_NoAd);                mobFoxAd.NewAd -= new MobFox.Ads.NewAdEventHandler(mobFox_NewAd);            }        }


        void mobFox_NewAd(object sender, MobFox.Ads.NewAdEventArgs e)        {            OnAdLoadSucceeded(AdType.MobFox);        }
        void mobFox_NoAd(object sender, MobFox.Ads.NoAdEventArgs e)        {            OnAdLoadFailed(AdType.MobFox);        }

Coordinator
Feb 12, 2012 at 10:55 AM

Thanks for the fix. Adding it in and will create a new release with this soon.