ADMOB integration ?
Has anyone already successfully integrated ADMOB advertisements ?
9 Answers
-
You can find an early implementation of AdMob for Android at http://CrucialDivide.com/titanium-ads.jar which should against the latest build of Titanium (1.3.1). Currently there's a fair amount of debug info but it's working, ads are refreshed and it handles the emulator, events, properties, etc.
You should be able to drop the .jar into your mobilesdk folder and it'll be picked up by Ti. On linux this would generally be: $HOME/.titanium/mobilesdk/linux/1.3.1/android/modules
An example of how to use it can be found:
http://gist.github.com/439986If you're interested in the complete source, a little rough around the edges, then you can find my working copy of Ti here - http://github.com/dasher/titanium_mobile/tree/dasher
Just an FYI - it's built to support multiple ad providers as you'll see from the gist although currently it's only AdMob.
Update:
I can't check the Appcelerator TOS page due it not working - so if it's against the rules then I'm sure Appcelerator will let me know.You can grab a full 1.3.1 from http://CrucialDivide.com/mobilesdk-1.3.1-linux.zip
If you need complete instructions:
1) Download 2) Open archive 3) extract to ~/.titanium/mobilesdk - you should now have a 1.3.1 folder 4) Open Ti desktop tool: 4.1) select your project 4.2) select the edit panel and select 1.3.1 from the list of available SDK
-
I have a (simple) beta version of an android module here: https://github.com/bkurzius/Titanium-Android-AdMob-Module.
I posted more info about it here: http://developer.appcelerator.com/question/119673/admob-for-android. Any android devs, please feel free to help improve it!
-
I have an implementation of AdMob working in my iPhone app, but I have not yet submitted it for approval. I am concerned, given what I've read the last few days regarding another Apple TOS change that basically "bans AdMob". Had anyone attempted a Ti module to support iAd?
-
I asked about admob the other day, I was specifically talking android. However perhaps the devs could tell us about whether their module API solution will support iAd for you.
-
Me too, I have been waiting for this 'feature'. According to the developers of ti, it is in the roadmap for future release of Ti SDK.
Right now, I can only wait as current work-arounds are a bit tedious to implement plus may break Apple TOS.
Since Apple coming up with iAds, I wonder if Ti will support it directly in the Ti mobile SDK….
-
Thanks for linking that David. Worked Perfectly. It's Great
Perhaps Appcelerator will Put it in straight away.For those who haven't been following - David's Appcelerator Plugin
1) You can grab a full 1.3.1 with Admob Plugin from
http://CrucialDivide.com/mobilesdk-1.3.1-linux.zip
2) Read his code at:
http://gist.github.com/439986
-
Does this approach work with Titanium SDK 1.4.0?
-
This approach can't support on Titanium SDK1.6.1.
I Hope the Titanium can Integrate the Admob quickly!
Ref1: Admob for iPhone
http://developer.admob.com/wiki/IPhone- This document described, I can use "new_windos: true" to control it.
Ref2: Admob for Android
http://developer.admob.com/wiki/Android- But on the Android hasn't the "new_windos: true" method.
Does anyone have any solution on it? I want to detect the "Click AdMob Banner" behavior to open on new window for Android.
Thank you!
-
I suspect they are lighter on android/java programmers than ipod ones.. but you would think someone could slap together a wrapper.. I may take a stab at it although I dont know what Im going.. Suppose it would be a good way to learn!