i can agree that the app end uncommon with using of adverts.
for a 1/10 second i got unknown instruction at 0 or something.
me have android 5.0.2, bad os version for moto g.
(the people do not want that a app stay alive after exit or close,
also if it is just in pause mode.)
i using this example, waiting until banner appear then click for end.
export for 2.3.1 + internet permissions
Setvirtualresolution(640,480)
SetClearColor (255, 250, 50 )
SetPrintColor (0,0,0)
//Advert- Device Specfic Set-up
//Here we use AdMob for Android Devices
//Firstly Obtain Unique Codes for each Application from here...
//http://www.google.de/ads/admob/?_adc=eu-de-ha-bk&gclid=COiSr_zimMUCFSkcwwodl74AiQ
//https://apps.admob.com/
device$=GetDeviceName()
//AdMob is/was currently supported by iOS and Android.
If Left(device$,7)="android"
SetAdMobDetails("ca-app-pub-..your number") //"UNIQUE_ADMOB_APP_CODE")
//Create and Position the Advert
CreateAdvert(0, 1, 2, 0)
//Make Advert Visible
SetAdvertVisible ( 1 )
//Reload/Refresh Advert, call occasionally
RequestAdvertRefresh()
EndIf
do
//print(device$)
//there is some seconds delay until it appear
Print ("Advert will appear at the bottom of the screen")
if GetPointerPressed() then exit
sync()
loop
deleteadvert()
end
AGK 108 (B)19 + AppGameKit V2 Beta .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)