Show ads tool for unity games (support for Max-Applovin, Google Mobile Ads and IronSource-UnityLevelPlay)
for version 1.1.8
"com.wolf-org.advertising":"https://github.com/unity-package/advertising-unity.git#1.1.8",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.3",- 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_IRONSOURCE
- 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
public void ShowBanner()
{
Advertising.BannerAd.Show();
}
public void HideBanner()
{
Advertising.BannerAd.HideBanner();
}
public void ShowInter()
{
Advertising.InterstitialAd.Show().OnCompleted(() =>
{
// handle show inter completed
});
}
public void ShowReward()
{
Advertising.RewardAd.Show().OnCompleted(() =>
{
// handle show reward completed
}).OnSkipped(() =>
{
// handle skip reward
});
}
public void ShowRewardInter()
{
Advertising.RewardedInterstitialAd.Show().OnCompleted(() => { });
}
public void ShowAppOpen()
{
Advertising.AppOpenAd.Show();
}
