public override void Show(AdsElement type) { if (!AdsController.NoAds) { switch (type.type) { case AdsType.Interstitial: HZShowOptions showOptions = new HZShowOptions(); showOptions.Tag = type.name; HZInterstitialAd.ShowWithOptions(showOptions); break; case AdsType.Video: HZShowOptions showOptionsVideo = new HZShowOptions(); showOptionsVideo.Tag = type.name; HZVideoAd.ShowWithOptions(showOptionsVideo); break; case AdsType.RewardedVideo: HZIncentivizedShowOptions showOptionsReward = new HZIncentivizedShowOptions(); showOptionsReward.Tag = type.name; HZIncentivizedAd.ShowWithOptions(showOptionsReward); break; } } }
public void ShowRewardedVideo(string tag) { #if API_ADS_HEYZAP HZIncentivizedShowOptions options = new HZIncentivizedShowOptions(); options.Tag = tag; HZIncentivizedAd.ShowWithOptions(options); HZIncentivizedAd.Fetch(tag); #endif }
private void ShowRewarded() { // Later, such as after a level is completed if (HZIncentivizedAd.IsAvailable("rewarded")) { HZIncentivizedShowOptions showOptions = new HZIncentivizedShowOptions(); showOptions.Tag = "rewarded"; HZIncentivizedAd.ShowWithOptions(showOptions); Defs.MuteSounds(true); VideoAdCointer = 0; } }
public void ShowRewardAd(string tag) { if (HZIncentivizedAd.IsAvailable(tag)) { Toaster.ShowDebugToast("Showing reward video for tag; " + tag); HZIncentivizedShowOptions options = new HZIncentivizedShowOptions(); options.Tag = tag; HZIncentivizedAd.ShowWithOptions(options); } else { Toaster.ShowDebugToast("Can't show reward video for tag; " + tag); } }
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 InternalShowRewardedAd(AdPlacement placement) { #if EM_HEYZAP if (placement == AdPlacement.Default) { HZIncentivizedAd.Show(); } else { var options = new HZIncentivizedShowOptions() { Tag = ToHeyzapAdTag(placement) }; HZIncentivizedAd.ShowWithOptions(options); } #endif }