守望者--AIR技术交流

标题: admob for flash [打印本页]

作者: 破晓    时间: 2015-1-23 16:58
标题: admob for flash
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 listshow 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





作者: 破晓    时间: 2015-1-23 17:14
Admob-ANE

Adobe AIR Native Extension (ANE) which works on iOS and on Android
http://lancelotmobile.com/blog/admob-ane/

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.


[attach]606[/attach]


相关链接:

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






作者: 破晓    时间: 2015-1-29 16:14
本帖最后由 破晓 于 2015-4-8 16:41 编辑

相关下载:

https://github.com/yadiweb/AdMobAne

http://www.airmyth.com/thread-1035-1-1.html

https://github.com/lancelot1/ane-admob

https://github.com/tnker/ane.AdMob

https://github.com/Code-Alchemy/AdMobAne



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


https://github.com/Brinkbit/AdMobANE_Example


https://github.com/mnashwan/AdMobAne



https://github.com/SakuraPrg/AdMobAne

https://github.com/FreshAirDev/AdMobAne





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