why isn't my ad screen appearing?

i get the debug.log printed to console but it isn’t showing anything on screen

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Advertisements;

public class AdsController : MonoBehaviour
{
    string playstoreID = "3403842";
    string videoAd = "video";
    bool testMode = true;

    [SerializeField] LivesManager deathCounter;

    // Start is called before the first frame update
    void Start()
    {
        deathCounter = FindObjectOfType<LivesManager>();
        Advertisement.Initialize(playstoreID, testMode);
    }

    // Update is called once per frame
    void Update()
    {
       InitializeMonetization();
    }

    public void InitializeMonetization()
    {
        if (deathCounter.deathCounter == 3)
        {           
            PlayAd();
        }
    }

    public void PlayAd()
    {       
            Debug.Log("ad");
            Advertisement.Show("video");
            deathCounter.deathCounter = 0;
    }
}
1 Like

@isanvel

Firstly, I would not call InitializeMonetization() in Update.

You also need to check if an ad is ready before it will be shown using Advertisement.IsReady(videoAd).