Immediate help For Unity Video Ads not appearing After Internet Connection Lost.
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);
}
Comment
Your answer
Follow this Question
Related Questions
Unity Ads not showing when internet connect is regain 0 Answers
'UnityEngine.Advertisements' not found 1 Answer
Uploading to Photobucket 0 Answers
How to turn culling masks on and off in code 0 Answers
References to AudioClip lost 0 Answers