Ejemplo n.º 1
0
        public NativeAd(string placementId)
        {
            if (!Adivery.IsAdiverySupported())
            {
                return;
            }

            adObject = new AndroidJavaObject("com.adivery.unity.Native",
                                             Adivery.GetAndroidActivity(),
                                             placementId,
                                             new NativeCallbackImpl(this));
        }
Ejemplo n.º 2
0
        public BannerAd(string placementId, int bannerType, int bannerPosition)
        {
            if (!Adivery.IsAdiverySupported())
            {
                return;
            }

            adObject = new AndroidJavaObject("com.adivery.unity.Banner",
                                             Adivery.GetAndroidActivity(),
                                             placementId,
                                             bannerType,
                                             bannerPosition,
                                             new BannerCallbackImpl(this));
        }