nooralibutt/easy-ads

onAdDismissed not called in unity in case of rewarded ads

niraj-prajapati opened this issue · 2 comments

here in case of rewarded ads, else bloc will never be called

void onCompleteUnityAd(String s) {
_isAdLoaded = false;
if (adUnitType == AdUnitType.rewarded) {
onEarnedReward?.call(adNetwork, adUnitType, null, null);
} else {
onAdDismissed?.call(adNetwork, adUnitType, null);
}
}

may be it should be like this

  void onCompleteUnityAd(String s) {
    _isAdLoaded = false;
    if (adUnitType == AdUnitType.rewarded) {
      onEarnedReward?.call(adNetwork, adUnitType, null, null);
    }
    onAdDismissed?.call(adNetwork, adUnitType, null);
  }

Will check this and let u know