addmob test ads not displaying anymore

Hello. I made a game with unity for android and I’m having problems wirh admob.When I first set the AdMob It was working fine.But now, it’s not showing banner and when I request interstitial, the app directly closes.
When I run the code in Unity, it works fine. I can see the following in the console:

Created DummyClient
Dummy CreateBannerView
Dummy LoadAd

When I compile the code for android, I can’t get past the initializing.

MobileAds.Initialize(initStatus => { });


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GoogleMobileAds.Api;
using UnityEngine.UI;

public class reklamlar : MonoBehaviour
{
    private BannerView bannerView;
    string adUnitId = "ca-app-pub-3940256099942544/6300978111";
 
    void Start()
    {
     
        MobileAds.Initialize(initStatus => { });
     
        this.RequestBanner();
        ShowBannerAd();
    }
 
public void RequestBanner()
    {
        this.bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);
        Debug.Log("banner Request");
     
    }
 
public void ShowBannerAd()
    {
        AdRequest request = new AdRequest.Builder().Build();
        this.bannerView.LoadAd(request);
        Debug.Log("banner Show");
     
    }

    // Update is called once per frame
    void Update()
    {
    

    
    
    }
}

Man, having the exact same problem for two days now. Gonna lose my mind!

1 Like

I have exactly same problem here and can’t find any solution. it works on unity but on on devices or test devices.

1 Like

I am also struggling with the admob, the unity test ads are showing instead of the admob:eyes:
So when i put the admob test id and i build my apk then real unity ads are showing!!!

See Using code tags properly