mobile-sdk-android icon indicating copy to clipboard operation
mobile-sdk-android copied to clipboard

When a javascript within a Banner Ad is failing with an error, the BannerAdView should be handled as failed.

Open hnljp opened this issue 3 years ago • 1 comments

At the moment there is no possibility to check that a BannerAdView has failed. You can check when the inner WebView is failing, checking the ConsoleMessage of onConsoleMessage, when there is a log with the log level of ERROR.

https://github.com/appnexus/mobile-sdk-android/blob/fa4b4bc1a9eade9c5390a22b21035293c54aaad8/sdk/src/com/appnexus/opensdk/BaseWebChromeClient.java#L29

Please implement checking if the AdWebView has failed rendering its content, including running its javascripts and inform that the BannerAdView has failed.

hnljp avatar Nov 04 '22 22:11 hnljp

@hnljp, we cannot rely on onConsoleMessage with an ERROR log level and send back a failure because it does not guarantee that the Ad failed to load. There are numerous instances where a JS may raise an error but the ad still loads. Instead, we log console messages to provide information about what is broken.

avohraa avatar Nov 16 '22 12:11 avohraa