return in initialization
return in initialization
MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityBannerAd.h
adapters/Unity/UnityAdapter/GADMAdapterUnityBannerAd.h
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityBannerAd.m
adapters/Unity/UnityAdapter/GADMAdapterUnityBannerAd.m
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityConstants.h
adapters/Unity/UnityAdapter/GADMAdapterUnityConstants.h
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.h
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.h
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.m
adapters/Unity/UnityAdapter/GADMAdapterUnityRewardedAd.m
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
NSLog(@"Requesting Unity rewarded ad with placement: %@", _placementID);
if (!_gameID || !_placementID) {
if (_adLoadCompletionHandler) {
- NSError *error = GADMAdapterUnityErrorWithCodeAndDescription(GADMAdapterUnityErrorInvalidServerParameters, kMISSING_ID_ERROR);
- _adLoadCompletionHandler(nil, error);
- _adLoadCompletionHandler = nil;
- }
- return;
- }
-
- if (![UnityAds isSupported]) {
- NSString *description =
- [[NSString alloc] initWithFormat:@"%@ is not supported for this device.",
- NSStringFromClass([UnityAds class])];
- if (_adLoadCompletionHandler) {
- NSError *error = GADMAdapterUnityErrorWithCodeAndDescription(GADMAdapterUnityErrorDeviceNotSupported, description);
+ NSError *error = GADMAdapterUnityErrorWithCodeAndDescription(GADMAdapterUnityErrorInvalidServerParameters, @"Game ID and Placement ID cannot be nil.");
_adLoadCompletionHandler(nil, error);
_adLoadCompletionHandler = nil;
}

MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityUtils.h
adapters/Unity/UnityAdapter/GADMAdapterUnityUtils.h
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADMAdapterUnityUtils.m
adapters/Unity/UnityAdapter/GADMAdapterUnityUtils.m
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADMUnityInitializer.h
adapters/Unity/UnityAdapter/GADMUnityInitializer.h
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADMUnityInitializer.m
adapters/Unity/UnityAdapter/GADMUnityInitializer.m
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
- (void)initializeWithGameID:(NSString *)gameID withInitDelegate:(id)initDelegate{
if (![UnityAds isSupported]) {
- NSLog(@"Unity Ads cannot be initialized: this device is not supported.");
+ NSString *message =
+ [[NSString alloc] initWithFormat:@"%@ is not supported for this device.",
+ NSStringFromClass([UnityAds class])];
+ [initDelegate initializationFailed:(kUnityInitializationErrorInternalError) withMessage:message];
+ return;
}
if ([UnityAds isInitialized]) {
NSLog(@"Unity Ads has already been initialized.");
+ [initDelegate initializationComplete];
+ return;
}
// Metadata needed by Unity Ads SDK before initialization.

MODIFY
adapters/Unity/UnityAdapter/GADMUnityInterstitialAd.h
adapters/Unity/UnityAdapter/GADMUnityInterstitialAd.h
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADMUnityInterstitialAd.m
adapters/Unity/UnityAdapter/GADMUnityInterstitialAd.m
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
- (void)unityAdsDidStart:(nonnull NSString *)placementId {
// nothing to do
+ //todo: double check if impression need this
}
- (void)unityAdsReady:(nonnull NSString *)placementId {

MODIFY
adapters/Unity/UnityAdapter/GADMediationAdapterUnity.h
adapters/Unity/UnityAdapter/GADMediationAdapterUnity.h
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADMediationAdapterUnity.m
adapters/Unity/UnityAdapter/GADMediationAdapterUnity.m
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADUnityError.h
adapters/Unity/UnityAdapter/GADUnityError.h
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

MODIFY
adapters/Unity/UnityAdapter/GADUnityError.m
adapters/Unity/UnityAdapter/GADUnityError.m
-// Copyright 2020 Google Inc.
+// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.

return in initialization

return in initialization