I posted my app on the google play store about two days ago, and it does contain ads, but the Unity operate dashboard says “No data for this time period - There isn’t any data for the time period selected to show the chart. It’s possible that your Unity Analytics integration is configured incorrectly, or that your game is still in development and has limited data available.” I can see in the background that I have 107 impressions but no revenue. Do I just have to get more impressions before it goes away, or am I missing something?
Edit: Here’s the code, I heard something about me needing to implement an ID or something, but I also heard that this code works just fine, and it definitely displays an ad, so I don’t know if the ID thing is the issue or if I just need to keep waiting.
using UnityEngine;
using UnityEngine.Advertisements;
using UnityEngine.UI;
public class Ads : MonoBehaviour
{
public Text bal;
public void ShowRewardedAd()
{
if (Advertisement.IsReady("rewardedVideo"))
{
var options = new ShowOptions { resultCallback = HandleShowResult };
Advertisement.Show("rewardedVideo", options);
}
}
private void HandleShowResult(ShowResult result)
{
switch (result)
{
case ShowResult.Finished:
Debug.Log("Finished");
PlayerPrefs.SetInt("Balance", PlayerPrefs.GetInt("Balance") + 10);
bal.text = "Balance: $" + PlayerPrefs.GetInt("Balance");
break;
case ShowResult.Skipped:
Debug.Log("Skipped");
break;
case ShowResult.Failed:
Debug.Log("Failed");
break;
}
}
}