internal override void RequestInterstitialAd(string keywords = "", string userDataKeywords = "") { RequestAdUnit(); MoPubUnityEditor.WaitOneFrame(() => { MoPubManager.Instance.EmitInterstitialLoadedEvent(MoPubUnityEditor.ArgsToJson(AdUnitId)); }); }
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")); }); }
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(); }); }); } }
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(); }); }); } }
internal override void ForceRefresh() { MoPubUnityEditor.WaitOneFrame(() => { MoPubManager.Instance.EmitAdLoadedEvent(MoPubUnityEditor.ArgsToJson(AdUnitId, "320", "50")); }); }