Search Unity

Android [cocos2d-x]: Problem rewarding the user

Discussion in 'Unity Ads & User Acquisition' started by inakicm, May 16, 2015.

  1. inakicm

    inakicm

    Joined:
    Mar 23, 2015
    Posts:
    2
    Hi,

    I'm making an Android game with cocos2d-x.
    I succeeded to show a video ad in my game, thanks to this example and this wiki.
    But I don't understand how I can reward the user.

    Do I have to call the "onVideoCompleted(String itemKey, boolean skipped)" method? If Yes, how?
    (If I put a "log" in this method, nothing appears.)

    Also in the UnityAds.java, there is this function: "onMainViewAction (UnityAdsMainViewAction action)". Do I have to call it? and how?


    Thank you




     
  2. inakicm

    inakicm

    Joined:
    Mar 23, 2015
    Posts:
    2
    @unity-nikkolai , is there an Unity developer who can help me?

    Thank you