Hello
I installed admob in my application and set it up like this in the Ionic documentation (https://ionicframework.com/docs/native/admob-free)
When the application starts the ad is not loaded.
I connected the smartphone to the PC and debugged through logcat, and detected this error:
loadUrl (javascript: cordova.fireDocumentEvent (‘admob.banner.events.LOAD_FAIL’, {“error”: 1, “reason”: “Invalid request”, “adType”: “banner”}); )
I found nothing regarding this error.
Can anyone help?
My admob setup code is this:
let bannerConfig: AdMobFreeBannerConfig = {
isTesting: true, // Remove in production
autoShow: true,
id: "..."
};
this.admobFree.banner.config(bannerConfig);
this.admobFree.banner.prepare().then(() => {
this.admobFree.banner.show();
}).catch(e => alert(e));
Thanks