Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdMob initialize with both android APP-ID and ios APP-ID #71

Open
sdedieu opened this issue Nov 20, 2020 · 1 comment
Open

AdMob initialize with both android APP-ID and ios APP-ID #71

sdedieu opened this issue Nov 20, 2020 · 1 comment

Comments

@sdedieu
Copy link

sdedieu commented Nov 20, 2020

Hi,

I'm currently following your started documentation and I wondered as I have an Ionic capacitor App for both platforms IOS and Android, apps.admob.com made me add two apps and generated two APP-ID.

How can I AdMob.initialize() for the two platforms in my app.component.ts ?

Thanks in advance,

Regards

@eichgi
Copy link

eichgi commented Dec 15, 2020

Hey, I am facing the same issue and I found the isPlatform method doc here: https://ionicframework.com/docs/vue/platform

You might validate the platform in order to set up one admob id or another.

By the way, are you able to see the ads (banners & interstitials) in iOS? While debugging with the emulator they are visible, but in production with real devices I am not able to see them.

I hope my suggestion works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants