Packagecom.distriqt.extension.adverts.appopen
Interfacepublic interface AppOpenAd extends flash.events.IEventDispatcher

Represents an App Open Ad and defines available functionality.



Public Methods
 MethodDefined 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
  
load(request:AdRequest, orientation:int):void
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
Events
 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
Method Detail
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.

Returns
String
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

Returns
Booleantrue 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.

Returns
Booleantrue if the app open ad was displayed and false if it wasn't loaded or ready to be displayed
Event Detail
appopenad:error Event
Event Object Type: com.distriqt.extension.adverts.events.AppOpenAdEvent
AppOpenAdEvent.type property = com.distriqt.extension.adverts.events.AppOpenAdEvent.ERROR

Dispatched if the ad failed to load.
appopenad:loaded Event  
Event Object Type: com.distriqt.extension.adverts.events.AppOpenAdEvent
AppOpenAdEvent.type property = com.distriqt.extension.adverts.events.AppOpenAdEvent.LOADED

This event is dispatched when an app open ad is loaded.
fullscreencontent_dismissed Event  
Event Object Type: com.distriqt.extension.adverts.events.FullScreenContentEvent
FullScreenContentEvent.type property = com.distriqt.extension.adverts.events.FullScreenContentEvent.DISMISSED

Dispatched when the full screen content ad was dismissed (closed)
fullscreencontent_failedtoshow Event  
Event Object Type: com.distriqt.extension.adverts.events.FullScreenContentEvent
FullScreenContentEvent.type property = 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  
Event Object Type: com.distriqt.extension.adverts.events.FullScreenContentEvent
FullScreenContentEvent.type property = com.distriqt.extension.adverts.events.FullScreenContentEvent.SHOW

Dispatched when a full screen content ad is shown
paidevent_paid Event  
Event Object Type: com.distriqt.extension.adverts.events.PaidEvent
PaidEvent.type property = 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.