Esempio n. 1
0
        internal static void LoadNativeAd(
            AdSlot adSlot, INativeAdListener listener)
        {
            var context = loadContextID++;

            loadListeners.Add(context, listener);
            Debug.Log(adSlot.CodeId);

            UnionPlatform_NativeAd_Load(
                adSlot.CodeId,
                adSlot.adCount,
                adSlot.type,
                adSlot.width,
                adSlot.height,
                NativeAd_OnErrorMethod,
                NativeAd_OnNativeAdLoadMethod,
                context);
        }
Esempio n. 2
0
 /// <summary>
 /// Load the native Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadNativeAd(AdSlot adSlot, INativeAdListener listener)
 {
     NativeAd.LoadNativeAd(adSlot, listener);
 }
Esempio n. 3
0
        /// <summary>
        /// Load the native Ad asynchronously and notice on listener.
        /// </summary>
        public void LoadNativeAd(AdSlot adSlot, INativeAdListener listener)
        {
            var androidListener = new NativeAdListener(listener);

            this.adNative.Call("loadNativeAd", adSlot.Handle, androidListener);
        }
Esempio n. 4
0
 public NativeAdListener(INativeAdListener listener)
     : base("com.bytedance.sdk.openadsdk.TTAdNative$NativeAdListener")
 {
     this.listener = listener;
 }
Esempio n. 5
0
 /// <summary>
 /// Load the native Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadNativeAd(AdSlot adSlot, INativeAdListener listener)
 {
     listener.OnError(0, "Not Support on this platform");
 }