AdMob & cordova
Posted: Sat Aug 25, 2018 12:12 pm
Hi people
Somebody please tell me what I'm doing wrong here in this code?
Why I'm still getting this error? I just wanna compile it to an android not iOS
SpiderBasic 2.20 (x86) - Windows 10
__________________________
|SpiderBasic x |
|(X) iOS App build failed. |
| |
| [OK] |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Anyone? falsam? Peter? Can you guys please gimme a hand?
Thx in advance
Somebody please tell me what I'm doing wrong here in this code?
Why I'm still getting this error? I just wanna compile it to an android not iOS
SpiderBasic 2.20 (x86) - Windows 10
__________________________
|SpiderBasic x |
|(X) iOS App build failed. |
| |
| [OK] |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Code: Select all
EnableExplicit
Import "cordova platform remove ios -g --save" ; Trying to remove iOS platform
EndImport
Import "cordova platform update android -g --save"
EndImport
Import "cordova plugin add cordova-plugin-admobpro"
EndImport
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Procedure AdMob_show()
! if(AdMob) AdMob.showInterstitial();
EndProcedure
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Procedure AdMob_init()
! if(AdMob) AdMob.prepareInterstitial( {adId:admobid.interstitial, autoShow:false} );
! isInterstitialReady( function(ready){ if(ready){ adm_show() } });
EndProcedure
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Procedure Main()
OpenWindow( 0, #PB_Ignore, #PB_Ignore, #PB_Ignore, #PB_Ignore, "Admob", #PB_Window_Background )
AdMob_init()
EndProcedure
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;{
Main()
;}
Thx in advance