4 Replies Latest reply on Oct 28, 2012 8:09 AM by li_li_li87222

    how to add adverts in adnroid app

    mik_141 Level 1


      I'm trying to add adverts in my app which is published on android. I'm using StageWebView and leadbolt (before it was admob) and i'm wondering if there is another way to do so? I tried to use adsense but i think it's impossible to do it on android app or am i wrong? And my question is - how to add adverts in android app published by flash cs5.5?




        • 1. Re: how to add adverts in adnroid app
          Level 1

          Upgrade or reinstall should be able



          Polycarbonate PC Sheet

          • 2. Re: how to add adverts in adnroid app

            As Far as I know, We need ANE file to show Ad in Flash. Hence if you want to continue woth Flash 5.5 you need to recreate a bit of your stuff and add this File as swc to Flash Builder Mobile Project.


            Either you can use Flash CS6, which have ANE file adding facility. (Right and Best Option)


            Let me know which Option suits you, so I will provide you more help


            Ritesh Newal

            1 person found this helpful
            • 3. Re: how to add adverts in adnroid app
              mik_141 Level 1

              Actually i'm using Flash CS6 and ANE from this: http://lancelotmobile.com/blog/native-extensions-with-flash-cs6/

              I know that milkmangames also has it  but unfortunately it costs about 30$.

              1 person found this helpful
              • 4. Re: how to add adverts in adnroid app
                Level 1



                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

                <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"/>
                <!-- <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"/>

                Unknown end tag for </manifest>



                3.add this config to -app.xml


                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); 

                trace("not support");


                protected function adHandler(event:AdEvent?):void {   
                trace("receive ad");