Beispiel #1
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 #2
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();
     }
 }
Beispiel #3
0
 /// <summary>
 /// This an example of Listening to FairBid Banner Callbacks and events.
 /// </summary>
 /// <param name="placementName">The Placement name.</param>
 public void OnLoad(string placementName)
 {
     mUserInterfaceWrapper.addLog("OnLoad()");
     mUserInterfaceWrapper.onAdAvailableAnimation();
 }