[Updated to 1.1] Monetize your Android game with the AdMob extension!!!

mbuist

  • Posts: 252
I have installed it and it runs ok, but I noticed I look at the same ad over and over again. It is not changing the ad...


Is this normal?
Visit my arcade site - http://www.tincubegames.com/
Read all about my games at - http://www.tincubemedia.nl
Please follow Tincube Media on Facebook - http://www.facebook.com/tincubemedia

As a final touch.. GOD created the Dutch

MMWestern

  • Posts: 4
I removed the game folder in generated games folder and rebuilt. Seems to work as expected now. Thank you very much for a brill extension.

Jon

  • *
  • Posts: 17524
With AdWhirl on its way out (service to be discontinued by Google), I'll be switching over to this as the basis for our Android ads support.

sandsoftimer

  • Posts: 316
I've just started playing with Android and I am completely new to this mobile thing :)

Can I test whether the ads work if I'm just testing a game on my Android device from Stencyl?

It's not in the store yet, so I'm not sure whether it's possible.

I've tried "Test Game" with the Ads.initAdMod... line (with my id) and the game just hangs on compiling.

If I take this line out, the game compiles no prob.

I'm pretty sure, it's something I'm doing wrong lol.

Thank you in advance for any help and for the great extension!

i was also running with this problem. and found that if i try to copy and paste code

Ads.initAdmob("a1521315c217731",0);

from pdf then it convert into stencyl as

Ads.initAdmob(a15166ea78ce23b, 0);

that's why it is not working.... i putted this code by keyboard typing and got successful run.  8) 8) 8)
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

Abliblablobla

  • *
  • Posts: 524
Thank you sandsoftimer!

Now that I have some spare time, I am going to include blocks for this extension in order to avoid this kind of errors.
.: BuruBuru :.

sandsoftimer

  • Posts: 316
Nice to hear about that......... 8) 8) 8)
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

Jon

  • *
  • Posts: 17524
Just to outline some differences between the Stencyl version and the separate extension when our version comes.

- We're only supporting bottom center and top center positioning to keep it consistent with the iOS version. Through code, though, it should be possible to use those alternate positions should you need them.

- You'll input your AdMob Publisher ID inside Game Settings > Mobile > Monetization as well as the ad position.

- It follows from that that you will not have to make a code call to initialize the ad system. The initialization happens automatically the first time you call 'show ad'.


Jon

  • *
  • Posts: 17524
I've now switched the default ad support to AdMob in accordance with my post right above this one.

mbuist

  • Posts: 252
Nice, I presume this is only for android or for Ios aswell
Visit my arcade site - http://www.tincubegames.com/
Read all about my games at - http://www.tincubemedia.nl
Please follow Tincube Media on Facebook - http://www.facebook.com/tincubemedia

As a final touch.. GOD created the Dutch

Jon

  • *
  • Posts: 17524
Android only just like the original.

Abliblablobla

  • *
  • Posts: 524
That's what I call a great news! (Translated: If I understand correctly, I don't have to create blocks for this extension. I know that it takes just a few minutes, but I am just a bit lazy :P ).

Thank you Jon! I really appreciate your work!
.: BuruBuru :.

Jon

  • *
  • Posts: 17524
And thanks to you for putting the original extension together. You made it really easy for me to integrate by keeping things the same.

If you wish to extend or otherwise change the built-in extension, you're always welcome to edit and submit a patch that I can check in.

sandsoftimer

  • Posts: 316
great.... looks like stencyl solved all major problems.... almost 8) 8) 8)

now i think it will be awesome if android IAP & admob for iOS will be solved as extension.
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

mbuist

  • Posts: 252
great.... looks like stencyl solved all major problems.... almost 8) 8) 8)

now i think it will be awesome if android IAP & admob for iOS will be solved as extension.

I really think this is great. but indeed if this could be extended to IOS aswell then it will be perfect.

I like to keep all the ads in the same programm. In this case admob
Visit my arcade site - http://www.tincubegames.com/
Read all about my games at - http://www.tincubemedia.nl
Please follow Tincube Media on Facebook - http://www.facebook.com/tincubemedia

As a final touch.. GOD created the Dutch

runimals

  • Posts: 215
Great to see admob native support.

I´ve been checking today's update and some questions arise:

1) Why are Adwhirl libs still there?

2) Why are you using still old AdMob libs?
I'm using updated version 6.0 for a long time and all is working fine. I remember I had to update android sdk to android-13 version 3.2 and change build target to android-13 to avoid a compilation error, but now it works flawlessly. The old version fails frequently with some 4.1.X devices.

Another weird thing.
After doing some testing it seems admob ad is beeing shown from the beginning, without a "show ad".

Hope to help!