守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 2907|回复: 2

admob for flash

[复制链接]
  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52691
    钢镚
    1422

    开源英雄守望者

    发表于 2015-1-23 16:58:56 | 显示全部楼层 |阅读模式
    应用下载
    应用名称: admob-for-flash
    支持64位:
    当前版本: 未知
    运行平台: Android IOS 
    开发语言: ActionScript 3 JAVA 其他 
    应用类别: ANE-多平台
    应用简介: admob ane for flash air iOS app and actionscript android app.include banner and Interstitial native Advertising.this Admob ANE suport admob 1 and admob 2
    admob for flash

    related lib: https://github.com/lilili87222/as3-air-ad-network-framework
    project home:https://github.com/lilili87222/admob-for-flash/
    download:https://github.com/lilili87222/admob-for-flash/archive/master.zip

    admob ane for air mobile ad ,support Interstitial and Banner
    support landscape and portrait and autoOrient
    support ios and android
    support all native event
    support ios 64,air sdk 16
    base on admob ios sdk 6.12.2 and admob android sdk(Google Play services 4.5) 4.5
    requred air sdk 15.0 or later

    very easy to use ,just three line code for simple usage

    file list
    • admob_all_in_one_6.12.2.ane contains admob for ios and for android in one file,very convenient.
      most user use this file,it contain google play service sdk
    • admob6.12.2_without_gp.ane if you use other ane with google play service with admob at the same app,then use this
    show simple admob banner :
    1. var admob:Admob=Admob.getInstance();
    2. admob.setKeys("your admob banner id","your admob institial id");
    3. admob.showBanner(Admob.BANNER,AdmobPosition.BOTTOM_CENTER);
    复制代码
    show admob Interstitial ad (full screen ad)
    1. var admob:Admob=Admob.getInstance();
    2. admob.setKeys("your admob banner id","your admob institial id");////replace this fake ID with your really ID
    3. if (admob.isInterstitialReady())// check ad has cached ,if true show it
    4. {
    5.      admob.showInterstitial();
    6. }
    7. else
    8. {
    9.     admob.cacheInterstitial();
    10. }
    复制代码
    show test ad banner with extra parameter
    1. var extraParam:ExtraParameter=new ExtraParameter();
    2. //extraParam.isChildApp=true;
    3. extraParam.testDeviceID="true";// for android
    4. //extraParam.testDeviceID="your device"; for ios

    5. var admob:Admob=Admob.getInstance();
    6. admob.setKeys("your admob banner id","your admob institial id");
    7. admob.showBannerAbsolute(Admob.SMART_BANNER,0,100,extraParam);
    复制代码
    for android. you need add in application-app.xml
    1. <android>
    2.         <manifestAdditions><![CDATA[
    3.             <manifest android:installLocation="auto">
    4.                 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    5.                 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    6.                  <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    7.                  <application>
    8. <meta-data android:name="com.google.android.gms.version"
    9.         android:value="@integer/google_play_services_version" />
    10.                    <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
    11.                  </application>
    12.             </manifest>
    13.         ]]></manifestAdditions>
    14.     </android>
    复制代码

    more function

    • 1. handler ad event like this.
      1. admob.addEventListener(AdmobEvent.onBannerReceive,onAdReceived);
      复制代码

    • 2. get ad size info
      1. protected function onAdReceived(event:AdmobEvent):void
      2. {
      3.     if(event.type==AdmobEvent.onBannerReceive){
      4.     trace(event.data.width,event.data.height);
      5.     }
      6. }
      复制代码

    • 3.get screen size info,old version function
      1. admob.getScreenSize()
      复制代码
      6.12.2 admob ane changes

      1.update admob sdk for ios to 6.12.2
      2.make it easy to show test ad on android

      6.12.0 admob ane changes

      1.update admob sdk for ios to 6.12.0
      2.add code tips document
      3.add admob extra parameter that control test mode,age,location,is child app and so on.
      4.refact demo code

      admob ane 6.11.1 changes

      1.update admob sdk for ios to 6.11.1
      2.fix Errors/warnings on publishing Air app with admob extension using Flash Professional

      6.9.3 changes

      1.update admob sdk ios to 6.9.3 ,update android google service sdk to the last version
      2.trace the detail when load ad fail

      6.8.0 changes

      1.update admob sdk ios 6.9.2 ,android google service sdk 4.3
      2.add getScreenSize function for show banner absolute

      6.6.0 changes

      1.support landscape and portrait and autoOrient
      2.support relation position and Absolute position
      3.support ios 5, ios 6, ios 7 ,and android
      4.update admob sdk to last version

      6.4.1 changes

      enable Interstitial admob ad

      6.3.1 changes

      1.include ios and android in one file
      2.enable debug and pack on pc
      3.base on admob6.3 no more use udid
      4.enable get ad size info and screen size info

      contact:wohaosea@gmail.com

      if user like this lib,you can download and review our gamehttps://itunes.apple.com/us/artist/phonegame/id553087275?mt=8







      相关链接:



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




    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    守望者AIR技术交流社区(www.airmyth.com)
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52691
    钢镚
    1422

    开源英雄守望者

     楼主| 发表于 2015-1-23 17:14:16 | 显示全部楼层
    Admob-ANE

    Adobe AIR Native Extension (ANE) which works on iOS and on Android

    Admob Adobe AIR native extension. Works with Android and iOS.version 1.0 Copyright (c) 2012 Lancelotmobile.comPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.





    相关链接:

    https://github.com/heitara/Admob-ANE





    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52691
    钢镚
    1422

    开源英雄守望者

     楼主| 发表于 2015-1-29 16:14:52 | 显示全部楼层
    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    
    关闭

    站长推荐上一条 /4 下一条

    QQ|手机版|Archiver|网站地图|小黑屋|守望者 ( 京ICP备14061876号

    GMT+8, 2024-4-19 07:27 , Processed in 0.056086 second(s), 37 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

    快速回复 返回顶部 返回列表