1

How do I detect if an ads fail to load so I can replace the ads view container with something I can show the user. Right now if no ads load my view container just display a black rectangular.

Octavian Helm
  • 39,405
  • 19
  • 98
  • 102
Teo Choong Ping
  • 12,512
  • 18
  • 64
  • 91

2 Answers2

1

I read class methods of view object of adwhirl and, at the moment, It seems that there are not method to get this information.

But I used the method found at this link: Handle AdWhirl onFailure

And It runs properly. It uses custom events feature.

There is only a problem that I can solve: if user has internet connection not available, the app doesn't connect to adwhirl server and you can't launch custom event.

Community
  • 1
  • 1
Rocky
  • 11
  • 1
0

Does the Android version of the SDK come with a class that has optional methods you can implement? For the iPhone version, there're these optional methods in the delegate protocol you can implement that respond to either a sucess or a failure to receive an ad from the AdWhirl server:

- (void)adWhirlDidReceiveAd:(AdWhirlView *)adWhirlView;
- (void)adWhirlDidFailToReceiveAd:(AdWhirlView *)adWhirlView usingBackup:(BOOL)yesOrNo;

Maybe something similar exists in the Android SDK?

Joseph
  • 207
  • 3
  • 10
  • If there are I couldn't find it in the Java interface nor the docs. I did find something about custom events but it's still not clear to use that to detect ads failure. – Teo Choong Ping Mar 02 '11 at 03:06