π² How to Integrate AdMob in Unity (Step-by-Step for Android in 2025)

π‘ Want to earn real money from your Unity mobile game? Learn how to Integrate AdMob in Unity or how to show banner, interstitial, and rewarded ads with Google AdMob in Unity.
AdMob is one of the most popular ad networks for monetising Android and iOS games. If youβve built a mobile game in Unity, this is your chance to add ads and start earning β even with just 100+ users!
Letβs walk through the complete AdMob integration process in 2025.
π§° What Youβll Need:
- β Unity installed (2021.3+ LTS preferred)
- β A working Android game project
- β Google AdMob account (https://apps.admob.com)
- β Android device for testing
β Step 1: Create AdMob Account & App
- Go to https://apps.admob.com
- Click on Apps β Add App
- Select Android β βYesβ or βNoβ (if already published)
- Add App name, select category, click Add
- Youβll get an App ID (Copy it!)
β Step 2: Import Google Mobile Ads SDK in Unity
- Download the Google Mobile Ads Unity Plugin from:
π https://github.com/googleads/googleads-mobile-unity - Import the
.unitypackage
into your project:- Go to Assets > Import Package > Custom Package
- Select the downloaded file β Click Import All
- Add the GoogleMobileAds namespace:
using GoogleMobileAds.Api;
πΉοΈ Unity vs Unreal vs Godot β Which is Best for Beginners in 2025?
β Step 3: Initialize AdMob in Your Game
In your GameManager
or any start scene script, add this in Start()
:
void Start()
{
MobileAds.Initialize(initStatus => {
Debug.Log("AdMob Initialized");
});
}
You can also enable test ads for safe testing:
RequestConfiguration requestConfiguration = new RequestConfiguration
.Builder()
.SetTestDeviceIds(new List<string>() { "YOUR_DEVICE_ID" })
.build();
MobileAds.SetRequestConfiguration(requestConfiguration);
β Step 4: Show a Banner Ad
BannerView bannerView;
void RequestBanner()
{
string adUnitId = "ca-app-pub-xxxxxxxxxxxxx/xxxxxxxxxxx"; // Replace with real ID
bannerView = new BannerView(adUnitId, AdSize.Banner, AdPosition.Bottom);
AdRequest request = new AdRequest.Builder().Build();
bannerView.LoadAd(request);
}
Call RequestBanner();
after initialization.
β Step 5: Show Interstitial Ad (Full Screen)
InterstitialAd interstitial;
void RequestInterstitial()
{
string adUnitId = "ca-app-pub-xxxxxxxxxxxxx/xxxxxxxxxxx";
interstitial = new InterstitialAd(adUnitId);
AdRequest request = new AdRequest.Builder().Build();
interstitial.LoadAd(request);
interstitial.OnAdClosed += HandleOnAdClosed;
}
void ShowInterstitial()
{
if (interstitial.IsLoaded())
{
interstitial.Show();
}
}
β Step 6: Add Rewarded Video Ads
RewardedAd rewardedAd;
void RequestRewardedAd()
{
string adUnitId = "ca-app-pub-xxxxxxxxxxxxx/xxxxxxxxxxx";
rewardedAd = new RewardedAd(adUnitId);
AdRequest request = new AdRequest.Builder().Build();
rewardedAd.LoadAd(request);
rewardedAd.OnUserEarnedReward += HandleUserEarnedReward;
rewardedAd.OnAdClosed += HandleOnAdClosed;
}
void ShowRewardedAd()
{
if (rewardedAd.IsLoaded())
{
rewardedAd.Show();
}
}
public void HandleUserEarnedReward(object sender, Reward args)
{
Debug.Log("Rewarded! Give user coins or extra life.");
}
β Step 7: Build Settings for Android
- Go to
File > Build Settings > Android > Switch Platform
- Enable:
- Internet permission in
Player Settings > Publishing
Min API Level = 21 or higher
- Target Architectures: ARMv7 + ARM64
- Internet permission in
- Export as .apk or .aab
π Final Checklist Before Publishing
Item | Status |
---|---|
AdMob App ID used | β |
Real Ad Unit IDs added | β |
Ads tested successfully | β |
No test ads in release | β |
Reward logic working | β |
πΈ Bonus: How to Earn More with AdMob?
- Use Interstitial ads on level complete
- Show Rewarded ads for extra coins or continue
- Keep banner ads on pause menu, game over
- Use Unity Analytics to track which ads perform best
- Avoid ad spam β keep UX clean
π¬ Final Thoughts
AdMob is one of the easiest and safest ways to monetise your Unity Android games. Once setup, you can start earning passively from every player.
Start with test ads, then switch to real ads after testing.
π οΈ Need Help?
π Download Free Unity + AdMob Starter Project
π Hire me to integrate AdMob into your game (βΉ999)
π Subscribe to my YouTube for Unity tutorials