UnityCommon-ADS
UnityCommon-ADS provides unified ad network integration for Unity games, supporting AppLovin MAX, Google Mobile Ads, and IronSource-UnityLevelPlay. Configure ads through an intuitive editor window, then display banners, interstitials, rewarded, and rewarded interstitial ads with simple API calls. Includes optional ad revenue tracking integration.
com.wolf-org.advertising Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/advertising.git README Markdown
Copy this to your project's README.md
## Installation
Add **UnityCommon-ADS** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/advertising.git
```
[](https://www.pkglnk.dev/pkg/advertising)Dependencies (1)
README
What
Show ads tool for unity games (support for Max-Applovin, Google Mobile Ads and IronSource-UnityLevelPlay)
How To Install
Add the line below to Packages/manifest.json
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
- 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();
}
No comments yet. Be the first!