Admob ads not shown

any help will be appreciated

I finished my first android game 3 days ago && I want to put ads before publishing it

up till now , I did not manage to integrate AdMob ads in my game

according to unity console : the ads created , requested , loaded and shown successfully

but never shown in my android device

maybe AdMob blocked my account from receiving ads as I tested the ads too much(just impressions no clicks)

I can`t publish my game up till now , so any help will be appreciated !!

Same issue here bro I added the failure callback and displayed the error message, i got internal error:frowning:

This may help https://github.com/unity-plugins/Unity-Admob

I found a way to get it working.

Why this is happening:

  1. Your AdMob account review is still pending.
  2. UnityEditor provides has access to internet so able to show banner but on android directly internet is not accessible.

Solution:

  1. Wait for AdMob review to get completed.
  2. On android, you need to enable internet permission using Manifest file or Player Setting > Other Settings > Internet Access = Required.
    But story doesn’t end here, since the app only ask to grant permission when app tries to connect to make a web request. Add below code on main scene.
using System.Collections;
using UnityEngine;
using UnityEngine.Android;
using UnityEngine.Networking;

public class InternetChecker : MonoBehaviour
{
    void Start()
    {
        StartCoroutine(CheckInternetAccess());
    }

    IEnumerator CheckInternetAccess()
    {
        using (UnityWebRequest request = UnityWebRequest.Get("https://www.google.com"))
        {
            request.timeout = 5;
            yield return request.SendWebRequest();

            if (request.result != UnityWebRequest.Result.Success)
            {
                Debug.LogError("No active internet access!");
            }
            else
            {
                Debug.Log("Internet access confirmed!");
            }
        }
    }
}