Example #1
0
        public NativeAd(string placementId)
        {
            if (!Adivery.IsAdiverySupported())
            {
                return;
            }

            adObject = new AndroidJavaObject("com.adivery.unity.Native",
                                             Adivery.GetAndroidActivity(),
                                             placementId,
                                             new NativeCallbackImpl(this));
        }
Example #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));
        }