Search Unity

Show button only if ad available

Discussion in 'Unity Ads & User Acquisition' started by Zwiebel, Jul 28, 2015.

  1. Zwiebel

    Zwiebel

    Joined:
    Jul 23, 2013
    Posts:
    56
    Hi!

    I would like to ask you if it is possible to make the "reward" button only visible if an ad can be loaded, and there is internet connection? As in the game it would be nice to only show it when the user can watch an ad and not when there isn't internet connection. I have searched on the internet but couldn't find anything useable in the topic. Any code would be helpful!

    Thanks
     
  2. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
  3. Zwiebel

    Zwiebel

    Joined:
    Jul 23, 2013
    Posts:
    56
    Thank you for the answer. Now I have tried to implement Ads to my game, but I can't use "using UnityEngine.Advertisements;" even if I imported Unity Ads from the assetstore. When I start to type using UnityEngine it won't even give me the option to choose Advertisements from the dropdown list, there is only Audio. What can cause this problem? Standard Assets, and Plugins folders are there. I'm using Unity 5.0.1

    EDIT: The problem did solve itself for some reason, by just made a new script.
     
    Last edited: Jul 29, 2015