About us Contact us privacy policy

Sunday, April 7, 2019

SHOW INTERSTITIAL ON START && AT INTERVAL

adsby101
if (mInterstitialAd.isLoaded()) {
    if (check()) {
        mInterstitialAd.show();
        mInterstitialAd.setAdListener(new AdListener() {
            @Override            public void onAdClosed() {
                super.onAdClosed();
                requestNewInterstitial();





++++++++++++++++++++++
if (mInterstitialAd.isLoaded()) {
    mInterstitialAd.show();

    mInterstitialAd.setAdListener(new AdListener() {
        @Override        public void onAdClosed() {
            super.onAdClosed();
            //  requestNewInterstitial();        }
    });
}
++++++++++++++++++++++


if (clickPosition % 2 == 0) {
    if (mInterstitialAd.isLoaded()) {
        mInterstitialAd.show();
mInterstitialAd.setAdListener(new AdListener() {
            @Override            public void onAdClosed() {
                super.onAdClosed();
                requestNewInterstitial();
} clickPosition++; }






++++++++++++++++++++++++++++++++++++++++
mInterstitialAd = new InterstitialAd(this);
mInterstitialAd.setAdUnitId(getString(R.string.ad_unit_id_interstitial));
mInterstitialAd.loadAd(new AdRequest.Builder().build());


mInterstitialAd.setAdListener(new AdListener() {
    @Override    public void onAdLoaded() {

        if (mInterstitialAd.isLoaded()) {
            mInterstitialAd.show();
        }
    }

    @Override    public void onAdClosed() {
        super.onAdClosed();
        //mInterstitialAd.loadAd(new AdRequest.Builder().build());        //requestNewInterstitial();    }

});

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



mInterstitialAd = new InterstitialAd(this);
mInterstitialAd.setAdUnitId(getString(R.string.admob_interstitial_id));

AdRequest adRequest = new AdRequest.Builder()
        .build();
easyRatingDialog = new EasyRatingDialog(this);


// Load ads into Interstitial AdsmInterstitialAd.loadAd(adRequest);

mInterstitialAd.setAdListener(new AdListener() {
    public void onAdLoaded() {
        showInterstitial1();
    }
});
adsby102

No comments:

Post a Comment