Beispiel #1
0
 //Invoked when the user completed the video and should be rewarded.
 //If using server-to-server callbacks you may ignore this events and wait for the callback from the  ironSource server.
 //
 //@param - placement - placement object which contains the reward data
 //
 void RewardedVideoAdRewardedEvent(IronSourcePlacement placement)
 {
     Debug.Log("SDK:IronSourceSDK >>>> RewardedVideoAdRewardedEvent placement:" + placement.ToString());
     //Placement can return null if the placementName is not valid.
     if (placement != null)
     {
         String placementName = placement.getPlacementName();
         String rewardName    = placement.getRewardName();
         int    rewardAmount  = placement.getRewardAmount();
         this.InvokeRewardedVideoHandlerAndClean(ADResult.RewardedVideoResult.REWARDED);
     }
 }