1. In the version of asset 5.0.0 and earlier we should install Google Admob package downloading the latest version of Admob plugin for Unity from here https://github.com/googleads/googleads-mobile-unity/releases/tag/v8.5.3 and open asset in Unity 2021 and upper (because of it is a requirement for Admob plugin) then we should complete import GoogleMobileAds.unitypackage to project. And finish steps from guide here: https://developers.google.com/admob/unity/start
  2. Starting from version 5.1.0 I register dependencies to external packages into manifest:

So if you have already imported Json .Net or Google Mobile Ads package please remove it from your project.

  1. Go to Edit → Project Settings → Package Manager → Create new registry for openupm and add scopes:

Name: doesn’t matter

URL: https://package.openupm.com

Scopes: com.google

Untitled

  1. Also we should upgrade Unity to 2022 LTS to completely build project for mobile.

  2. Go to Project Settings > Player > Android > Publishing Settings > Build and select:

    Untitled

  3. In the Unity editor click for Android:

    Menu→Assets→External Dependency Manager→Android Resolver→Force Resolve.

    For iOS:

    Menu→Assets→External Dependency Manager→ iOS Resolver → Install Cocoapods

  4. Then to show advertisement in your build you need to change advertisement id.

    Open InterVideoAds.cs script in the scene, (It was added to object AdsManager) and change it there.

    Untitled

    And GoogleMobileAdsSettings.asset

    Untitled

  5. For activating test ADS you should set IsTestADS variable to TRUE before play (like on screen). For deactivating test ADS you should set IsTestADS variable to FALSE before play.

    Untitled