Closed las-nhith closed 1 year ago
Working fine in our example app, please compare. (also while using rn 0.72.3)
npx react-native run-ios --simulator="iPhone 14 Pro"
@dylancom are you using Expo? banner ad not working in both ios and Android. my version is
"react-native-google-mobile-ads": "^11.6.4",
"react-native": "0.72.3",
"expo": "~49.0.6",
If i pass requestOptions
it's working.
Working
return (
<BannerAd unitId={TestIds.BANNER}
size={BannerAdSize.ANCHORED_ADAPTIVE_BANNER}
requestOptions={{
// requestNonPersonalizedAdsOnly: true,
}}
/>
)
not Working
return (
<BannerAd unitId={TestIds.BANNER}
size={BannerAdSize.ANCHORED_ADAPTIVE_BANNER}
/>
)
@saravanakumargn great catch, indeed not rendering when requestOptions isn't provided.
:tada: This issue has been resolved in version 11.6.5 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What happened?
Google BannerAd is not showing from version 11.3.0. Everything work perfect when I use version below 11.3.0
Platforms
iOS, but have not tested behavior on Android
React Native Info
Are your using Typescript?
package.json
app.json
ios/Podfile
android/build.gradle
No response
android/app/build.gradle
No response
android/settings.gradle
No response
AndroidManifest.xml
No response