Last Updated: February 25, 2016
·
849
· michaelarchbold

Showing an iAd in AS3 using Adverts ANE

Using distriqt's Adverts extension gives you simple way to add adverts to your AIR application.

if (Adverts.isSupported)
{
    Adverts.init( DEV_KEY );
    Adverts.service.initialisePlatform( AdvertPlatform.PLATFORM_IAD, "" );
    Adverts.service.showAdvert( new AdvertPosition() );
}

Get the extension here: http://distriqt.com/native-extensions