Show ads tool for unity games (support for Max-Applovin, Google Mobile Ads and IronSource-UnityLevelPlay)
for version 1.1.1
"com.wolf-package.advertising":"https://github.com/wolf-package/advertising-unity.git#1.1.1",
dependency extensions-unity-1.0.4
"com.wolf-package.extensions":"https://github.com/wolf-package/extensions-unity.git#1.0.4",
Install app-tracking-unity
and add define symbol VIRTUESKY_TRACKING
if you need ad revenue tracking
"com.wolf-package.tracking":"https://github.com/wolf-package/app-tracking-unity.git#1.0.0",
- Use via MenuItem
Unity-Common
>AdSettings
or shortcutCtrl + E / Command + E
to openAdSettings
-
Here, select
Ad Network
and enter the ad unit id you want to use, don't forget addDefine Symbol
. -
Add
Scripting Define Symbols
inProject Settings
>Player
>Other Settings
- Applovin:
VIRTUESKY_ADS
andVIRTUESKY_APPLOVIN
- Admob:
VIRTUESKY_ADS
andVIRTUESKY_ADMOB
- IronSource:
VIRTUESKY_ADS
andVIRTUESKY_IRONSOURCE
- Applovin:
-
If you use
Runtime auto init
,Advertising
will be created automatically when you load the scene. Conversely, you would attachAdvertising
to 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();
}