示例#1
0
 internal override void RequestInterstitialAd(string keywords = "", string userDataKeywords = "")
 {
     RequestAdUnit();
     MoPubUnityEditor.WaitOneFrame(() => {
         MoPubManager.Instance.EmitInterstitialLoadedEvent(MoPubUnityEditor.ArgsToJson(AdUnitId));
     });
 }
示例#2
0
 internal override void RequestRewardedVideo(List <MoPub.LocalMediationSetting> mediationSettings = null, string keywords = null, string userDataKeywords = null,
                                             double latitude   = MoPub.LatLongSentinel, double longitude = MoPub.LatLongSentinel,
                                             string customerId = null)
 {
     RequestAdUnit();
     MoPubUnityEditor.WaitOneFrame(() => {
         MoPubManager.Instance.EmitRewardedVideoLoadedEvent(MoPubUnityEditor.ArgsToJson(AdUnitId));
     });
 }
    internal override void ForceRefresh()
    {
        if (!CheckAdUnitRequested())
        {
            return;
        }

        MoPubUnityEditor.WaitOneFrame(() => {
            MoPubManager.Instance.EmitAdLoadedEvent(MoPubUnityEditor.ArgsToJson(AdUnitId, "320", "50"));
        });
    }
示例#4
0
 internal override void ShowInterstitialAd()
 {
     if (CheckAdUnitRequested())
     {
         MoPubUnityEditor.WaitOneFrame(() => {
             var json = MoPubUnityEditor.ArgsToJson(AdUnitId);
             MoPubManager.Instance.EmitInterstitialShownEvent(json);
             MoPubUnityEditor.WaitOneFrame(() => {
                 MoPubManager.Instance.EmitInterstitialDismissedEvent(json);
                 MoPubUnityEditor.SimulateApplicationResume();
             });
         });
     }
 }
示例#5
0
 internal override void ShowRewardedVideo(string customData)
 {
     if (CheckAdUnitRequested())
     {
         MoPubUnityEditor.WaitOneFrame(() => {
             var json = MoPubUnityEditor.ArgsToJson(AdUnitId);
             MoPubManager.Instance.EmitRewardedVideoShownEvent(json);
             MoPubUnityEditor.WaitOneFrame(() => {
                 MoPubManager.Instance.EmitRewardedVideoClosedEvent(json);
                 MoPubUnityEditor.SimulateApplicationResume();
             });
         });
     }
 }
示例#6
0
 internal override void ForceRefresh()
 {
     MoPubUnityEditor.WaitOneFrame(() => {
         MoPubManager.Instance.EmitAdLoadedEvent(MoPubUnityEditor.ArgsToJson(AdUnitId, "320", "50"));
     });
 }