Singleton Ad Manager For Unity
- Automatic Platform Detection
- Simple to set up and use.
- Dispatches UnityEvents for rewarded ads.
- Easy banner configuration
- Attach AdManager.cs to any GameObject in the hierarchy.
- Set the Store ID and Placement ID values in the inspector. You can find these on your Unity Ads dashboard.
- Select the banner position you wish to use.
- Run
AdManager.Instance.ShowAd(AdType.NonRewarded)
. You can also useAdType.Rewarded
, andAdType.Banner
.
- The AdManager dispatches events for when a rewarded ad is skipped, completed and fails to load.
- You can respond to these events by running
AdManager.Instance.OnAdCompleted.AddListener();
, or assigning a function in the inspector. - Use this to reward players for completing ads.
- When the game is built, testMode will automatically be disabled.
- The StoreID will change automatically depending on the platform.