Guest User

Untitled

a guest
Dec 14th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. videoAd.setRewardedVideoAdListener(this);
  2.  
  3. // Required to reward the user.
  4. @Override
  5. public void onRewarded(RewardItem reward) {
  6. Toast.makeText(this, "onRewarded! currency: " + reward.getType() + " amount: " +
  7. reward.getAmount(), Toast.LENGTH_SHORT).show();
  8. // Reward the user.
  9. }
  10.  
  11. @Override
  12. public void onRewardedVideoAdLeftApplication() {
  13. Toast.makeText(this, "onRewardedVideoAdLeftApplication",
  14. Toast.LENGTH_SHORT).show();
  15. }
  16.  
  17. @Override
  18. public void onRewardedVideoAdClosed() {
  19. Toast.makeText(this, "onRewardedVideoAdClosed", Toast.LENGTH_SHORT).show();
  20. videoAd.destroy(this);
  21. }
Add Comment
Please, Sign In to add comment