[TIS] Can't Use Admob with Mobile Game Kit

techmaster90

  • Posts: 26
Hello,

I am trying to use admob with the mobile game kit that I downloaded from http://theindiestation.com/
I went to the preloader and entered the app ID, and I also went to settings>Mobile>Monetization and entered my app ID in the Admob interstitial iOS key. But I keep getting 3 behavior errors. I attached a screen pic of the errors. I'm not sure what to do can someone please walk me through this?

Thanks,
Techmaster90



stefan

  • *
  • Posts: 2263
Have you enabled admob? I believe back when I made this kit admob was an extension.

techmaster90

  • Posts: 26
Yes I enabled admob. I went to Stencyl>Game Settings>Mobile>Monetization  and then enabled admob ads. I also tried enabling the Test Ads option but that didn't work either. I attached a screen pic of the log file after I tried testing the game.

techmaster90

  • Posts: 26
Also I don' t know if this makes a difference but Stencyl "upgraded" the Mobile game kit to work with version 4.1 as soon as I opened the kit.

techmaster90

  • Posts: 26
I also just created an admob for Android as well and I get the same error.

techmaster90

  • Posts: 26
Does anyone know why it won't work?

squeeb

  • Posts: 1617
It says failed building for flash...
Are you trying to make a mobile game and test in flash browser?
If so... use the wrapper block that says do only on mobile..  and put admob code in that wrapper...

techmaster90

  • Posts: 26
It says failed building for flash...
Are you trying to make a mobile game and test in flash browser?
If so... use the wrapper block that says do only on mobile..  and put admob code in that wrapper...

I'm not really using code I'm using the logic blocks. I don't really know how to code I just understand certain things. I'm not entirely sure what "blocks" I need to wrap.  Any suggestions TheIndieStation?

squeeb

  • Posts: 1617

Look in your screenshot of the error.. on the top... says failed to build flash.. means you tested on flash?
Am I correct? Did you hit test on flash.. if so.. itll make your game crash.  Unless you use the block above.. and select mobile instead of flash.. and place ADMOB code blocks in there... is your ios device attached and ready to test on?  Have you tested before on a device before putting in admob...
We need more info to help you

techmaster90

  • Posts: 26

Look in your screenshot of the error.. on the top... says failed to build flash.. means you tested on flash?
Am I correct? Did you hit test on flash.. if so.. itll make your game crash.  Unless you use the block above.. and select mobile instead of flash.. and place ADMOB code blocks in there... is your ios device attached and ready to test on?  Have you tested before on a device before putting in admob...
We need more info to help you


I have clicked Test Scene and also Test Game. I have not done test on flash. I have not tested using my iOS device i'm just using my desktop computer. I thought I could test it on my computer before testing on a iOS device. I'll try putting the code from the 3 error messages in the wrapper you suggested and see if it works.

techmaster90

  • Posts: 26
I just wanted to thank you all for the help so far. Its so hard to find specific help for this sort of thing. I'll keep trying and get back with you guys.

techmaster90

  • Posts: 26
I have a question. Is it necessary to have the Stencyl upgrade in order to test stuff with Admobs for iOS?