Search Unity

[iOS] Integrated UnityAds not launching the defined callback

Discussion in 'Unity Ads & User Acquisition' started by DanjelRicci, Jan 11, 2017.

  1. DanjelRicci

    DanjelRicci

    Joined:
    Mar 8, 2010
    Posts:
    310
    EDIT: solved in the thread linked by @LSTGames.

    Since updating to Unity 5.5.0p3 (from 5.4.0f1), UnityAds won't launch any callback after the video shows up. I already tried to disable and re-enable UnityAds in the Services tab and regenerating Library folder, with no success. This is my code:

    Code (CSharp):
    1. public void LaunchAd () {
    2.        ShowOptions options = new ShowOptions {resultCallback = OnVideoCallback};
    3.        Advertisement.Show("rewardedVideoZone",options);
    4. }
    5. public void OnVideoCallback (ShowResult result) {
    6.        Debug.Log("Ad finished");
    7.        //more stuff here
    8. }
    The ad shows fine, but "Ad finished" never gets logged. The problem happens on iOS; in the editor the callback fires correctly; I haven't tried this yet on Android. Am I missing something in 5.5?
     
    Last edited: Jan 16, 2017
  2. LSTGames

    LSTGames

    Joined:
    Dec 28, 2016
    Posts:
    6