Clean up RewardedAd
Clean up RewardedAd
MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.h
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.h
#import "GADMUnityInitializer.h"
@interface GADMAdapterUnityRewardedAd
-: NSObject <GADMediationRewardedAd, UnityAdsExtendedDelegate>
+: NSObject <GADMediationRewardedAd, UnityAdsExtendedDelegate, UnityAdsLoadDelegate>
- (instancetype)initWithAdConfiguration:(GADMediationRewardedAdConfiguration *)adConfiguration
completionHandler:(GADMediationRewardedLoadCompletionHandler)completionHandler;

MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.m
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.m
#import "GADUnityError.h"
#import "GADMAdapterUnityUtils.h"
-@interface GADMAdapterUnityRewardedAd () <UnityAdsExtendedDelegate, UnityAdsLoadDelegate> {
+@interface GADMAdapterUnityRewardedAd () <GADMediationRewardedAd, UnityAdsExtendedDelegate, UnityAdsLoadDelegate> {
// The completion handler to call when the ad loading succeeds or fails.
GADMediationRewardedLoadCompletionHandler _adLoadCompletionHandler;
[UnityAds show:viewController placementId:_placementID];
}
-#pragma mark - Unity Delegate Methods
+#pragma mark - UnityAdsExtendedDelegate Methods
- (void)unityAdsDidError:(UnityAdsError)error withMessage:(nonnull NSString *)message {
[UnityAds removeDelegate:self];
newState:(UnityAdsPlacementState)newState {
}
-#pragma mark - UnityLoadDelegate Methods
+#pragma mark - UnityAdsLoadDelegate Methods
- (void)unityAdsAdFailedToLoad:(nonnull NSString *)placementId {
[UnityAds removeDelegate:self];

Clean up RewardedAd

Clean up RewardedAd