Skip to main content
Participant
Oct 10, 2011 1:05 PM UTC
Question

Native AdMob integration with AIR 3 ? how to ?

Hi everybody,

I'm trying to use Native AdMob (java) integration to show ad in my AIR 3 application (coded and builded with FlashDevelopp)

But i have no idea on how to do it ...

Any help will be greatly appreciate ..

P.S. : Sorry for my bad english.

This topic is closed to new replies. Start a new post to keep the conversation going.

23 replies

Inspiring
May 15, 2013 4:36 PM UTC

At last I have listed the new Adobe Native Extension for Android and iOS completely free, you can download it from here: http://www.enriquedavid.es/downloads/admob-native-extension.zip

And here the documentation (English): http://www.enriquedavid.es/doc/admob/

Enjoy it!

Translate
Known Participant
Oct 28, 2012 3:07 PM UTC

http://code.google.com/p/flash-for-mobile/

qq讨论群:56892018

version for android http://code.google.com/p/flash-for-mobile/

version for iphone and ipad https://github.com/lilili87222/admob-for-flash

this is a actionscript native extension for developer to ad advertisement to their air mobile application run on iphone or android.it very easy to use

admob for flash android this lib enable you to add admob ad to your flash air application to add native advertisement to your actionscript3 application you just need to do four step

1.replace D:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.1\lib\android\lib\resources\android-res.jar with android-res.jar

2. add this config to -app.xml

<android>
<manifestadditions>
<![CDATA[
<manifest android:installLocation="auto">
<uses-sdk android:targetSdkVersion="11"/> <uses-sdk android:minSdkVersion="8"/>
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application>
<!-- <activity android:name="com.google.ads.AdActivity?" android:configChanges="keyboard|keyboardHidden|orientation"/> --> <activity android:name="com.google.ads.AdActivity?" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>

Unknown end tag for </manifest>

]]>
</manifestadditions>
</android>

3.add this config to -app.xml

<extensions>
<extensionid>
so.cuo.ane.Admob
</extensionid>
</extensions>

4. add code to your android air application like follow 

test1(); private function test1():void {
var admob:Admob=Admob.getInstance(); if(admob.isSupported){
admob.setUnitId(gid); admob.dispatcher.addEventListener(AdEvent?.onReceiveAd,this.adHandler); admob.dispatcher.addEventListener(AdEvent?.onFailedToReceiveAd,this.adHandler);

// admob.showRelation(AdMobAlignment?.ALIGN_BOTTOM,AdType?.BANNER); 

admob.show(50,100,AdType?.BANNER);
}else{
trace("not support");
}
}

protected function adHandler(event:AdEvent?):void {
trace("receive ad");
}
Translate
Known Participant
Oct 8, 2012 5:15 AM UTC

http://lilili87222.github.com/admob-for-flash/

user can show all type of banner ad and full screen(interstitial advertising) ad of admob

user can show landscope and portrait advertising in actionscript 3 mobile application

user can set postion of ad

easy to use

Translate
Inspiring
Nov 15, 2011 7:22 PM UTC

I was develop a AdMob Native Extension for iOS, you can download it from http://www.enriquedavid.es/downloads/admob-native-extension.zip, and same help here (spanish) http://www.enriquedavid.es/adobe-native-extension-admob.html.

I hope you will be helpful

Translate
Inspiring
Nov 15, 2011 6:10 PM UTC

Hello MilkmanGames,

Forgive me if this sounds lazy that I have not tried myself, (and is also off topic) but I have not had the time to learn/setup my environment for native extensions yet.

Have you tried to call audio natively on android yet? People have asked (mostly me) if this will bypass the huge audio latency when calling play() from air on android. I have not read of anyone attempting this yet.

If you know if this works, please tell! Or if you were to create an extension that was able to fix this issue, and simply package your .mp3s with the app. I would certainly pay for it!

thanks

Translate
Inspiring
Nov 7, 2011 11:48 PM UTC

I am also really interested in this.  I am targeting android and now with admob moving away from mobile sites to focus more on apps, I dont get any ads filling.  I wish Adobe would respond.

Translate
Participating Frequently
Nov 14, 2011 8:25 PM UTC

Hey  guys,

I thought you might be interested to know our Native AdMob AIR 3 Extension for Android just came out.  You can check it out here:

http://www.milkmangames.com/blog/2011/11/10/announcing-native-android-admob-support-for-adobe-air/

This is a true native java/android extension, not a hack with StageWebView.  It supports creating, destroying, showing and hiding of ads, all the AdMob sizes and formats for phones and tablets, events dispatched for all lifecycle states, etc.  It also smartly handles any changes to stage orientation, and has included sample apps.  You can get your ads inserted with 2 lines of code.

You can also see it in action with our game Aqualux here.

Hope it's useful!  I'll be releasing a similar versin for iOS, and a GameCenter extension and some other goodies very soon!

Alex

Milkman Games

Translate
Participant
Nov 14, 2011 9:06 PM UTC

Yes! A native extension for the gamecenter is exactly what i need! =) I'v been looking all over for it, and i am actually amazed that no one has built it yet. Have you thought about building a extension for OpenFeint?

Translate