sbugert / react-native-admob

A react-native component for Google AdMob banners
BSD 2-Clause "Simplified" License
1.13k stars 531 forks source link

The 'testDeviceID' prop of AdMobBanner is deprecated. #491

Open AmroShohoud opened 4 years ago

AmroShohoud commented 4 years ago

On latest version of react-native (0.61.4), try to implement admob banner:

\<AdMobBanner bannerSize="fullBanner" adUnitID="ca-app-pub-xxx" testDeviceID="EMULATOR" didFailToReceiveAdWithError={this.bannerError} />

Result is error: The testDeviceID prop of AdMobBanner is deprecated. Test device IDs are now set globally. Use AdMob.setTestDeviceIDAsync instead.

Gintak27 commented 4 years ago

I have this same issue was solution found ?

ru88s commented 4 years ago

setTestDeviceID = "EMULATOR" This is OK.