Merge pull request #662 from lecramfriedrich/master

add smartbanner landscape for iOS
This commit is contained in:
Michael Diarmid 2017-12-03 21:37:33 +00:00 committed by GitHub
commit ba79167c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -142,6 +142,8 @@ class RNFirebaseAdMobUtils {
return AdSize.LEADERBOARD; return AdSize.LEADERBOARD;
case "SMART_BANNER": case "SMART_BANNER":
return AdSize.SMART_BANNER; return AdSize.SMART_BANNER;
case "SMART_BANNER_LANDSCAPE":
return AdSize.SMART_BANNER;
} }
} }
} }

View File

@ -210,6 +210,8 @@ RCT_EXPORT_METHOD(clearInterstitial:
return kGADAdSizeLeaderboard; return kGADAdSizeLeaderboard;
} else if ([value isEqualToString:@"SMART_BANNER"]) { } else if ([value isEqualToString:@"SMART_BANNER"]) {
return kGADAdSizeSmartBannerPortrait; return kGADAdSizeSmartBannerPortrait;
} else if ([value isEqualToString:@"SMART_BANNER_LANDSCAPE"]) {
return kGADAdSizeSmartBannerLandscape;
} else { } else {
return kGADAdSizeBanner; return kGADAdSizeBanner;
} }