mkorman9 / admob-openfl

Google AdMob extension for OpenFL
MIT License
48 stars 12 forks source link

Interstitial error #12

Open beblank opened 10 years ago

beblank commented 10 years ago

is there any example code on Interstitial? i tried initInterstitial then showInterstitial but it quit my apps

thanks

mkorman9 commented 10 years ago

What is the error message? Have you called 'AD.initInterstitial()' before?

beblank commented 10 years ago

yep init then show how can i get the error msg from android device?

thanks

mkorman9 commented 10 years ago

Connect your device through USB, run "adb logcat > logfile.txt" and then run your app. After crash search for exception messages in logfile.txt

https://developer.android.com/tools/help/logcat.html

siratama commented 10 years ago

Are the following lines problems? I think that it is not displayInterstitial but showInterstitial.

GameActivity.java: line 266

static public void displayInterstitial() {

AD.hx: line 92

"org.haxe.lime.GameActivity", "showInterstitial", "()V", true
mkorman9 commented 10 years ago

@siratama Fixed in the latest commit :)

repepto commented 10 years ago

It works fine with banner. But when i try interstitial (AD.initInterstitial(ID); AD.showInterstitial();) nothing happens and there are no error messages in logcat. Where am i wrong?

siratama commented 10 years ago

@wuprui When AD.showInterstitial method is called, the advertisement may not have been load yet. In that case, it is necessary to correct a code. http://stackoverflow.com/questions/20854789/admob-interstitial-ad-wont-display

I have not succeeded in the display of Interstitial Ads yet.