diff --git a/ios/RNAdMobManager/RNAdMobUnifiedAdQueueWrapper.m b/ios/RNAdMobManager/RNAdMobUnifiedAdQueueWrapper.m index e59b1a84..2f4724a2 100644 --- a/ios/RNAdMobManager/RNAdMobUnifiedAdQueueWrapper.m +++ b/ios/RNAdMobManager/RNAdMobUnifiedAdQueueWrapper.m @@ -127,7 +127,7 @@ -(void) fillAds{ multipleAdsOptions.numberOfAds = MAX(require2fill,0); [options addObject:multipleAdsOptions]; } - adLoader = [[GADAdLoader alloc] initWithAdUnitID:_adUnitId rootViewController:nil adTypes:@[kGADAdLoaderAdTypeNative] options:options]; + adLoader = [[GADAdLoader alloc] initWithAdUnitID:_adUnitId rootViewController:nil adTypes:@[GADAdLoaderAdTypeNative] options:options]; [adLoader setDelegate:self]; loadingAdRequestCount = require2fill; diff --git a/ios/RNAdMobManager/RNAdmobNativeAdsManager.m b/ios/RNAdMobManager/RNAdmobNativeAdsManager.m index b6737c48..a0ac9dd0 100644 --- a/ios/RNAdMobManager/RNAdmobNativeAdsManager.m +++ b/ios/RNAdMobManager/RNAdmobNativeAdsManager.m @@ -76,7 +76,7 @@ @implementation RNAdmobNativeAdsManager }; if ([[config allKeys] containsObject:@"testDeviceIds"]) { - NSArray *testDevices = RNAdMobProcessTestDevices([config valueForKey:@"testDeviceIds"],kGAMSimulatorID); + NSArray *testDevices = RNAdMobProcessTestDevices([config valueForKey:@"testDeviceIds"],GADSimulatorID); [[[GADMobileAds sharedInstance] requestConfiguration] setTestDeviceIdentifiers:testDevices]; }; diff --git a/ios/RNAdMobManager/RNGADNativeView.m b/ios/RNAdMobManager/RNGADNativeView.m index d8cfa230..ea8b7d1e 100755 --- a/ios/RNAdMobManager/RNGADNativeView.m +++ b/ios/RNAdMobManager/RNGADNativeView.m @@ -474,7 +474,7 @@ - (void) requestAd{ isLoading = TRUE; self.adLoader = [[GADAdLoader alloc] initWithAdUnitID:adUnitId rootViewController:self.reactViewController - adTypes:@[ kGADAdLoaderAdTypeNative ] + adTypes:@[ GADAdLoaderAdTypeNative ] options:@[adMediaOptions,adPlacementOptions,adVideoOptions]];