Its just not showing, i also created a new GameObject and added this script.
public string gameid = "3170875";
public string placementId = "bannerPlacement";
public bool testMode = true;
void Start ()
{
if(Application.platform==RuntimePlatform.IPhonePlayer)
{
gameid = "3170875";
}
else if (Application.platform==RuntimePlatform.Android)
{
gameid = "3170875";
}
Advertisement.Initialize (gameid, testMode);
StartCoroutine (ShowBannerWhenReady ());
}
IEnumerator ShowBannerWhenReady () {
while (!Advertisement.IsReady (placementId)) {
yield return new WaitForSeconds (0.5f);
}
Advertisement.Banner.Show (placementId);
}
}
↧