admob-plus / admob-plus

Trustable AdMob Plugin for Cordova, Capacitor, Ionic, React Native
https://admob-plus.github.io
MIT License
360 stars 150 forks source link

admob.start() not working on Vue Cordova #607

Closed yusuf1980 closed 8 months ago

yusuf1980 commented 9 months ago

onMounted( () => { let banner; document.addEventListener('deviceready', async () => {

    await admob.start() // or start loading ads
    console.log(admob)

    banner = new admob.BannerAd({
        adUnitId: 'ca-app-pub-......',
        position: 'bottom',
        offset: 0,
    })

    banner.on('impression', async (evt) => {
        await banner.hide()
    })

    await banner.show()
    console.log('show')
}, false)

})

kapchew commented 8 months ago

You need to enable Kotlin support https://admob-plus.github.io/docs/cordova/upgrade

yusuf1980 commented 8 months ago

You need to enable Kotlin support https://admob-plus.github.io/docs/cordova/upgrade

It's work, thank you.