Skip to main content
Participant
October 10, 2011
Pregunta

Native AdMob integration with AIR 3 ? how to ?

  • October 10, 2011
  • 6 respuestas
  • 10523 visualizaciones

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.

Este tema ha sido cerrado para respuestas.

6 respuestas

Inspiring
May 15, 2013

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!

Known Participant
October 28, 2012

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");
}
Known Participant
October 8, 2012

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

Inspiring
November 15, 2011

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

Inspiring
November 15, 2011

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

Inspiring
November 7, 2011

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.

Participating Frequently
November 14, 2011

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

Participating Frequently
November 20, 2011

If I understand correctly Game Center can handle online multiplayers through Apple's servers with up to 4 players. This seems like the best solution to avoid the use of own servers.

The implementation seems to be pretty staight forward as the GameKit handles most of the work.

Here is a documentation about it:

http://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameKit_Guide.pdf


Oh awesome - I didn't even realize that. 

I just finished with the Game Center auth/leaderboard/achievement extension, you can check it out right here:

http://www.milkmangames.com/blog/2011/11/20/announcing-native-ios-game-center-for-adobe-air/

I'm working on the multiplayer stuff and will have that next!