Search Unity

Unity3d Ads doesnt work on ios

Discussion in 'Unity Ads & User Acquisition' started by ThoHer, Oct 15, 2018.

  1. ThoHer

    ThoHer

    Joined:
    Feb 27, 2018
    Posts:
    13
    Hello,

    ive integrated the unity3d ads Service, but on my iOS device the ads doesnt Show up, and i dont get a notification. I used the script from their instructions page, see below:

    public void ShowRewardedAd()
    {
    const string RewardedPlacementId = "rewardedVideo";

    #if UNITY_ADS
    if (!Advertisement.IsReady(RewardedPlacementId))
    {
    Debug.Log(string.Format("Ads not ready for placement '{0}'", RewardedPlacementId));
    return;
    }

    var options = new ShowOptions { resultCallback = HandleShowResult };
    Advertisement.Show(RewardedPlacementId, options);
    #endif
    }

    #if UNITY_ADS
    private void HandleShowResult(ShowResult result)
    {
    switch (result)
    {
    case ShowResult.Finished:
    Debug.Log("The ad was successfully shown.");
    //
    // YOUR CODE TO REWARD THE GAMER
    scoreController.Reward("100");
    break;
    case ShowResult.Skipped:
    Debug.Log("The ad was skipped before reaching the end.");
    break;
    case ShowResult.Failed:
    Debug.LogError("The ad failed to be shown.");
    break;
    }
    }

    #endif

    But even when the test mode is activated Nothing happens on my IOS device (please note: It works on Android, and in the Editor the "yoiu did it Right" notification appears)

    In the Dashboard i also defined a test device with the Advertisement identifier of my iOS device. So basically i have no clue why it doesnt work, especially when the testmode is enabled. Everything is Setup fine.

    Note: The Admob rewarded Video works….

    Can somebody tell my whats the Problem or give me a hint why it could not work currently? Ist very frustrating - i tried it a hundred times - still no success. Now iam not sure if ist may a bug or something with this unity3d ads...
     
  2. ThoHer

    ThoHer

    Joined:
    Feb 27, 2018
    Posts:
    13