i have hooked up a butn to show an ad im using google ads. the button should show up randomly as with the code below
Code (CSharp):
public IEnumerator ShowRewardBtn()
{
if (gameover) yield break;
if (adShowing) yield return new WaitUntil(() => !adShowing);
var time = Random.Range(60, 180);
yield return new WaitForSeconds(time);
adShowing = true;
if (!rewardPanel.activeSelf)
rewardPanel.SetActive(true);
StartCoroutine(ShowRewardBtn());
}
the problem is it shows in the editor but after i downloaded the game from store, the button never shows up, i have also set up the game from adsense asinthe image attached