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); }
/// <summary> /// Load the native Ad asynchronously and notice on listener. /// </summary> public void LoadNativeAd(AdSlot adSlot, INativeAdListener listener) { NativeAd.LoadNativeAd(adSlot, listener); }
/// <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); }
public NativeAdListener(INativeAdListener listener) : base("com.bytedance.sdk.openadsdk.TTAdNative$NativeAdListener") { this.listener = listener; }
/// <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"); }