Skip navigation
Currently Being Moderated

how to add adverts in adnroid app

May 16, 2012 2:45 AM

Tags: #air #as3 #android #stagewebview #admob #ads #adsense #adverts #leadbolt


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?




  • Currently Being Moderated
    May 28, 2012 8:39 PM   in reply to mik_141

    Upgrade or reinstall should be able



    Polycarbonate PC Sheet

    Mark as:
  • Currently Being Moderated
    Jun 21, 2012 11:29 PM   in reply to mik_141

    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

    Mark as:
  • Currently Being Moderated
    Oct 28, 2012 8:09 AM   in reply to mik_141


    version for android

    version for iphone and ipad

    this is a actionscript native extension for developer to ad advertisement to their air mobile application run on iphone or 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="" android:configChanges="keyboard|keyboardHidden|orientation"/> --> <activity android:name="" android:configChanges="keyboard|keyboardHidden|orientation|screenLayo ut|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);,100,AdType?.BANNER);
    trace("not support");


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

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points