Package | com.myflashlab.air.extensions.admob |
Class | public class ApiRewardedVideo |
Inheritance | ApiRewardedVideo flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
isReady : Boolean [read-only]
Indicates if the receiver is ready to be presented
| ApiRewardedVideo | ||
userId : String
A unique identifier used to identify the user when making server-to-server reward callbacks. | ApiRewardedVideo |
Method | Defined By | ||
---|---|---|---|
dispose():void | ApiRewardedVideo | ||
Initiates the request to fetch the reward based video ad. | ApiRewardedVideo | ||
show():void
Shows rewarded video ad. | ApiRewardedVideo |
isReady | property |
isReady:Boolean
[read-only] Indicates if the receiver is ready to be presented
public function get isReady():Boolean
userId | property |
userId:String
A unique identifier used to identify the user when making server-to-server reward callbacks. This value is used at both request time and during ad display. New values must only be set before ad requests.
public function get userId():String
public function set userId(value:String):void
dispose | () | method |
public function dispose():void
loadAd | () | method |
public function loadAd($request:AdRequest, $unitId:String):void
Initiates the request to fetch the reward based video ad. The |request| object supplies ad targeting information and must not be nil. The adUnitID is the ad unit id used for fetching an ad and must not be nil.
Parameters
$request:AdRequest | |
$unitId:String |
show | () | method |
public function show():void
Shows rewarded video ad. Applications should check isReady
before calling this method.