Please provide the following:
- SDK Version: 38.0.8
- Platforms(Android/iOS/web/all): Android/iOS
Expo managed workflow here.
I am just trying to test the test banners, but it’s not showing up. I do have an approved admob account.
I have referred to https://docs.expo.io/versions/latest/sdk/admob/ along with other sites.
app.json:
"android": {
...
"config": {
"googleMobileAdsAppId": "ca-app-pub-3940256099942544/6300978111"
}
screen.js
<AdMobBanner
bannerSize="fullBanner"
adUnitID="ca-app-pub-3940256099942544/6300978111"
// Test ID, Replace with your-admob-unit-id
onDidFailToReceiveAdWithError={err => {
console.log(err);
alert("Ad failed");
}}
onAdViewDidReceiveAd={() => {
console.log("Ad Recieved");
}}
//style={{ backgroundColor: "red" }}
/>
^I get the alert “Ad failed” and on the command prompt, I see “ERROR_CODE_INTERNAL_ERROR.”
Nothing shows up; the “banner” either doesn’t exist or is transparent. When I uncomment the backgroundcolor:red line, I can see a red banner though.
What am I doing wrong? I have tried using my actual AdsAppId in app.json and with either actual or test adID in screen.js and still nothing.
Thanks