Show button only if ad available

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

See “Is ready and zones” section on https://unityads.unity3d.com/help/Documentation%20for%20Publishers/Integration-Guide-for-Unity-Asset-Store. You can pass zone id to IsReady() method.

Can you use this?

/Rasmus

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.