com.google.ads.AdListener Java Examples

The following examples show how to use com.google.ads.AdListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GodotAdMob.java    From godot_modules with MIT License 6 votes vote down vote up
public void ShowInterstitialUIThread()
{
	if (initialized)
	{
		// Create ad request
		AdRequest adRequest = new AdRequest();

		// Begin loading your interstitial
		interstitial.loadAd(adRequest);

		// Set Ad Listener to use the callbacks below
		interstitial.setAdListener((AdListener) this);
		
	    	adReceived = false;
	    	screenDismissed = false;
	    	failedToReceiveAd = false;
	    	applicationLeaved = false;
	    	presentScreen = false; 	        
		
		Log.d("godot", "AdMob: Show Interstitial");
	}
	else
	{
		Log.e("godot", "AdMob: Calling \"ShowInterstitial()\" but AdMob not initilized");
	}
}