capacitor-community / admob

Community plugin for using Google AdMob
MIT License
217 stars 68 forks source link

Google Ad type "App open" #167

Open sultanmyrza opened 2 years ago

sultanmyrza commented 2 years ago

Can we add support for Google Ad ("App Open")?

Ad format that appears when users open or switch back to your app. Ad overlays loading screen.

Screen Shot 2022-06-17 at 9 02 23 PM
distante commented 2 years ago

You can use appRestoreResult from the @app capacitor plugin for this.

sultanmyrza commented 2 years ago

You can use appRestoreResult from the @app capacitor plugin for this.

@distante thank you for the hint. I assume you mean something like this

App.addListener('appRestoredResult', (_) => {
    // Show "Interstitial" Ad
    await AdMob.prepareInterstitial(options);
    await AdMob.showInterstitial();

    // Show "Rewarded" Ad
    await AdMob.prepareRewardVideoAd(options);
    await AdMob.showRewardVideoAd();

   // Show "App Open" ad
   // So my question is can we add the "App Open" type of ad?
   // Probably will be something like
   // await AdMob.prepareAppOpenAd(options);
   // await AdMob.showAppOpenAd();
});

"App Open" ads look bit different

image

distante commented 2 years ago

I see, I will put the help wanted tag. For now I really do not have the time to see it :(

rdlabo commented 2 years ago

@sultanmyrza This feature has been in beta for a long time, but it has been released. I'd like to implement it somewhere, but the fastest way is for @sultanmyrza to create a pull request. We welcome it.

Thanks.

BETOXL commented 1 year ago

Hello, I got here for the same reason, but I see that it has not been implemented yet. I'm looking for the same thing for an app that I have for maps.

eufelipemateus commented 1 year ago

Same problem here!!