Why Unity Ads are not showing every time?
NOTE: English isn't my mother tongue, so sorry in advance for any grammar mistakes. I'm totally newbie and this project has no intentions of making money. It's just an experiment.
Hi. I recently released a game on Google Play for study porpouses, but, for some reason, my ads are not showing up every time. Actually, the insterstial one is shown sometimes, but the rewarded one never. As you can see, there are two types of ads in my game: interstitial and rewarded. The first one is called every game over and the other one every time the player clicks on a button.
I already checked if test mode isn't active and if the adds methods are assigned to both my GameOver method and the button.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Advertisements;
public class Ads : MonoBehaviour
{
public string rewardedVideo = "rewardedVideo";
public string interstitialVideo = "video";
string gameId = "313958"; //not the real one, just an example.
bool testMode = false;
private void Awake()
{
Advertisement.Initialize(gameId, testMode);
}
public void CallsRewardedAd() // This method is called when I click the button.
{
if(Advertisement.IsReady(rewardedVideo))
{
Advertisement.Show(rewardedVideo);
Debug.Log("Success!");
}
}
public void CallsInterstitialAd() // This method is called every game over.
{
if (Advertisement.IsReady(interstitialVideo))
{
Advertisement.Show(interstitialVideo);
Debug.Log("Success!");
}
}
}
Your answer
Follow this Question
Related Questions
Developing game for someone. Which account to use? 1 Answer
AdMob ads not showing into unity game! Please help... 2 Answers
(Unity Ads) The referenced script on this Behaviour (Game Object 'Button') is missing! 0 Answers
Unity Advertisement isn´t existing? 0 Answers
Unity Ads Stop Playing On Mobile 0 Answers