Hey so I uploaded my android game to the playstore like 2 days ago (I checked and ads were appearing) and I’m sure that people have watched my ads, but when I look at my ad revenue everything is blank. Revenue is 0.00 dollars, 0 impressions… I looked up this problem on google and it’s usually because you entered the gameID incorrectly, but that is ot the case. Here is the code I used to show ads:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UnityEngine.Advertisements;
public class GameMaster1 : MonoBehaviour
{
public GameObject restartPanel;
public GameObject AdShow;
public GameObject AdSeen;
public Text timerD;
private bool asLost;
public float timer;
private string gameId = “3696421”;
public string myPlacementId = “rewardedVideo”;
private void Start()
{
Advertisement.Initialize(gameId);
}
private void Awake()
{
restartPanel.SetActive(false);
}
private void Update()
{
if (asLost == false)
{
timerD.text = timer.ToString(“F0”);
if (timer <= 0)
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
}
else
{
timer -= Time.deltaTime;
}
}
}
public void GameOver()
{
Invoke(“Delay”, 1.25f);
asLost = true;
}
void Delay()
{
restartPanel.SetActive(true);
}
public void Restart()
{
SceneManager.LoadScene(12);
}
public void Menu()
{
SceneManager.LoadScene(0);
}
public void OneRestart()
{
SceneManager.LoadScene(12);
}
public void TwoRestart()
{
SceneManager.LoadScene(17);
}
public void TreRestart()
{
SceneManager.LoadScene(21);
}
public void AdAppear()
{
ShowRewardedVideo();
}
public void Chance()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}
void ShowRewardedVideo()
{
Advertisement.Show(myPlacementId);
AdSeen.SetActive(true);
AdShow.SetActive(false);
}
}