33 Replies to “(2017) Unity Ads – Google Play Services – Subway Skater – 24”

  1. Rewarded Video Not Showing If Internet Connection is Lost During Game Play And Then Regained Internet Connection. This is my Code Please Help Me. Tell me a way so that if Internet Connection is lost and then regained rewarded video will still appear. Help…!!! All user are complaining .
    void Update ()

    {

    if (CrossPlatformInputManager.GetButtonDown("AD"))

    {

    ShowAd();

    }

    }

    void ShowAd()

    {

    if (Advertisement.IsReady("rewardedVideo"))

    {

    ShowOptions options = new ShowOptions();

    options.resultCallback = HandleShowResult;

    Advertisement.Show("rewardedVideo", options);

    }

    else

    {

    failToShowAllAds();

    }

    }

    void HandleShowResult(ShowResult result)

    {

    if (result == ShowResult.Finished)

    {

    AudioManager.instance.PlaySound("AdBonusSound");

    Instantiate(CoinPrefab, SpawnPointCoinPrefab.position, SpawnPointCoinPrefab.rotation);

    }

    else if (result == ShowResult.Skipped)

    {

    VideoSkippedTextt.SetActive(true);

    }

    else if (result == ShowResult.Failed)

    {

    FaillToShowAdTextt.SetActive(true);

    }

    }

    void failToShowAllAds()

    {

    FaillToShowAdTextt.SetActive(true);

    }

  2. Hey N3K can you tell me what you did offline to create the revive function because we can only see the part in the gameManager in this video, thanks

  3. Doesn’t anyone know why I can’t build my app for iOS or Android? I’ve downloaded the apk for both and it says “you do not have the module downloaded” I also have Xcode for iOS.

  4. @N3K EN wow. fantastic tutorials! you have taught this novice developer so much. I have one question however. I have incorporated unity ads within my game, and have an IAP feature that if enabled turns off the ads. I use a bool reference within my code and the system works great within unity. however when i build onto my phone the no ads feature doesn't work. I am confused. should it not reflect the mechanics when running the game in unity.

    thank you for your help!

  5. Hi N3K, i have this problem, when i run the game, it shows me this error MissingMethodException: Method not found: 'UnityEngine.Texture2D.LoadImage'. can you help me please??

Comments are closed.