I don’t know about JavaScript .using admob-plus-cordova.i don’t know what went wrong with this code, that I cut and paste from the npm … site,I put in function and JavaScript and end javascript.i couldn’t type the editor await ,it always appear Await
Function adm()
JavaScript
Let interstitial
document.addEventListener('deviceready', async () => {
interstitial = new admob.InterstitialAd({
adUnitId: 'ca-app-pub-xxx/yyy',
})
interstitial.on('load', (evt) => {
// evt.ad
})
Await interstitial.load();
Await interstitial.show();
}, False)
document.addEventListener('admob.ad.dismiss', async () => {
// Once a interstitial ad is shown, it cannot be shown again.
// Starts loading the Next interstitial ad as soon as it is dismissed.
Await interstitial.load()
})
End JavaScript
End Function
Tip: If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly. (We fixed it for you this time)
1)Err on statement let interstitial,uncaught syntax error ,err box stop on loading app on start in desktop browser.already type in adunitid,ca-app-pub-xx…/yy…,is it same as pub_id?it has been 5 months,I couldn’t find it on the admob site…
2)my admob requires review,but I can’t find where to submit review.can anyone point up for me?
Thanks in advance,tst
1)actual err msg ,uncaught syntax error:unexpected identifier ‘interstitial’ line 1877 column 5
2)under review might be because I couldn’t publish my app yet due to 1)
3)able to change to ‘await’ now
4) I change it to app id ca-app-pub-xxx/yyy
Remove let command,no err msg now.
2)sorry,my msg seems unclear.what I meant is my admob account is under review.once I publish my app, hopefully ,review will be automatically done.
Thanks a great deal for your tremendous support!,tst