I’m using the new vungle and I just haven’t figured out how to make it work correctly.
I’m using auto caching ad and I run the vungle init using
vungle.init("vungle", placements, vungleAdEventListener)
I get the response “adInitialize”
I then wait for the next response saying “adAvailable”
I then try to call a vungle ad using
local adShown = vungle.show({ placementId=vunglePlacementID }) print("AdClass - adShown", adShown)
I will usually see a vungle ad but adShown is always nil. I’m not sure how adShown can be nil but in the docs it says it should be true or false depending on if an ad actually showed. Not only that this is the response I get right before the ad shows
table: 0xb83fe3c0 { [type] =\> "unableToPlayAd" [isError] =\> false [provider] =\> "vungle" [reason] =\> "Ad already playing" [name] =\> "adsRequest" [placementID] =\> "MY ID IS HERE" }
I’ve confirmed that I’m not trying to call the code twice and this is the same response that gets returned every time I try to show a vungle ad. After the ad plays and I try to close it I get a black screen that just stays there until I close the app. There’s no errors or any more responses.