@Override public STATUS showFullscreen(int step, String tag) { oad.getActivity() .runOnUiThread( new Runnable() { @Override public void run() { if (InterstitialAd.isAvailable()) { InterstitialAd.display(oad.getActivity()); InterstitialAd.setOnStatusListener(listener); } } }); return OpenAdAdapter.STATUS.CALLBACK; }
@Override public void init(OpenAdAdapter oad, JSONObject o1) { this.oad = oad; id = o1.optString("id"); HeyzapAds.start(id, oad.getActivity()); }