Hi all,
I am having a problem with unity ads. When i call for an ad, a add is prompted but it's not a real app just an add for unity.
pic of the ad: https://drive.google.com/open?id=0B7JcBeBehMJ-R1F1eWVHWW9adWtPeXRFTHRNQ1NjQVN6YTJj
code:
function OnCollisionEnter2D(myCol : Collision2D)
{
if(myCol.gameObject.tag == "cube" && lives == 0)
{
ShowAd();
}
}
function ShowAd()
{
if (!Advertisement.IsReady())
{
return;
}
Advertisement.Show();
}
↧