public void SetElement(NativeAppInstallAd ad) { var adView = new NativeAppInstallAdView(Xamarin.Forms.Forms.Context); // Here we can set views to adView. // var textView = new TextView(Xamarin.Forms.Forms.Context); adView.SetNativeAd(ad); SetNativeControl(adView); }
private void HandleNativeAppInstallAdLoaded(object sender, NativeAppInstallAdEventArgs args) { MonoBehaviour.print("App install ad loaded."); this.appInstallAd = args.nativeAd; this.appInstallAdLoaded = true; if (text != null) { text.text = "App install ad loaded."; } transform.parent.gameObject.SetActive(true); }
private void HandleNativeAppInstallAdLoaded(object sender, NativeAppInstallAdEventArgs args) { if (text != null) { text.text = ("App install ad loaded."); } this.appInstallAd = args.nativeAd; this.appInstallAdLoaded = true; //Update(); gameObject.SetActive(true); if (text != null) { text.text = "App install ad loaded. " + canShow + " " + isReadyToShow + " " + appInstallAd; } }
public void OnAppInstallAdLoaded(NativeAppInstallAd ad) { try { // Show the app install ad. if (adLoader.IsLoading) { // The AdLoader is still loading ads. // Expect more adLoaded or onAdFailedToLoad callbacks. } else { // The AdLoader has finished loading ads. } } catch (Exception exception) { Crashes.TrackError(exception); } }
public void OnAppInstallAdLoaded(NativeAppInstallAd ad) { Renderer.SetElement(ad); }