is admob interstitial ad is allowed on exit?

I want to change exit ad network in my app.
please let me know if admob allows it on exit.

I did not find any tutorial so far which explain admob interstitial on exit.
all shows interstitial ad integration within app only.

That is a good question. I would say yes, since the admob sdk itself offers a way to display the interstitial when the application leaves. When you implement the adlistener, by default you have a “public void onLeaveApplication(Ad arg0)”.
Now is it in contradiction with admob guidelines?

onLeaveApplication is called when the user clicks the ad and leaves the app (to the web browser for example), it has nothing to do with Exit Ad.

well i tried following, ad is shown on exit after 5-6 seconds of app was closed.
i do not think it should take that much time. i gave proper time for the app to load the interstitial ad of 10-15 seconds.
it should show as we press the back button. but it is showing after 5-6 seconds beyond the scope of app. :frowning:
any suggestions??


@Override
	public void onBackPressed() {
		Toast.makeText(this, "back Pressed", Toast.LENGTH_SHORT).show();		
		textView.setText("Loading Intertitial Ads");
		AdRequest adr = new AdRequest();		
		interstitialAds.loadAd(adr);
		
	    super.onBackPressed();
	}

If the user closes the app from a menu, you could display the ad when he comes back to the menu before exiting ?

You’re right, my mistake

If the user closes the app from a menu, you could display the ad when he comes back to the menu before exiting ?

Most of the users exit the application by pressing BACK button continuously.
I want to display exit ad when user press back button on main activity.

Is there any way you developers tried to achieve this??
so far i am using StartApp ad network for exit ads, it works from onBack(). followiing is the code snippet


@Override
	public void onBackPressed() {
	    startAppAd.onBackPressed();
	    super.onBackPressed();
	}

is there any scope.of using interstitial ad within App?

i have 3 activities in my App.
usually interstitial ads are shown.in Games when some stage is clear.

where i should use it in App without spoiling user experience??

Hi may i know if u will considering try other network ?

as of now only thinking of admob interstitial. do not want to take risk with others as i heard lots in here.

admob is safer and longer option

please suggest me the situation where i can show the intertitial ad in my 3 activity App. admob does not work on exit.
Or intertitial ads can only be used in Games?

i will preffer to use admob intertitial ad as exit ad or within app.

GO SMS Pro is a relatively popular app and has admob interstitials for exit ads so it should be possible and allowed. https://play.google.com/store/apps/details?id=com.jb.gosms

neither onDestroy() nor onBack() is workinf for me. searched on stackoverflow anfmd google as well. did not find anything relevant :frowning:

dunno what to do :frowning:

You shouldn’t load the ad on back pressed. You should load the ad in onCreate, or sometime way before they exit the app. Then call the interstitial.show() in the onBackPressed(). You can also check: if (interstitial.isReady()) interstitial.show();

@XdebugX
Saw your apps, they are nice with good rating.

Thanks for you suggestion, now i am loading the ad in the beginning and showing at onBack()
its shown without any Delay as user press the Back button on main activity. it does not take time to show as it was previously.
I achieved this with following code. its working fine. Please do let me know if there is any improvement need to do.



import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.google.ads.Ad;
import com.google.ads.AdListener;
import com.google.ads.AdRequest;
import com.google.ads.AdRequest.ErrorCode;
import com.google.ads.InterstitialAd;

public class InterstitialsAdsExampleActivity extends Activity implements	AdListener 
{	
	
	//----------Exit Ad----------------------------------
	private InterstitialAd interstitialAds = null;
	AdRequest adr;
	//----------Exit Ad----------------------------------
	
	
	//----------Exit Ad----------------------------------
	@Override
	public void onBackPressed() 
	{		
		if(interstitialAds.isReady()) 
		interstitialAds.show();		
	    super.onBackPressed();
	}
	//----------Exit Ad----------------------------------
	
	
	@Override
	public void onCreate(Bundle savedInstanceState) 
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
				
		//----------Exit Ad----------------------------------
		this.interstitialAds = new InterstitialAd(this, "Published-Id");
		this.interstitialAds.setAdListener(this);
		adr = new AdRequest();	
		interstitialAds.loadAd(adr);
		//----------Exit Ad----------------------------------		
			
	}


	@Override
	public void onDismissScreen(Ad arg0) 
	{
		// TODO Auto-generated method stub
	}

	@Override
	public void onFailedToReceiveAd(Ad ad, ErrorCode error) 
	{
		String message = "Load Ads Failed: (" + error + ")";
		Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
	}

	@Override
	public void onLeaveApplication(Ad arg0) 
	{
		// TODO Auto-generated method stub
	}

	@Override
	public void onPresentScreen(Ad arg0) 
	{
		// TODO Auto-generated method stub
	}
	
	@Override
	public void onReceiveAd(Ad arg0) 
	{
		if (interstitialAds.isReady()) 
		{
			//interstitialAds.show();
			Toast.makeText(this, "Ad received, Shown on BACK", Toast.LENGTH_SHORT).show();
		} 
		else 
		{
		    Toast.makeText(this, "Interstitial ad was not ready to be shown.", Toast.LENGTH_SHORT).show();
		}
	}
}

does this work or is it against google policy

Only thing I would change is also close your app on back press after you show the ad. Like this:

//----------Exit Ad----------------------------------
@Override
public void onBackPressed()
{
if(interstitialAds.isReady())
interstitialAds.show();
finish();
super.onBackPressed();
}
//----------Exit Ad----------------------------------

As far as I know it’s ok with policy. I’ve had no trouble with it.

yes i downloaded your app it works fine :slight_smile:

What would folks here say the revenue is from the admob-interstitial-on-exit vs. the banner revenue.

That is, what is the ratio.

I am using AppBrain interstitial-on-exit (which only shows the AppBrain AppWall once every 3 days etc.) - and that earns me about 1/10 of what the banner and full-screen interstitials that are shown while the app is in use.

I am assuming with admob-interstitial-on-exit the revenue would be more (because you are showing the ad everytime you exit the app).