Ads work, but nothing appears on my dashboard

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);
}
}

Hey @pabloskybeast5 I actually managed to track down your game and install it to my device, and it looks like it’s initializing with a different game id. I checked the device logs using logcat and the game id reported by the SDK links to a different project attached to your account - and does seem to be receiving the data.

Could it be possible that you have some leftover code elsewhere in your project that is also initializing the SDK? Is your local Unity Editor project attached to the correct Operate dashboard project?

If you still have problems, you may wish to escalate this to our support team so we can go over the specifics - a copy of your source code would be useful so we can figure out the problem. You can contact us at unityads-support@unity3d.com or by using the help option on Operate dashboard.

I tried checking what you said about my local project being linked to the correct one to the dashboard and it wasn’t. Now it works. Thank you for the help!

1 Like