Error handling when implementing Admob for Android

730 Views Asked by At

Since the new Admob SDK requires and uses the Google Play Services there has been several instances of widespread errors related to Google Play Services badly impacting apps with Admod as their monetization source.

There are some discussions open in the Admob Developers Forum in regards to how to mitigate these issues but I have not found a bulletproof approach to make sure that something like an Admob banner does not have a chance to force close my app if either Admob internal code or Google Play Services internal code breaks down.

Do you know of an error handling approach that in the worst case scenario would just maybe not load a banner add after it being requested instead of force closing the app generating an undesired low quality perception to the user?

Thanks, Diego.

1

There are 1 best solutions below

3
On BEST ANSWER

There is no such beast.

Once you have invoked an async process (like ad handling) there is no way to catch that fault within your Activity.