守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 943|回复: 0

inmobi ane

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

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

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

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

    开源英雄守望者

    发表于 2015-3-27 15:50:18 | 显示全部楼层 |阅读模式
    应用下载
    应用名称: inmobi-ad-adobe-native-extention
    支持64位: 支持
    当前版本: 1.0
    运行平台: Android IOS 
    开发语言: ActionScript 3 JAVA 其他 
    应用类别: ANE-多平台
    应用简介: inmobi ane,adobe native extention(ane) of inmobi android and ios(ipad,iphone,ipad) for flash air developer with actionsctipt3(as3)
    introduction -- inmobi ane for flash android and ios application

    this is a free adobe native extention (ane) of inmobi ad network for flash air mobile developer.
    it very easy to use,you can pack your air application or game on pc or mac,
    with the same code just with as3,and not any java or objective-c need.

    1.support all inmobi banner ad sizes and Interstitial
    2.support ads on android and ios(iphone ,ipad ,ipad)
    3.supportlandscape andportrait mode
    4.supportauto Orients air application

    inmobi 1.0.ane

    flash air ane lib,contains lib for android and ios all in one file,
    although there are 4m file size, but it does not increase the final release package size, ease of use.

    builds

    base on inmobi network ios sdk 4.5.1 and inmobi android sdk 4.5.2
    base on adobe air sdk 15,so your app air sdk version must be 15 or higher
    ref:http://www.inmobi.com/
    ref:http://labs.adobe.com/
    download:https://github.com/lilili87222/inmobi-ad-adobe-native-extention

    extention id

    this extention id will been add in application-app.xml

    1. <extensionID>so.cuo.platform.inmobi</extensionID>
    复制代码
    bannerhow to show a banner ad in air mobile app?
    1. if (Inmobi.getInstance().supportDevice)
    2. {
    3.     Inmobi.getInstance().setBannerKeys("app key"); //init inmobi
    4.     Inmobi.getInstance().showBanner(Inmobi.BANNER, InmobiPosition.BOTTOM_CENTER);//show banner with posiction botton_center
    5. }
    复制代码
    Interstitial1.how to show a Interstitial ad in flash ios or android game?
    1. if (Inmobi.getInstance().supportDevice)
    2. {
    3.     Inmobi.getInstance().setBannerKeys("app key"); //init inmobi
    4.     Inmobi.getInstance().addEventListener(InmobiEvent.onInterstitialReceive,onReceiveAd);
    5.     Inmobi.getInstance().cacheInterstitial();//load insterstial ad
    6. }
    7. private function onReceiveAd(event:InmobiEvent):void
    8. {
    9.     Inmobi.getInstance().showInterstitial();//when load success ,display it
    10. }
    复制代码
    2.also you can do like follow to show inmobi Interstitial
    1. Inmobi.getInstance().setBannerKeys("app key"); //init the inmobi
    2. Inmobi.getInstance().cacheInterstitial();//start load interstitial ad
    复制代码
    After some time
    1. if (Inmobi.getInstance().isInterstitialReady())
    2. {//check has load success
    3.     Inmobi.getInstance().showInterstitial();//display ad
    4. }
    复制代码
    for androidfor android user,must add inmobi activity to xxx-app.xml
    1. <manifest android:installLocation="auto">
    2.      <uses-sdk android:targetSdkVersion="11"/>
    3.      <uses-sdk android:minSdkVersion="8"/>
    4.     <uses-permission android:name="android.permission.INTERNET"/>
    5.     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    6.     <application>
    7.     <activity android:name="com.inmobi.androidsdk.IMBrowserActivity" android:configChanges="keyboardHidden|orientation|keyboard|smallestScreenSize|screenSize" android:hardwareAccelerated="true" /> </application>
    8. </manifest>
    复制代码
    moreif you enable analyst in www.inmobi.com ,you can view your app install info without do any thing

    if you create a app ,and not verify it,or your app not in activity state,you can not load ad,you will get a invalid app id error
    you may likehttps://github.com/lilili87222/admob-for-flash
    https://github.com/lilili87222/as3-air-ad-network-framework
    email:wohaosea@gmail.comif user like this lib,you can download and review our game
    https://itunes.apple.com/us/artist/phonegame/id553087275?mt=8
    donate and download more ane
    http://www.cuo.so/ane-list/index.html





    相关链接:
    https://github.com/lilili87222/inmobi-ad-adobe-native-extention

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

    
    关闭

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

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

    GMT+8, 2019-8-20 22:12 , Processed in 0.040053 second(s), 36 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

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