I have also tried "interstitial" on iAds and get a crash:
Looks like some kind of event might be missing? "banner" works fine though.
*visit(MouseEvent* v)* stack NOT ok begin:0 end:2 delta:0 *CppLuaBridge::luaEvent* stack NOT ok begin:0 end:2 delta:0 *enterFrame* stack NOT ok begin:0 end:2 delta:0 *enterFrame* stack NOT ok begin:0 end:2 delta:0 2014-04-17 15:14:37.379 martians[6513:907] *** Terminating app due to uncaught exception of class 'nil' libc++abi.dylib: terminate called throwing an exception
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Yes, just read through the apple docs again and iad interstitials: with ios 6 and lower work only on iPad with ios 7 and higher work on iPad and iPhone/iPod
Once the check is in, 'auto' could be a nice way of picking the best option.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Hmm... maybe then change it to an array ('banner','interstitial') then if one fails it will pick the other? Or have 'best' so pick the one most likely to make $...
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I'm getting the following in the 'GiderosProject' from the download file:
init.lua:1: module 'ads' not found: no field package.preload['ads'] no file './ads.lua' no file '/usr/local/share/lua/5.1/ads.lua' no file '/usr/local/share/lua/5.1/ads/init.lua' no file '/usr/local/lib/lua/5.1/ads.lua' no file '/usr/local/lib/lua/5.1/ads/init.lua' no file './ads.so' no file '/usr/local/lib/lua/5.1/ads.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: init.lua:1: in main chunk
Actually this also occurs in any other project I try to add the 'ad interface' to
I'm trying to implement Mopub without success. As you already know, Mopub provides ads from third party companies, my questions are: - Do I need to implement Chartboost SDK (from ads-interface) if I want to use Chartboost from Mopub? (I've tried it without any success) - Is someone using it succesfuly? - At the present is there any good alternative to Mopub that allows crosspromotion?
java.lang.RuntimeException: Unable to resume activity {com.site.game/com.surprise.pluginSdk.fullAd_core.FullAdActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2124)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2139)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1672)
at android.app.ActivityThread.access$1500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.surprise.pluginSdk.fullAd_core.b.b(Unknown Source)
at com.surprise.pluginSdk.fullAd_core.b.a(Unknown Source)
at com.surprise.pluginSdk.fullAd_core.FullAdActivity.onResume(Unknown Source)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
at android.app.Activity.performResume(Activity.java:3832)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2114)
... 12 more
@synchrotrongames for mediation yes usually you also need the third party sdk to implement it, so in most cases there is no need for mediation if both frameworks are supported by AdsInterface, you just fall back through Lua code
Problem is that Null Pointer exception is caused by this surprise sdk. Somewhere onResume. Maybe their SDK needed you to pass an activity or something to resume method? Any docs available?
Updated ads interface: http://giderosmobile.com/labs/ads-interface version 1.6 (IOS and Android)Implemented connectivity check (Android)Admob - deprecated admob jar support (Android)Admob - removed check for Google Play services (IOS and Android)Admob - added additional param to load/showAd for specific ad units (Android)Amazon - upgraded sdk (Android)Amazon - added interstitial support (IOS and Android)Chartboost - upgraded sdk (IOS)Admob - upgraded sdk
I've replaced the GiderosAndroidPlayer project in Eclipse with the new src's.
After launch the player I execute my app in the Gideros Studio and it stops with a black screen. I can not see nothing in the log.
Maybe the ads module has something incorrect or I did something wrong?
Another question. The changelog the Admob load/show Ad methods have additional parameters. Now we have to call showad("auto", unitID). But firstly we have to call admob:setkey(appID), where appID is the "ca-app-pub-XXXXXXXXXXXXXXXX/YYYYYYYYYY". What is the unitID then?
@ar2rsawseen Attached you can find the logcat although the problem is the authority identity declaration for Amazon in the AndroidManifest. It's my fault.
Please, let me know if the next declaration for Amazon in the manifest is correct:
Regarding the unitIDs...
if I use two ads for the same platform and then I use two unitIDs (one for each of the two showAd method), which id I have to use in the setKey method ?
Comments
Looks like some kind of event might be missing? "banner" works fine though.
*visit(MouseEvent* v)* stack NOT ok begin:0 end:2 delta:0
*CppLuaBridge::luaEvent* stack NOT ok begin:0 end:2 delta:0
*enterFrame* stack NOT ok begin:0 end:2 delta:0
*enterFrame* stack NOT ok begin:0 end:2 delta:0
2014-04-17 15:14:37.379 martians[6513:907] *** Terminating app due to uncaught exception of class 'nil'
libc++abi.dylib: terminate called throwing an exception
https://deluxepixel.com
with ios 6 and lower work only on iPad
with ios 7 and higher work on iPad and iPhone/iPod
http://stackoverflow.com/a/20858735/2274511
So I will implement a check to see what ios version does the device have
Likes: SinisterSoft
https://deluxepixel.com
I can't really choose for the developer either to show banner or interstitial, can I?
https://deluxepixel.com
I really can't imagine the situation where you could show one or another
But if you really want to, there is always an AD_FAILED event to fallback to anything else you might want
https://deluxepixel.com
Likes: SinisterSoft
https://deluxepixel.com
https://developers.facebook.com/products/audience-network
https://deluxepixel.com
init.lua:1: module 'ads' not found:
no field package.preload['ads']
no file './ads.lua'
no file '/usr/local/share/lua/5.1/ads.lua'
no file '/usr/local/share/lua/5.1/ads/init.lua'
no file '/usr/local/lib/lua/5.1/ads.lua'
no file '/usr/local/lib/lua/5.1/ads/init.lua'
no file './ads.so'
no file '/usr/local/lib/lua/5.1/ads.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
init.lua:1: in main chunk
Actually this also occurs in any other project I try to add the 'ad interface' to
Plz hlp
Thx
http://docs.giderosmobile.com/deployment.html
(Device player with plugins)
Plugin installation instructions are with the plugin files in Gideros labs
I'm trying to implement Mopub without success. As you already know, Mopub provides ads from third party companies, my questions are:
- Do I need to implement Chartboost SDK (from ads-interface) if I want to use Chartboost from Mopub? (I've tried it without any success)
- Is someone using it succesfuly?
- At the present is there any good alternative to Mopub that allows crosspromotion?
Thank you!
@yubaro what is com.surprise.pluginSdk
I use admob, random charboost and heyzap.
http://giderosmobile.com/labs/ads-interface
version 1.6
(IOS and Android)Implemented connectivity check
(Android)Admob - deprecated admob jar support
(Android)Admob - removed check for Google Play services
(IOS and Android)Admob - added additional param to load/showAd for specific ad units
(Android)Amazon - upgraded sdk
(Android)Amazon - added interstitial support
(IOS and Android)Chartboost - upgraded sdk
(IOS)Admob - upgraded sdk
I've replaced the GiderosAndroidPlayer project in Eclipse with the new src's.
After launch the player I execute my app in the Gideros Studio and it stops with a black screen. I can not see nothing in the log.
Maybe the ads module has something incorrect or I did something wrong?
Another question. The changelog the Admob load/show Ad methods have additional parameters. Now we have to call showad("auto", unitID).
But firstly we have to call admob:setkey(appID), where appID is the "ca-app-pub-XXXXXXXXXXXXXXXX/YYYYYYYYYY". What is the unitID then?
Many thanks.
David.
Likes: dreiko65
https://play.google.com/store/apps/developer?id=SimplesApps
http://www.amazon.com/gp/mas/dl/android?p=com.simplesapps.actionbasket
https://itunes.apple.com/artist/david-rodriguez/id763996989
About admob param, it is optional
if you use only one single ad unit, you can use setKey method and provide nothing additional in load/showAd
But if you want to show banner and interstitial, they should have separate ad unit ids, then you can specify the optional param to differentiate them
Basically if nothing is provided as optional param, then lib looks in what you have set in setKey method.
Please, let me know if the next declaration for Amazon in the manifest is correct:
Regarding the unitIDs...
if I use two ads for the same platform and then I use two unitIDs (one for each of the two showAd method), which id I have to use in the setKey method ?