Beispiel #1
0
    /// <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();
    }
Beispiel #2
0
 /// <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();
     }
 }
Beispiel #3
0
 /// <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();
     }
 }