You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/GleyPlugins/Ads/Scripts/MediationSettings.cs

52 lines
1.5 KiB
C#

2 months ago
namespace GleyMobileAds
{
public enum MediationTypes
{
Order,
Weight
}
//used by settings window to setup advertiser mediation
[System.Serializable]
public class MediationSettings
{
public SupportedAdvertisers advertiser;
public string advertiserName;
public AdTypeSettings bannerSettings;
public AdTypeSettings interstitialSettings;
public AdTypeSettings rewardedSettings;
public MediationSettings(SupportedAdvertisers advertiser, AdTypeSettings bannerSettings, AdTypeSettings interstitialSettings, AdTypeSettings rewardedSettings)
{
this.advertiser = advertiser;
advertiserName = advertiser.ToString();
this.bannerSettings = bannerSettings;
this.interstitialSettings = interstitialSettings;
this.rewardedSettings = rewardedSettings;
}
public MediationSettings(MediationSettings settings)
{
advertiser = settings.advertiser;
advertiserName = settings.advertiser.ToString();
bannerSettings = settings.bannerSettings;
interstitialSettings = settings.interstitialSettings;
rewardedSettings = settings.rewardedSettings;
}
public MediationSettings(SupportedAdvertisers advertiser)
{
this.advertiser = advertiser;
advertiserName = advertiser.ToString();
}
public SupportedAdvertisers GetAdvertiser()
{
return advertiser;
}
}
}