Show ads tool for unity games (support for Max-Applovin, Google Mobile Ads and IronSource-UnityLevelPlay)
for version 1.1.9
"com.wolf-org.advertising":"https://github.com/unity-package/advertising-unity.git#1.1.9",dependency extensions-unity-1.0.6
"com.wolf-org.extensions":"https://github.com/unity-package/extensions-unity.git#1.0.6",Install app-tracking-unity and add define symbol VIRTUESKY_TRACKING if you need ad revenue tracking
"com.wolf-org.tracking":"https://github.com/unity-package/app-tracking-unity.git#1.0.6",- Use via MenuItem
Unity-Common>AdSettingsor shortcutCtrl + E / Command + Eto openAdSettings
Here, select
Ad Networkand enter the ad unit id you want to use, don't forget addDefine Symbol.Add
Scripting Define SymbolsinProject Settings>Player>Other Settings- Applovin:
VIRTUESKY_ADSandVIRTUESKY_APPLOVIN - Admob:
VIRTUESKY_ADSandVIRTUESKY_ADMOB - IronSource:
VIRTUESKY_ADSandVIRTUESKY_LEVELPLAY
- Applovin:
If you use
Runtime auto init,Advertisingwill be created automatically when you load the scene. Conversely, you would attachAdvertisingto the GameObject in the scene so that the ads can be loaded
- Demo API Show Ads
publicvoidShowBanner(){Advertising.BannerAd.Show();}publicvoidHideBanner(){Advertising.BannerAd.HideBanner();}publicvoidShowInter(){Advertising.InterstitialAd.Show().OnCompleted(()=>{// handle show inter completed});}publicvoidShowReward(){Advertising.RewardAd.Show().OnCompleted(()=>{// handle show reward completed}).OnSkipped(()=>{// handle skip reward});}publicvoidShowRewardInter(){Advertising.RewardedInterstitialAd.Show().OnCompleted(()=>{});}publicvoidShowAppOpen(){Advertising.AppOpenAd.Show();}
