The service allows you to use all advertising functions (GDPR, Banner, Interstitial, Rewarded and etc.)
To get started:
- Add the “AdMediation” prefab to the Main Scene.
- Fill in the mediation data in the iDosGamesSDK settings
AdMediation
All interactions occur with advertisements in this class.
- Methods
private void ShowRewardedAd()
{
if (!UserInventory.HasVIPStatus) //VIP status check
{
if (AdMediation.Instance.ShowRewardedVideo(AfterCompletedWatchVideo))
{
Debug.Log("Showed rewarded video.");
}
else
{
ShopSystem.PopUpSystem.ShowVIPPopUp();
}
}
else
{
AfterCompletedWatchVideo();
}
}
private void AfterCompletedWatchVideo(bool adCompleted = true)
{
// Do Something
}
. . .
if (!UserInventory.HasVIPStatus) //VIP status check
{
AdMediation.Instance.ShowInterstitialAd();
}
ShowRewardedVideo – shows advertising for rewards.
ShowInterstitialAd – shows interstitial advertising.
There are several other methods, but they are automated (show banner, GDPR, etc.)