Skip to content

Commit

Permalink
Update ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.mm
Browse files Browse the repository at this point in the history
Co-authored-by: Dylan <[email protected]>
  • Loading branch information
markwilcox and dylancom authored Dec 19, 2024
1 parent ab22522 commit 7f6c3a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.mm
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,7 @@ + (GADAdSize)stringToAdSize:(NSString *)value withMaxHeight:(CGFloat)maxHeight {
CGFloat viewWidth = frame.size.width;
if ([value isEqualToString:@"INLINE_ADAPTIVE_BANNER"]) {
if (maxHeight > 0) {
if (maxHeight < 32) {
return GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight(viewWidth, 32.0);
} else {
return GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight(viewWidth, maxHeight);
}
return GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight(viewWidth, MAX(maxHeight, 32.0));
}
return GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(viewWidth);
}
Expand Down

0 comments on commit 7f6c3a8

Please sign in to comment.