amazonads-openfl 0.0.1

AmazonAds extension for OpenFL

Released 2015-03-06.

To install, run:

haxelib install amazonads-openfl 0.0.1

See using Haxelib in Haxelib documentation for more information.

Maintainerpozirk
Websitehttp://inside.pozirk.com/
Current version0.0.1
StatisticsInstalled 8 times
LicenseMIT
Tags ads, amazon, openfl

README.md

Introduction

AmazonAds OpenFL Extension. (Adnroid only)

More info on AmazonAds: https://developer.amazon.com/appsandservices/apis

Platforms

Android (Kindle Fire)

License

AmazonAds OpenFL Extension is free, open-source software under the MIT license.

Usage

import com.pozirk.ads.AmazonAds;
import com.pozirk.ads.AmazonAdsEvent;

...

_amazonAds = new Admob();
_amazonAds.addEventListener(AmazonAdsEvent.INIT_OK, onAdmobInit);
_amazonAds.addEventListener(AmazonAdsEvent.INTERSTITIAL_CACHE_OK, onAdmobCache);
_amazonAds.init([APP ID]); //you can only use Amazon Ads after successful initialization
//_amazonAds.enableTesting(true); //only enable to always get ads and test your app

...

function onAmazonAdsInit(aae:AmazonAdsEvent):Void
{
	_amazonAds.showAd(AmazonAds.SIZE_AUTO, AmazonAds.HALIGN_CENTER, AmazonAds.VALIGN_TOP);
	_amazonAds.cacheInterstitial();
}

...

private function onAmazonAdsCache(ae:AdmobEvent):Void
{
	_amazonAds.showInterstitial();
}

Game with Amazon Ads extension

Match Jong: http://www.amazon.com/Pozirk-Games-Match-Jong/dp/B00U6EKC9E/

Play level 2 in order to see interstitial ad.