Package | com.distriqt.extension.adverts.appopen |
Interface | public interface AppOpenAd extends flash.events.IEventDispatcher |
Method | Defined By | ||
---|---|---|---|
destroy():void
Destroy the ad. | AppOpenAd | ||
getAdUnitId():String
Returns the ad unit ID. | AppOpenAd | ||
isLoaded():Boolean
Indicates the app open ad has been loaded and is ready to be displayed. | AppOpenAd | ||
Starts a load request for an app open ad. | AppOpenAd | ||
setAdUnitId(adUnitId:String):void
Sets the ad unit ID. | AppOpenAd | ||
show():Boolean
Displays the loaded app open ad. | AppOpenAd |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched if the ad failed to load. | AppOpenAd | |||
This event is dispatched when an app open ad is loaded. | AppOpenAd | |||
Dispatched when the full screen content ad was dismissed (closed) | AppOpenAd | |||
Dispatched when there was an error attempting to show the full screen content ad | AppOpenAd | |||
Dispatched when a full screen content ad is shown | AppOpenAd | |||
Dispatched when an impression occurs that results in revenue data. | AppOpenAd |
destroy | () | method |
public function destroy():void
Destroy the ad. No other methods should be called on the ad after destroy()
is called.
getAdUnitId | () | method |
public function getAdUnitId():String
Returns the ad unit ID.
ReturnsString — |
isLoaded | () | method |
public function isLoaded():Boolean
Indicates the app open ad has been loaded and is ready to be displayed.
You can check this flag before calling show
Boolean — true if the app open ad is ready to be displayed
|
load | () | method |
public function load(request:AdRequest, orientation:int):void
Starts a load request for an app open ad.
Parameters
request:AdRequest | |
orientation:int — The orientation for the ad to load
|
See also
setAdUnitId | () | method |
public function setAdUnitId(adUnitId:String):void
Sets the ad unit ID.
Parameters
adUnitId:String |
show | () | method |
public function show():Boolean
Displays the loaded app open ad. You should check if the app open ad is loaded before attempting to display the ad.
ReturnsBoolean — true if the app open ad was displayed
and false if it wasn't loaded or ready to be displayed
|
appopenad:error | Event |
com.distriqt.extension.adverts.events.AppOpenAdEvent
com.distriqt.extension.adverts.events.AppOpenAdEvent.ERROR
Dispatched if the ad failed to load.
appopenad:loaded | Event |
com.distriqt.extension.adverts.events.AppOpenAdEvent
com.distriqt.extension.adverts.events.AppOpenAdEvent.LOADED
This event is dispatched when an app open ad is loaded.
fullscreencontent_dismissed | Event |
com.distriqt.extension.adverts.events.FullScreenContentEvent
com.distriqt.extension.adverts.events.FullScreenContentEvent.DISMISSED
Dispatched when the full screen content ad was dismissed (closed)
fullscreencontent_failedtoshow | Event |
com.distriqt.extension.adverts.events.FullScreenContentEvent
com.distriqt.extension.adverts.events.FullScreenContentEvent.FAILED_TO_SHOW
Dispatched when there was an error attempting to show the full screen content ad
fullscreencontent_show | Event |
com.distriqt.extension.adverts.events.FullScreenContentEvent
com.distriqt.extension.adverts.events.FullScreenContentEvent.SHOW
Dispatched when a full screen content ad is shown
paidevent_paid | Event |
com.distriqt.extension.adverts.events.PaidEvent
com.distriqt.extension.adverts.events.PaidEvent.PAID
Dispatched when an impression occurs that results in revenue data. By implementing this handler, you can use the data to calculate a user's life time value, or forward the data downstream to other relevant systems.