amazonads-openfl

AmazonAds extension for OpenFL
http://inside.pozirk.com/

To install, run:

haxelib install amazonads-openfl 0.0.1 

See using Haxelib in Haxelib documentation for more information.

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.

Contributors
pozirk
Version
0.0.1
Published
3 years ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github