示例#1
0
        public void OnNativeAdLoad(AndroidJavaObject list,NativeAd ad)
        {
#if UNITY_IOS
            Debug.LogError("OnNativeAdLoad: " + ad.GetAdType());
            if (ad.GetAdType() == AdSlotType.Feed)
            {
                this.example.nativeFeedAd = ad;
            } else if (ad.GetAdType() == AdSlotType.InteractionAd)
            {
                //this.example.intersititialAd = ad;
            }

            ad.SetNativeAdInteractionListener(
                new NativeAdInteractionListener(this.example)
            );
            Debug.Log("OnNativeAdLoad");
            this.example.information.text = "OnNativeAdLoad";
#endif
        }