floatinghotpot / cordova-plugin-mmedia

Cordova/PhoneGap for Millennial Media Ad
7 stars 6 forks source link

Success and Fail functios not working #6

Open ESA14 opened 8 years ago

ESA14 commented 8 years ago

Hello, you write in the docs: prepareInterstitial(adId/options, success, fail);

So I think success is a functon will will be called, if an ad was loaded successfully and fail if not.

I use this code: if(mMedia) mMedia.prepareInterstitial( {adIdmMedia:adidmMedia.interstitial, autoShow:false}, SuccessmMedia, FailmMedia );

Always the success function gets fired and no ad is prepaired. Do I have a wrong code?

Thank you!