admob-openfl icon indicating copy to clipboard operation
admob-openfl copied to clipboard

Interstitial error

Open beblank opened this issue 10 years ago • 7 comments

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

thanks

beblank avatar May 02 '14 09:05 beblank

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

mkorman9 avatar May 02 '14 21:05 mkorman9

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

thanks

beblank avatar May 03 '14 00:05 beblank

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

mkorman9 avatar May 03 '14 11:05 mkorman9

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

siratama avatar May 05 '14 00:05 siratama

@siratama Fixed in the latest commit :)

mkorman9 avatar May 07 '14 15:05 mkorman9

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?

repepto avatar Sep 20 '14 20:09 repepto

@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.

siratama avatar Sep 22 '14 05:09 siratama