Skip to content

Commit

Permalink
Merge pull request #270 from boltss/bugfix/wrong-enums
Browse files Browse the repository at this point in the history
🐛 Fix using outdated variable names
  • Loading branch information
ammarahm-ed authored Mar 21, 2022
2 parents 5a619f0 + 586a726 commit 09e8968
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ios/RNAdMobManager/RNAdMobUnifiedAdQueueWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ios/RNAdMobManager/RNAdmobNativeAdsManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};

Expand Down
2 changes: 1 addition & 1 deletion ios/RNAdMobManager/RNGADNativeView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]];


Expand Down

0 comments on commit 09e8968

Please sign in to comment.