private void HandleUnifiedNativeAdLoaded(object sender, UnifiedNativeAdEventArgs args)
 {
     gameObject.SetActive(true);
     //MonoBehaviour.print("Unified native ad loaded.");
     nativeAd = args.nativeAd;
     unifiedNativeAdLoaded = true;
     //set_ad();
     //Debug.Log("***********HandleUnifiedNativeAdLoaded : ");
 }
Exemple #2
0
        private static void HandleOnUnifiedNativeAdLoaded(object sender, UnifiedNativeAdEventArgs args)
        {
            var       iconTexture          = args.nativeAd.GetIconTexture();
            Texture2D landscapeBannerImage = null;

            if (args.nativeAd.GetImageTextures().Count > 0)
            {
                var goList = args.nativeAd.GetImageTextures();
                landscapeBannerImage = goList[0];
            }

            SendAdMobNativeAdSuccessReport(_adMobNativeAdResponseId, _adMobNativeAdNetworkZoneId);
            var tapsellPlusNativeBannerAd =
                new TapsellPlusNativeBannerAd(_adMobNativeAdResponseId, _adMobNativeAdZoneId,
                                              "admob", args.nativeAd.GetHeadlineText(),
                                              args.nativeAd.GetBodyText(), args.nativeAd.GetCallToActionText(),
                                              null, landscapeBannerImage,
                                              iconTexture, args.nativeAd);

            _adMobNativeBannerAd = tapsellPlusNativeBannerAd;
            OnRequestResponse(new TapsellPlusAdModel(_adMobNativeAdResponseId, _adMobNativeAdZoneId));
        }
 //events
 private void HandleOnUnifiedNativeAdLoaded(object sender, UnifiedNativeAdEventArgs args)
 {
     this.adNative = args.nativeAd;
     nativeLoaded  = true;
 }
Exemple #4
0
 private void HandleUnifiedNativeAdLoaded(object sender, UnifiedNativeAdEventArgs args)
 {
     Debug.Log("Unified Native Ad Loaded");
     this.nativeAd = args.nativeAd;
     this.unifiedNativeAdLoaded = true;
 }