Ejemplo n.º 1
0
 //Invoked when the RewardedVideo ad view is about to be closed.
 //Your activity will now regain its focus.
 public void RewardedVideoAdClosedEvent()
 {
     Debug.Log("RewardedVideoAdClosedEvent");
     PF_Advertising.ReportAdActivity(new ReportAdActivityRequest()
     {
         PlacementId = SupersonicEvents.queuedAd.PlacementId, RewardId = SupersonicEvents.queuedAd.RewardId, Activity = AdActivity.Closed
     }, null, PF_Bridge.PlayFabErrorCallback);
     queuedAd = null;
 }
Ejemplo n.º 2
0
    // general show ad feature?

    public static void ShowRewardedVideo(AdPlacementDetails ad)
    {
        //if (rewardedVideoAvailability) {
        //Supersonic.Agent.showRewardedVideo("placementName");
        queuedAd = ad;
        Supersonic.Agent.showRewardedVideo(ad.PlacementName);
        //		} else {
        //			Debug.Log ("RewardedVideo was not available.");
        //			queuedAd = null;
        //		}
    }
Ejemplo n.º 3
0
    public void AddAdPromo(AdPlacementDetails details)
    {
        var adPromo = new UB_PromoDisplay();

        adPromo.linkedAd = new UB_AdData {
            Details = details
        };
        adPromo.assets         = new UB_UnpackedAssetBundle();
        adPromo.assets.Banner  = defaultVideoBanner;
        adPromo.assets.PromoId = details.PlacementId;
        promos.Add(adPromo);

        SetAdSlotCount(promos.Count);
        displayPromoIndex = promos.Count - 1;
        SelectBanner();
    }