守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

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

Air Native Extension for MoPub Advertising on iOS and Android

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

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

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

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

    开源英雄守望者

    发表于 2015-1-23 12:06:48 | 显示全部楼层 |阅读模式
    应用下载
    应用名称: MoPub-ANE
    支持64位:
    当前版本: 未知
    运行平台: Android IOS 
    开发语言: ActionScript 3 JAVA 其他 
    应用类别: ANE-多平台
    应用简介: Air Native Extension for MoPub advertising
    Air Native Extension for MoPub Advertising on iOS and Android

    This is an Air native extension for the MoPub advertising platform on iOS and Android.

    Please view the wiki for information on how to use this extension.

    This project is licensed under the BSD license





    相关链接:



    https://github.com/StickSports/MoPub-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
    金币
    51756
    钢镚
    1422

    开源英雄守望者

     楼主| 发表于 2015-1-28 13:38:33 | 显示全部楼层
    MoPub-ANE
    This Mopub ANE add supprt to using MoPub Mobile monetization platform with Adobe Air. Supports Android and iOS.


    MoPub Native Extension for Adobe Air

    This Mopub ANE add supprt to using MoPub Mobile monetization platform with Adobe Air. Supports Android and iOS.

    What is MoPub?

    Powerful Ad Management for Mobile Apps. Drive more revenue from your mobile apps with the world’s leading ad server and exchange for smartphones.

    http://www.mopub.com

    Install the library

    Add the MoPub-ANE library to your project.

    In Flash Professional CS6:

    • Create a new mobile project
    • Choose File > PublishSettings...
    • Select the wrench icon next to 'Script' for 'ActionScriptSettings'
    • Select the Library Path tab.
    • Click 'Browse for Native Extension(ANE) File' and select the Mopub.ane file.

    In Flash Builder 4.6:

    • Goto Project Properties
    • Select Native Extensions under Actionscript Build Path
    • Choose Add ANE... and navigate to the Mopub.ane file
    • Select Actionscript Build Packaging > Google Android or Apple IOS
    • Select the Native Extensions tab, and click the 'Package' check box next to the extension

    In Flash Professional CS5.5 or Lower:

    • Select File>PublishSettings>Flash>ActionScript 3.0 Settings
    • Select External Library Path
    • Click Browseto SWC File
    • Select the Mopub.swc

    In Flash Builder 4.5:

    • Goto Project Properties
    • Select Action Script Build Path
    • Select Add Swc
    • Navigate to Mopub.swc and choose External Library type

    In FlashDevelop:

    • Copy the Mopub.swc file to your project folder.
    • In the explorer panel, right click the .swc and select Add to Library.
    • Right-click the swc file in the explorer, choose Options, and select External Library
    Add the Actionscript

    Import the library


    1. import digicrafts.extensions.Mopub;
    复制代码
    Create the MoPub AdView

    1. Mopub.create("MOPUB_AD_UNIT_ID");
    复制代码
    Show the AdView

    1. Mopub.showAdView(0,420,320,50);// x, y, width, height
    复制代码
    Hide the AdView

    1. Mopub.dismissAdView();
    复制代码
    Setup for AndroidUpdate Your Application DescriptorYou'll need to be using the AIR 3.1 SDK or higher, include the extension in your Application Descriptor XML, and update the Android Manifest Additions with some settings.Add the following settings in tag.
    1. <activity android:name="com.mopub.mobileads.MoPubActivity" android:configChanges="keyboardHidden|orientation"/>
    2. <activity android:name="com.mopub.mobileads.MraidActivity" android:configChanges="keyboardHidden|orientation"/>
    3. <activity android:name="com.mopub.mobileads.MraidBrowser" android:configChanges="keyboardHidden|orientation"/>
    复制代码
    Add the following settins if you want to use AdMob (Use Google Play Service).
    1. <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    2. <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
    复制代码
    1. <uses-permission android:name="android.permission.INTERNET" />
    2. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    3. <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    4. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    复制代码


    相关链接:
    https://github.com/digicrafts/MoPub-ANE

    下载


    守望者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
    金币
    51756
    钢镚
    1422

    开源英雄守望者

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

    使用道具 举报

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

    本版积分规则

    
    关闭

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

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

    GMT+8, 2019-10-22 07:35 , Processed in 0.054478 second(s), 39 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

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