admob-openfl

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

To install, run:

haxelib install admob-openfl 0.0.3 

See using Haxelib in Haxelib documentation for more information.

README.md

Introduction

Admob OpenFL Extension. (Adnroid only) More info on Admob: https://developers.google.com/mobile-ads-sdk/

Platforms

Android (Anyone willing to extend it to support iOS? Contact me!)

License

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

Usage

import com.pozirk.ads.Admob;
import com.pozirk.ads.AdmobEvent;

...

_admob = new Admob();
_admob.addEventListener(AdmobEvent.INIT_OK, onAdmobInit);
_admob.addEventListener(AdmobEvent.INTERSTITIAL_CACHE_OK, onAdmobCache);
_admob.init(); //you can only use Admob after successful initialization

...

function onAdmobInit(ae:AdmobEvent):Void
{
	_admob.showAd([Ad unit ID], Admob.SIZE_LEADERBOARD, Admob.HALIGN_CENTER, Admob.VALIGN_TOP);
	_admob.cacheInterstitial([Ad unit ID]);
}

...

private function onAdmobCache(ae:AdmobEvent):Void
{
	_admob.showInterstitial();
}
Contributors
pozirk
Version
0.0.3
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