Just starting out? Need help? Post your questions and find answers here.
User avatar
C.K.
 
Posts: 8
Joined: Thu Apr 26, 2018 9:51 am

AdMob & cordova

by C.K. 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]  |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

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()
;}


Anyone? falsam? Peter? Can you guys please gimme a hand?
Thx in advance
User avatar
Peter
 
Posts: 553
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

Re: AdMob & cordova

by Peter Sat Aug 25, 2018 3:07 pm

just for clarification:

You clicked the button "Create App" in the tab "Android"?

Image

Greetings ... Peter
User avatar
C.K.
 
Posts: 8
Joined: Thu Apr 26, 2018 9:51 am

Re: AdMob & cordova

by C.K. Sat Aug 25, 2018 3:31 pm

Peter wrote:just for clarification:

You clicked the button "Create App" in the tab "Android"?

Image

Greetings ... Peter


Sure... I dont see what can be wrong
It start compiling and about 60% rises that error
User avatar
Peter
 
Posts: 553
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

Re: AdMob & cordova

by Peter Sat Aug 25, 2018 3:37 pm

C.K. wrote:Sure...


I asked because I was surprised there would be such a dialogue:

C.K. wrote:__________________________
|SpiderBasic                  x |
|(X) iOS App build failed. |
|                                           |
|                                 [OK]  |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯


that has to be answered by people who have built an app with cordova - plugins before.

Greetings ... Peter
User avatar
C.K.
 
Posts: 8
Joined: Thu Apr 26, 2018 9:51 am

Re: AdMob & cordova

by C.K. Sat Aug 25, 2018 3:46 pm

Peter wrote:
C.K. wrote:Sure...


I asked because I was surprised there would be such a dialogue:

C.K. wrote:__________________________
|SpiderBasic                  x |
|(X) iOS App build failed. |
|                                           |
|                                 [OK]  |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯


that has to be answered by people who have built an app with cordova - plugins before.

Greetings ... Peter


Yep! I dont know why it rises that kind of error! When I tried "shake" and "camera" cordova plugins they worked fine... Thats hard to understand since I use the same strutcture for them like this one
But I thank you anyway, Peter! ;)

P.S.: And I hope you understand me, cause brazilian portuguese is my native language, I'm a very rusty in English! ;)
Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 1 guest