Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Admob

Cesar_S_
Beginner
812 Views

Buenas , tengo un problema con el xdk mi version es 2170 , Yo hago juegos con construct 2 , exporte el juego a cordova para poder compilarlo a android , trate de agregar el plugin de admob en la parte de third-party plugins colocando esto Name: AdMob Plugin 
Plugin ID: com.cranberrygame.phonegap.plugin.ad.adm­ob y marcando con la flecha el cuadro de abajo , hago todo bn , al momento de colocar el build lo hagcon build crosswalk , hasta que llego a la parte de build now , doy click y me aparece esto : the build failed - An error ocurred while building the application .Verify your build assets are correct an try again 

ayuda por favor.

0 Kudos
2 Replies
Anusha_M_Intel1
Employee
812 Views

Translation of your post:

Hi, I have a problem with the XDK my version is 2170 , I make games with construct 2 export the game to Cordova to compile a android , try to add the plug- admob on the part of third- party plugins placing this Name : AdMob Plugin

Plugin ID : com.cranberrygame.phonegap.plugin.ad.admob and arrow marking the box below , do everything bn , when placing the build hagcon build the crosswalk , until I get to the part of build now , I click and I get this : the build failed - an error ocurred while building the application .Verify build your assets are correct an try again

please help.

0 Kudos
Anusha_M_Intel1
Employee
812 Views

The cranberry admob plugin is part of our featured plugins. You do not have to import is a third party plugin. Just select it in the projects tab:

(see attached image for screenshot)

Alternatively, there is a sample illustrating Admob use that ships with the XDK. 

Start new project -> Samples and Demos -> General -> HTML5+Cordova -> Hello Admob. 

It uses the floatinghotspot plugin which is equally popular as the cranberry one. Import it as a third party plugin and it should work. I just recently tested that sample. There is information on how to include third party plugins in this article: https://software.intel.com/en-us/xdk/docs/adding-third-party-plugins-to-your-xdk-cordova-app

 

 

0 Kudos
Reply