Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
    public void Reward(AdPlacementType placementId, RewardDelegate onFinish)
    {
        string id = CustomMediation.GetAdmobID(placementId, AdMobConst.REWARD_ID);

        RewardAdmob(onFinish, id);
    }
Exemplo n.º 4
0
    public void RequestInterstitialNoShow(AdPlacementType placementId, AdsManager.InterstitialDelegate onAdLoaded = null, bool showLoading = true)
    {
        string id = CustomMediation.GetAdmobID(placementId, AdMobConst.INTERSTITIAL);

        RequestAdmobInterstitialNoShow(id, onAdLoaded, showLoading);
    }
Exemplo n.º 5
0
    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);
    }
Exemplo n.º 6
0
 public void Reward(AdPlacement.Type placementType, RewardDelegate onFinish)
 {
     Reward(onFinish, CustomMediation.GetUnityPlacementId(placementType));
 }
Exemplo n.º 7
0
 public void RequestInterstitialNoShow(AdPlacement.Type placementType, AdsManager.InterstitialDelegate onAdLoaded = null, bool showLoading = true)
 {
     RequestInterstitialNoShow(CustomMediation.GetUnityPlacementId(placementType), onAdLoaded, showLoading);
 }
Exemplo n.º 8
0
 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);
 }