diff --git a/readme.md b/readme.md index f5b98ee..c3d63a4 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # News 2020-01-29: -Updated to the latest version of Adobe AIR SDK 33 and Google Play Services 11.0.4.
+Updated to the latest version of Adobe AIR SDK 33 and Google Play Services 16.0.0.
32-bit version works fine.
64-bit ANE was tested by some good guy, and he told me it worked fine too. :) @@ -9,9 +9,11 @@ ANEAdMob is an Adobe AIR native extension (ANE) for Android to show ads.
Supported functionality:
- show ad;
- cache interstitial ad;
+- cache rewarded video ad; - show interstitial ad;
+- show rewarded video ad;
- hide ad;
-- listen tap, close, leave, etc. event.
+- listen tap, close, leave, rewarded, failed, etc. event.
# Docs Please, read docs and try ANE before asking any questions.
@@ -28,7 +30,7 @@ Add the following lines to your AIR Aplication-app.xml file inside <manifestA <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application>
-<meta-data android:name="com.google.android.gms.version" android:value="11020000" />
+<meta-data android:name="com.google.android.gms.version" android:value="12451000" />
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
</manifest>]]> @@ -61,6 +63,14 @@ _admob.addEventListener(AdEvent.INTERSTITIAL_CACHE_FAIL, onEvent); _admob.addEventListener(AdEvent.INTERSTITIAL_LEFT_APP, onEvent); _admob.addEventListener(AdEvent.INTERSTITIAL_OPENED, onEvent); _admob.addEventListener(AdEvent.INTERSTITIAL_CLOSED, onEvent); +_admob.addEventListener(AdEvent.REWARDED_CACHE_FAIL, onEvent); +_admob.addEventListener(AdEvent.REWARDED_CACHE_OK, onEvent); +_admob.addEventListener(AdEvent.REWARDED_CLOSED, onEvent); +_admob.addEventListener(AdEvent.REWARDED_COMPLETED, onEvent); +_admob.addEventListener(AdEvent.REWARDED_LEFT_APP, onEvent); +_admob.addEventListener(AdEvent.REWARDED_OPENED, onEvent); +_admob.addEventListener(AdEvent.REWARDED_REWARDED, onEvent); +_admob.addEventListener(AdEvent.REWARDED_STARTED, onEvent); _admob.init(); ... @@ -73,17 +83,29 @@ protected function onEvent(ae:AdEvent):void //showing smart-size ad at the bottom center side of the screen -_admob.show("AD_UNIT_ID", AdParams.SIZE_SMART_BANNER, AdParams.HALIGN_CENTER, AdParams.VALIGN_BOTTOM); +//Admob official test ad unit for banner "ca-app-pub-3940256099942544/6300978111" +_admob.show("AD_UNIT_ID", AdParams.SIZE_SMART_BANNER, AdParams.HALIGN_CENTER, AdParams.VALIGN_BOTTOM); //hiding ad _admob.hide(); //caching interstitial ad -_admob.cacheInterstitial("AD_UNIT_ID"); +//Official test ad unit for interstitial "ca-app-pub-3940256099942544/1033173712" +_admob.cacheInterstitial("AD_UNIT_ID"); ... //showing interstitial ad, make sure it's cached first _admob.showInterstitial(); ... + + +//caching rewarded ad +//Official test ad unit for rewarded "ca-app-pub-3940256099942544/5224354917" +_admob.cacheRewarded("AD_UNIT_ID"); +... +//showing rewarded ad, make sure it's cached first +_admob.showRewarded(); +... + //setting volume of the interstitial ad, can have sound, if it's video _admob.setVolume(vol); //0-1 range, where 0 - mute, 1 - max volume (default, I guess). ```