void Start() { //Monetization.Initialize(Const.GAMEID, testMode); Advertisement.Initialize(CustomMediation.unityGameId, testMode); if (showBannerOnStart) { StartCoroutine(ShowBannerWhenReady(CustomMediation.GetUnityPlacementId(AdPlacement.Banner), BannerPosition.BOTTOM_CENTER)); } //interstitialSplashContent = Monetization.GetPlacementContent(interstitialSplash) as ShowAdPlacementContent; Advertisement.AddListener(this); }
public void ShowBanner(AdPlacement.Type placementType, BannerTransform bannerTransform, AdsManager.InterstitialDelegate onAdLoaded = null) { BannerPosition adPosition; switch (bannerTransform.adPosition) { case Omnilatent.AdsMediation.AdPosition.Top: case Omnilatent.AdsMediation.AdPosition.TopLeft: case Omnilatent.AdsMediation.AdPosition.TopRight: adPosition = BannerPosition.TOP_CENTER; break; case Omnilatent.AdsMediation.AdPosition.Bottom: case Omnilatent.AdsMediation.AdPosition.Center: default: adPosition = BannerPosition.BOTTOM_CENTER; break; } ShowBanner(CustomMediation.GetUnityPlacementId(placementType), adPosition, onAdLoaded); }
public void Reward(AdPlacementType placementId, RewardDelegate onFinish) { string id = CustomMediation.GetAdmobID(placementId, AdMobConst.REWARD_ID); RewardAdmob(onFinish, id); }
public void RequestInterstitialNoShow(AdPlacementType placementId, AdsManager.InterstitialDelegate onAdLoaded = null, bool showLoading = true) { string id = CustomMediation.GetAdmobID(placementId, AdMobConst.INTERSTITIAL); RequestAdmobInterstitialNoShow(id, onAdLoaded, showLoading); }
public void ShowBanner(AdPlacementType placementId, AdsManager.InterstitialDelegate onAdLoaded = null) { string id = CustomMediation.GetAdmobID(placementId, AdMobConst.BANNER_ID); ShowBanner(id, AdSize.GetCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(AdSize.FullWidth), 0f, onAdLoaded); }
public void Reward(AdPlacement.Type placementType, RewardDelegate onFinish) { Reward(onFinish, CustomMediation.GetUnityPlacementId(placementType)); }
public void RequestInterstitialNoShow(AdPlacement.Type placementType, AdsManager.InterstitialDelegate onAdLoaded = null, bool showLoading = true) { RequestInterstitialNoShow(CustomMediation.GetUnityPlacementId(placementType), onAdLoaded, showLoading); }
public void ShowInterstitial(AdPlacement.Type placementType, AdsManager.InterstitialDelegate onAdClosed) { onInterstitialClosed = onAdClosed; ShowInterstitial(CustomMediation.GetUnityPlacementId(placementType), onAdClosed); }
public void ShowInterstitial(AdPlacementType placementType, AdsManager.InterstitialDelegate onAdClosed) { interstitialClosedDelegate = onAdClosed; ShowInterstitial(CustomMediation.GetFANPlacementId(placementType)); }
public void ShowBanner(AdPlacementType placementType, AdsManager.InterstitialDelegate onAdLoaded = null) { ShowBanner(CustomMediation.GetFANPlacementId(placementType), onAdLoaded); }