admob-openfl
admob-openfl copied to clipboard
Interstitial error
is there any example code on Interstitial? i tried initInterstitial then showInterstitial but it quit my apps
thanks
What is the error message? Have you called 'AD.initInterstitial()' before?
yep init then show how can i get the error msg from android device?
thanks
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
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 Fixed in the latest commit :)
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?
@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.