Remove completeBlock from GADMediationAdapterUnity.m
Remove completeBlock from GADMediationAdapterUnity.m
MODIFY
adapters/Unity/UnityAdapter/GADMediationAdapterUnity.m
adapters/Unity/UnityAdapter/GADMediationAdapterUnity.m
#import "GADUnityError.h"
@import UnityAds;
-@interface GADMediationAdapterUnity () <GADMediationAdapter>
+@interface GADMediationAdapterUnity ()
@property(nonatomic, strong) GADMAdapterUnityRewardedAd *rewardedAd;
NSLog(@"Initializing Unity Ads SDK with the game ID %@.", gameID);
}
- UnitySingletonCompletion completeBlock = ^(UnityAdsError *error, NSString *message) {
- if (error) {
- completionHandler(GADUnityErrorWithDescription(message));
- return;
- }
+ [[GADMAdapterUnitySingleton sharedInstance] initializeWithGameID:gameID];
completionHandler(nil);
- };
-
- [[GADMAdapterUnitySingleton sharedInstance] initializeWithGameID:gameID
- completeBlock:completeBlock];
}
+ (GADVersionNumber)adSDKVersion {

Remove completeBlock from GADMediationAdapterUnity.m

Remove completeBlock from GADMediationAdapterUnity.m