Hi,
I need to display an interstitial ad in my app, which works fine.
However, I need to distinguish between two separate ad units, say ad1 and ad2. Both are interstitials.
The reason for this is that one of them is used as an standard ad, and the second one as a rewarded ad. Possibly I would like to distinguish among more than two units, so I could have different interstitials giving different rewards in various places in the game.
admob.init lets me specify a listener for when the ad was watched but no way to determine where from in the game it was called. So if I just show ‘interstitial’ then no matter the context it will trigger the same listener as any other one (i.e. the random ad giving the same reward as the rewarded ad). As far as I can tell having multiple admob.inits in one app is incorrect.
So is there a admob plugin ‘native’ way of doing this or do I need to try to find out which ad is being shown by means of external variables or something?
EDIT: Ok, I’ve realized I can load a specific ad unit via admob.load(). But how do I distinguish between them in the listener?