🛠️Troubleshoot

Ad Loading Failed

  1. Make sure you have added the App ID inside the Google Ad Mob settings window.

  2. In the case of live ad id (Test mode off), this may happen if there is no fill from the Google server.

No Impression but Click

  1. If it’s a 3d game the camera and the ad unit must be on the side + Z world axis to get an impression.

  2. Make sure there is no collider between the main camera and the ad Unit.

  3. If you are instantiating ad prefabs in real-time try disabling the strip engine code option from the build option.

  4. If you have multiple camera’s on the scene make sure the camera which is looking toward the ad unit has the priority depth value.

  5. Make sure the Unity Event system component is present in the scene.

Impression but No Click

  1. Make sure there is no collider between the main camera and the ad Unit.

  2. Make sure the Unity Event system component is present in the scene.

Build Issues with Gradle

If you run into Gradle issues in Unity 2019 or 2020

  1. Check the Gradle version in the Unity Settings section and point the Gradle to the 2021 Unity version's Gradle file or above.

  2. Check if the Custom base Gradle Template is enabled from the Publishing settings option under project settings

  3. Change the gradle version inside the baseProjectTemplate.gradle (Found under Plugin > Android ) file to 4.0.0

  4. Check and uncheck the Android options inside the External Tools section of the Preferences only keep the Gradle option unchecked after changing the Gradle version for 2019 and 2020.

  5. Do a force resolve in the External Dependency Manager

  6. Check Minimum API Level and Target API Level under project settings>> Player section

  7. Check the API compatibility level to .Net 4x

  8. Check the device cable if it is connected when building the .apk to a device.

Last updated