コード例 #1
0
        public void InterstitialAd(string e = "", Action<string> y = null)
        {

            // D/Reporo SDK(23735): Got:gif-239888-http://netdna.reporo.net/resources/images/reporoads/smrc/650c22aeab97.gif

            //             Unable to load configuration.
            // Smart Zones: null - Interstitial Zone: null - Domain: null
            // Fetching interstitial ad
            //479): START u0 {cmp=MikandiExample.Activities/com.reporo.android.ads.InterstitialAdActivity (has extras)} from pid 22861
            // Error fetching interstitial ad
            // java.lang.Exception: Interstitial zone not configured.
            //    at com.reporo.android.ads.k.a(Unknown Source)
            //    at com.reporo.android.ads.g.run(Unknown Source)
            //    at java.lang.Thread.run(Thread.java:856)
            //61): onInterstitialFailed

            var context = ThreadLocalContextReference.CurrentContext as CoreAndroidWebServiceActivity;


            var inAd = new InterstitialAd(context);
            inAd.setListener(new InterstitialAdListener
            {

                InterstitialRecieved =
                    x =>
                    {
                        inAd.showAd(context);
                    }
            });
            inAd.fetchNewAd(); //NOTE: Reporo SDK: pre-fecth ad


            //            Error fetching interstitial ad
            //java.lang.Exception: Invalid or no ad retured.
            //   at com.reporo.android.ads.k.a(Unknown Source)
            //   at com.reporo.android.ads.k.a(Unknown Source)
            //   at com.reporo.android.ads.g.run(Unknown Source)

            //            Error fetching interstitial ad
            //java.lang.ClassCastException: org.json.JSONArray cannot be cast to org.json.JSONObject
            //   at com.reporo.android.ads.k.a(Unknown Source)
            //   at com.reporo.android.ads.g.run(Unknown Source)
            //   at java.lang.Thread.run(Thread.java:856)


            //            D/Reporo SDK(23735): Smart Zones: null - Interstitial Zone: 9079 - Domain: 767a-6e78-7161-2e76.reporo.net
            //D/Reporo SDK(23735): Fetching interstitial ad
            //I/ActivityManager(  479): START u0 {cmp=MikandiExample.Activities/com.reporo.android.ads.InterstitialAdActivity (has extras)} from pid 23735
            //D/Reporo SDK(23735): Creating Interstitial Ad
            //D/Reporo SDK(23735): Unable to display insterstitial Ad null

        }