use ExtendedDelegate as showDelegate only
use ExtendedDelegate as showDelegate only
MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.m
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.m
[[GADMAdapterUnity alloc] initializeWithGameID:_gameID withInitDelegate:Nil];
}
- [UnityAds addDelegate:self];
[UnityAds load:_placementID loadDelegate:self];
}
return;
}
[_adEventDelegate willPresentFullScreenView];
+ [UnityAds addDelegate:self];
[UnityAds show:viewController placementId:_placementID];
}
#pragma mark - UnityAdsLoadDelegate Methods
- (void)unityAdsAdFailedToLoad:(nonnull NSString *)placementId {
- [UnityAds removeDelegate:self];
if (_adLoadCompletionHandler) {
NSError *error = GADUnityErrorWithDescription([NSString stringWithFormat:@"Failed to load rewarded ad with placement ID '%@'", placementId]);
_adEventDelegate = _adLoadCompletionHandler(nil, error);

use ExtendedDelegate as showDelegate only

use ExtendedDelegate as showDelegate only