/// <summary> /// Called when the showBanner is clicked /// This function provides an example for calling the API method Banner.display in order to display a banner placement /// </summary> /// <param name="bannerPlacementName">name of placement to be requested</param> private void OnShowBannerClicked(String bannerPlacementName) { BannerOptions bannerOptions = generateBannerOptions(); Banner.Show(bannerPlacementName, bannerOptions); mUserInterfaceWrapper.startRequestAnimation(); }
/// <summary> /// Called when the requestButton is clicked /// This function provides an example for calling the API method Interstitial.Request in order to request a rewarded placement /// </summary> /// <param name="interstitialPlacementName">The name of placement to be requested.</param> private void OnRequestAdButtonClicked(String interstitialPlacementName) { if (!Interstitial.IsAvailable(interstitialPlacementName)) { Interstitial.Request(interstitialPlacementName); mUserInterfaceWrapper.startRequestAnimation(); } else { mUserInterfaceWrapper.onAdAvailableAnimation(); } }
/// <summary> /// Called when the requestButton is clicked /// This function provides an example for calling the API method Rewarded.Request in order to request a rewarded placement /// </summary> /// <param name="rewardedPlacementName">The name of placement to be requested.</param> private void OnRequestAdButtonClicked(String rewardedPlacementName) { if (!Rewarded.IsAvailable(rewardedPlacementName)) { Rewarded.Request(rewardedPlacementName); mUserInterfaceWrapper.startRequestAnimation(); } else { mUserInterfaceWrapper.onAdAvailableAnimation(); } }