79314210

Date: 2024-12-28 17:06:40
Score: 0.5
Natty:
Report link

As the error states, the OnAdLoaded method, when overridden provides a parameter of type Java.Lang.Object. Similarly, OnAdFailedToLoad provides a parameter of type LoadAdError

It seems you're trying to implement Interstitial Ads in your app and you are expecting the provided parameter of OnAdLoaded method to be of type InterstitialAd.

I would suggest to follow the approach specified in this link to achieve this.

You just have to create a custom callback class instead of directly using InterstitialAdLoadCallback to get InterstitialAd as parameter to OnAdLoaded method.

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bhavanesh N