Welcome to the Unity AdMob Integration Guide.
This guide walks you through installing the Google Mobile Ads SDK into your Unity project for both Android and iOS.
Before starting, make sure you have:
- Unity 2022 LTS or newer
- Internet connection
- Google AdMob account
- Android Build Support
- iOS Build Support (optional if targeting iOS)
- Open Unity Hub.
- Click New Project.
- Select the 3D (URP) or 2D template.
- Name your project.
- Click Create Project.
Continue once Unity finishes loading.
Download the latest Unity package from the official repository.
Official Repository:
https://github.com/googleads/googleads-mobile-unity
Inside Unity:
Assets → Import Package → Custom Package
Select:
GoogleMobileAds.unitypackage
Click Import All.
After importing:
Assets → External Dependency Manager → Android Resolver → Resolve
Wait until the resolver finishes downloading all required libraries.
After installation you should see folders similar to:
Assets/
GoogleMobileAds/
ExternalDependencyManager/
Plugins/
Resources/
If these folders exist, the SDK has been installed correctly.
Example:
using GoogleMobileAds.Api;If IntelliSense recognizes the namespace, installation was successful.
Possible causes:
- Package not imported
- Dependency Resolver not executed
- Compilation errors
Run:
Assets
↓
External Dependency Manager
↓
Android Resolver
↓
Force Resolve
Re-import the SDK package.
Continue with:
Back to the README.