守望者--AIR技术交流

标题: Air Native Extension for MoPub Advertising on iOS and Android [打印本页]

作者: 破晓    时间: 2015-1-23 12:06
标题: Air Native Extension for MoPub Advertising on iOS and Android
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



[attach]586[/attach]



相关链接:



https://github.com/StickSports/MoPub-ANE


作者: 破晓    时间: 2015-1-28 13:38
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:

In Flash Builder 4.6:

In Flash Professional CS5.5 or Lower:

In Flash Builder 4.5:

In FlashDevelop:

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

下载



作者: 破晓    时间: 2015-4-8 16:35
MoPub-ANE
https://github.com/Bee-Cave-Games/MoPub-ANE






欢迎光临 守望者--AIR技术交流 (http://www.airmyth.com/)