playMaker

Author Topic: AdMob × Easy Mobile Best Practice??  (Read 751 times)

playmakertester

  • Full Member
  • ***
  • Posts: 211
AdMob × Easy Mobile Best Practice??
« on: April 24, 2021, 12:08:06 AM »
Hi,

Does anyone has Best Practice of AdMob × Easy Mobile?

I'm trying to implement AdMob's interstitial ads using EasyMobile, and I'm wondering how best to combine Actions.

I'm trying to implement AdMob interstitial ads using EasyMobile, but I'm having trouble figuring out the best way to combine the actions. I'm currently implementing it as shown in the attached image, but two interstitials are displayed on the Scene.

If you have any advice on how to combine Actions, please let me know.
« Last Edit: April 24, 2021, 12:12:50 AM by playmakertester »

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: AdMob × Easy Mobile Best Practice??
« Reply #1 on: April 27, 2021, 01:26:34 PM »
First of all, this extension relies on Global variables in the demo. It's a practical way to handle the ads and the targeted networks so I suggest you do the same in your FSMs.
When it comes to sensitive operations like this, I think it's better to have a single GO dedicated to each ad type (interstitial, rewarded) and have multiple FSMs on it, to keep important steps separate, like checking if an ad is available, loading one, showing one, and keeping track of the result.

Use a bool named interstitialAd_running for example in the FSM that launches the advertisement and check if it's set to true before sending an event to this FSM to launch the ad from anywhere else in your game.

Set this boolean to true if an ad is properly launched (assuming one was available, which you might need to check beforehand too).

Reset interstitialAd_running once the ad has finished playing (put it back to false).

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: AdMob × Easy Mobile Best Practice??[CLOSED]
« Reply #2 on: April 30, 2021, 02:08:34 AM »
Thanks! let me try again!