I have found one AdMob ANE, it works ok and supports both Android and iOS, but it has bugs and lack some functionality:
http://code.google.com/p/flash-air-admob-ane-for-ios
So, had no choice but create my own AdMob ANE.
Extension along with all the source code is available on GitHub:
AdMob ANE
Hello Pozirk,
I’m trying out your ANE for AdMob and I’m not sure how to proceed.
I see where to init the PUB ID ok
_admob.init(“pub-123…”)
but ‘m now wondering how to handle the “AD UNIT ID” provided by AdMob (“Ad unit ID: “ca-app-pub-123…/456…”). Is it needed/managed by your ANE?
Well I guess my question was dummy, and that the _admob.init() *should* use the Ad unit ID only…
Well, you use the only ID you have, why no try first and then ask questions?
Sometimes I was catching Advent.BANNER SHOW_OK event, but banner was not displayed. I checked other displays objects (made it transparents 50%) – but never seen banner.
(Android 4)
I have never had such problems.
Check your code and logs, if you find something, let me know.
So this bug appeared only after reactivating app.
Then I replace my listener for DEACTIVATE event from stage to NativeApplication.nativeApplication and bug disappeared.
//stage.addEventListener(Event.DEACTIVATE, deactivate); // bug
NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, deactivate) // workaround
Great, thanks for sharing.
Hello,
I have a problem..my logs are good..admob init, then i cache the ad..its ok..but when i showAd the application close himself..any idea why ???
Have no idea, check adb logcat.
Hi,
1120: access of undefined property -adMob is the error coming up.
Can you please let me know if i am missing out something
thank you
I have no idea what’s wrong in your case.
ANE is working fine. Check instructions and try again.