示例#1
0
        public static InterstitialAd Create()
        {
            if (!DDNASmartAds.Instance.IsInterstitialAdAllowed(null)) return null;

            var instance = new InterstitialAd();
            instance.Parameters = new JSONObject();
            return instance;
        }
示例#2
0
        public static InterstitialAd Create(Engagement engagement)
        {
            if (!DDNASmartAds.Instance.IsInterstitialAdAllowed(engagement)) return null;

            JSONObject parameters = null;

            if (engagement != null && engagement.JSON != null) {
                if (engagement.JSON.ContainsKey("parameters")) {
                    parameters = engagement.JSON["parameters"] as JSONObject;
                }
            }

            var instance = new InterstitialAd();
            instance.Parameters = parameters ?? new JSONObject();

            return instance;
        }