Packagecom.myflashlab.air.extensions.admob
Classpublic class ApiRewardedVideo
InheritanceApiRewardedVideo Inheritance flash.events.EventDispatcher

This class lets you create Rewarded Video Ads.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
dispose():void
ApiRewardedVideo
  
loadAd($request:AdRequest, $unitId:String):void
Initiates the request to fetch the reward based video ad.
ApiRewardedVideo
  
show():void
Shows rewarded video ad.
ApiRewardedVideo
Property Detail
isReadyproperty
isReady:Boolean  [read-only]

Indicates if the receiver is ready to be presented


Implementation
    public function get isReady():Boolean
userIdproperty 
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.


Implementation
    public function get userId():String
    public function set userId(value:String):void
Method Detail
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.