Almora Well-Known Member Licensed User Longtime User Mar 30, 2017 #1 Hello to everyone How can I show ads when I exit the app.. I tried it but it did not work. B4X: Expand Collapse Copy Private lAd As lnterstitialAd ........ Sub exitbutton_Click 'Exit from application if lAd.show Then ExitApplication EndSub
Hello to everyone How can I show ads when I exit the app.. I tried it but it did not work. B4X: Expand Collapse Copy Private lAd As lnterstitialAd ........ Sub exitbutton_Click 'Exit from application if lAd.show Then ExitApplication EndSub
Erel B4X founder Staff member Licensed User Longtime User Mar 30, 2017 #2 You should show the ad and then when the ad is dismissed (AdClosed event) call Activity.Finish. Upvote 0
Almora Well-Known Member Licensed User Longtime User Mar 30, 2017 #3 B4X: Expand Collapse Copy Sub exitbutton_Click 'Exit from application If IAd.Ready Then IAd.Show End Sub Sub IAD_AdClosed ExitApplication End Sub (AdClosedevent) it works with. But when the internet was closed I could not get out of practice. While it is connected to the internete. If there is no internet, there is no exit. Upvote 0
B4X: Expand Collapse Copy Sub exitbutton_Click 'Exit from application If IAd.Ready Then IAd.Show End Sub Sub IAD_AdClosed ExitApplication End Sub (AdClosedevent) it works with. But when the internet was closed I could not get out of practice. While it is connected to the internete. If there is no internet, there is no exit.
dibb3386 Member Licensed User Longtime User Mar 30, 2017 #4 Check the wifi is connected first then show IAd.Ready, just posted this link in another post for someone....see here https://www.b4x.com/android/forum/threads/utility-code-getwifiname.26174/#post151429 Upvote 0
Check the wifi is connected first then show IAd.Ready, just posted this link in another post for someone....see here https://www.b4x.com/android/forum/threads/utility-code-getwifiname.26174/#post151429
Computersmith64 Well-Known Member Licensed User Longtime User Mar 31, 2017 #5 Bear in mind that if you are using AdMob, it is against Google's policies to show ads on app exit & you might have issues with your AdMob account if you do so... - Colin. Upvote 0
Bear in mind that if you are using AdMob, it is against Google's policies to show ads on app exit & you might have issues with your AdMob account if you do so... - Colin.
Almora Well-Known Member Licensed User Longtime User Mar 31, 2017 #6 Computersmith64 said: Bear in mind that if you are using AdMob, it is against Google's policies to show ads on app exit & you might have issues with your AdMob account if you do so... - Colin. Click to expand... I did not know that. thanks. I'm using AdMob. Upvote 0
Computersmith64 said: Bear in mind that if you are using AdMob, it is against Google's policies to show ads on app exit & you might have issues with your AdMob account if you do so... - Colin. Click to expand... I did not know that. thanks. I'm using AdMob.
Computersmith64 Well-Known Member Licensed User Longtime User Apr 1, 2017 #7 Almora said: I did not know that. thanks. I'm using AdMob. Click to expand... No worries. You might find this link useful -> https://support.google.com/admob/answer/2753860?hl=en Have a look at the Ad Placement section... - Colin. Upvote 0
Almora said: I did not know that. thanks. I'm using AdMob. Click to expand... No worries. You might find this link useful -> https://support.google.com/admob/answer/2753860?hl=en Have a look at the Ad Placement section... - Colin.
Almora Well-Known Member Licensed User Longtime User Apr 1, 2017 #8 Reasons for interstitial infringement .. https://support.google.com/admob/answer/6066980?hl=en&ref_topic=2745287 Upvote 0
Reasons for interstitial infringement .. https://support.google.com/admob/answer/6066980?hl=en&ref_topic=2745287