Friday, February 20, 2026
Wednesday, February 18, 2026
This code is very simple and effective. You will not phase any issue.
Setup:
- Open your project. Click on Windows option and select Package Manger.
- Go to Edit and select Project Settings...
- Click on Services. Then select your Organization, then select Create a new cloud project option and click on Create new cloud project and link to unity project button.
- Select No at the end and click on Save.
- Click on Dashboard option under Members. Select your game from project list and open it.
- Go to Services tab.
- Scroll down, find Unity Ads Monetization and click Launch button.
- Click on Enable Ads button visible on left side in blue color.
- Select I will use Unity Ads and click Next.
- Select No, I want to start fresh option and click Next.
- Select first option if your game is live on apple/play store or if not, select second option and click on Add Project button.
- Click on Finish and you will redirect to this page. Here you will find all the IDs required for the ad setup of your game.
- Open Unity, right click on Hierarchy window and create an empty gameobject named Ads_Manager.
- Drag and Drop the downloaded code in Scripts folder.
- Add all Scripts inside Ads folder in Ads Manager Gameobject.
- Drag and Drop respective scripts in Ads_Manager Script.
- In Initialize_Ads Scripts, Enter Android/IOS Game ID. Check on Is Testing while testing. When you are going to build your app, uncheck it.
- Similar way, you will find ID for Banner, Interstitial and Rewarded ads. Fill them and you are ready to go.
- To show the banner ad, go to any of your game script and paste the following code:
private void Awake()
{
StartCoroutine(DisplayAdsWithDelay());
}
IEnumerator
DisplayAdsWithDelay()
{
yield
return new
WaitForSeconds(1f);
Ads_Manager.Instance.bannerAds.ShowAds();
}
To hide ad, just type
this command: Ads_Manager.Instance.bannerAds.HideAds();
To set the position of banner
ad, go to
Ads_Manager script and
replace BOTTOM_CENTER to
TOP_CENTER, TOP_RIGHT, TOP_LEFT,
BOTTOM_CENTER,etc.
- To show Interstitial/Video Ad, just type the command: Ads_Manager.Instance.videoAds.ShowAds();
- To show Rewarded Ads, just type the command: Ads_Manager.Instance.RewardedAds.ShowAds();
Here, when the ads is
completely shown, you may give
rewards to player like revive,
save me, extra money or
powerups. This can be done
under
Rewarded_Ads Scripts inside
if condition of OnUnityAdsShowComplete() function.





















