Rishabh Agrawal
Rishabh Agrawal

Reputation: 901

Admob Interstitial Are Showing After App Close

I am just implementing admob on my one android application.I am requesting to admob for show interstitial ads on app menu screen .But on that time if i exit from the application & admob request is not received yet due to slow internet connection.So admob are showing interstitial after some time on my phone screen. Is this google ad policy violation ?? .Because admob not give any method for stop interstitial ads (Google Product) if it is not received yet.

Upvotes: 3

Views: 3678

Answers (2)

Sateesh Reddy
Sateesh Reddy

Reputation: 21

<activity
android:name="com.google.android.gms.ads.AdActivity"
android:noHistory="true"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|
uiMode|screenSize|smallestScreenSize" />

Just add android:noHistory="true" in the manifest file it should work.

Upvotes: 1

SuperFrog
SuperFrog

Reputation: 7674

You can call finish on the activity, if possible.

If not, why not set a flag using onPause or onStop events, check this flag before calling show () on the interstitial.

Upvotes: 1

Related Questions