Exemplo n.º 1
0
        //------------------------------------------------------------
        // Rewarded Ads.
        //------------------------------------------------------------

        protected override void InternalLoadRewardedAd(AdPlacement placement)
        {
#if EM_FAIRBID
            string id = placement == AdPlacement.Default ?
                        mGlobalAdSettings.DefaultRewardedAdId :
                        ToFairBidAdTag(placement);
            Rewarded.Request(id);
#endif
        }
Exemplo n.º 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();
     }
 }