public void ShowButton() { string tag = this.adTag(); HZShowOptions showOptions = new HZShowOptions(); showOptions.Tag = tag; HZIncentivizedShowOptions incentivizedOptions = new HZIncentivizedShowOptions(); incentivizedOptions.Tag = tag; incentivizedOptions.IncentivizedInfo = "test app incentivized info!"; HZBannerShowOptions bannerOptions = new HZBannerShowOptions(); bannerOptions.Tag = tag; bannerOptions.Position = this.bannerPosition; HZOfferWallShowOptions offerwallOptions = new HZOfferWallShowOptions(); offerwallOptions.ShouldCloseAfterFirstClick = offerwallCloseOnFirstClickToggle.isOn; offerwallOptions.Tag = tag; this.console.Append("Showing " + this.SelectedAdType.ToString() + " with tag: " + tag); switch (this.SelectedAdType) { case AdType.Interstitial: HZInterstitialAd.ShowWithOptions(showOptions); break; case AdType.Video: HZVideoAd.ShowWithOptions(showOptions); break; case AdType.Incentivized: HZIncentivizedAd.ShowWithOptions(incentivizedOptions); break; case AdType.Banner: HZBannerAd.ShowWithOptions(bannerOptions); break; case AdType.Offerwall: HZOfferWallAd.ShowWithOptions(offerwallOptions); break; } }
protected override void InternalShowInterstitialAd(AdPlacement placement) { #if EM_HEYZAP if (placement == AdPlacement.Default) { HZInterstitialAd.Show(); } else { var options = new HZShowOptions() { Tag = ToHeyzapAdTag(placement) }; HZInterstitialAd.ShowWithOptions(options); } #endif }