[iOS & Android] AdMob Extension [2.1] [DEPRECATED]

id8games

  • Posts: 205
Thanks Abliblablobla,
Unfortunately I cannot wait till Summer, as I am trying to finalise a few things before I submit my game to the AppStore and Google Play in a few days.

I have found a temporary workaround and I thought I would share it here, until the proper events are implemented.

I simply used "when the game loses focus" event.  So as soon as the player clicks on the Admob Ad, it pauses the game by displaying a big pause button in the Scene. When the player returns to the game, they simply click on this button and the game resumes.

I have tested this on an iphone5, ipad3 and sansung galaxy s3 and works like a charm.

bonzero

  • Posts: 488
apparently there's a new version of the SDK and it's required to display full-screen ads, is there a chance of having this valuable extension updated with that SDK?

...[4648:70b] <Google:HTML> Google Mobile Ads SDK: You are currently using 6.6.0 of the SDK. A new version, 6.9.2, is available at http://goo.gl/Zc0BYt . Please consider updating your SDK to get the latest features and bug fixes

Abliblablobla

  • *
  • Posts: 524
Thanks Abliblablobla,
Unfortunately I cannot wait till Summer, as I am trying to finalise a few things before I submit my game to the AppStore and Google Play in a few days.

I have found a temporary workaround and I thought I would share it here, until the proper events are implemented.

I simply used "when the game loses focus" event.  So as soon as the player clicks on the Admob Ad, it pauses the game by displaying a big pause button in the Scene. When the player returns to the game, they simply click on this button and the game resumes.

I have tested this on an iphone5, ipad3 and sansung galaxy s3 and works like a charm.

Thanks for sharing!
.: BuruBuru :.

Abliblablobla

  • *
  • Posts: 524
apparently there's a new version of the SDK and it's required to display full-screen ads, is there a chance of having this valuable extension updated with that SDK?

...[4648:70b] <Google:HTML> Google Mobile Ads SDK: You are currently using 6.6.0 of the SDK. A new version, 6.9.2, is available at http://goo.gl/Zc0BYt . Please consider updating your SDK to get the latest features and bug fixes

There is a new AdMob SDK for iOS, but you don't need it if you want to use interstitial/full-screen ads. The current version (6.6.0) is ok.
.: BuruBuru :.

Tobben2111

  • Posts: 185
Quote
Are you testing on an iOS device or on an Android device? I will take a look at these issues and I'll try to fix them in time for the next version of this extension that will be out as soon as possible (probably early this summer).

Android device :) tested on ZTE blade 3, nexus 7 and nexus 10.

Did a test again and same problem. I did remove the possible for ads when scene started, everything runes fine. But when I press to start my helicopter to move I trigger remove ads and then my game crash. If I let ads spawn when scene start, then my game want crash from "remove ads"

bonzero

  • Posts: 488
apparently there's a new version of the SDK and it's required to display full-screen ads, is there a chance of having this valuable extension updated with that SDK?

...[4648:70b] <Google:HTML> Google Mobile Ads SDK: You are currently using 6.6.0 of the SDK. A new version, 6.9.2, is available at http://goo.gl/Zc0BYt . Please consider updating your SDK to get the latest features and bug fixes

There is a new AdMob SDK for iOS, but you don't need it if you want to use interstitial/full-screen ads. The current version (6.6.0) is ok.

I had the wrong package name for the app, that's why I couldn't see them, I can see them now, thanks for your help

ManlyMouse

  • Posts: 144
I specify banner to appear on TOP but admob appears on the bottom :(
did anyone solve this?

Same thing is happening for me.

Also i believe this issue has been brought up but not answered: why does admob make the app crash more in landscape format than portrait? For mine it'll maybe crash 1 out of 10 times in portrait, but 9 times out of 10 in landscape.
I know more about Stencyl now.

Abliblablobla

  • *
  • Posts: 524
Quote
Are you testing on an iOS device or on an Android device? I will take a look at these issues and I'll try to fix them in time for the next version of this extension that will be out as soon as possible (probably early this summer).

Android device :) tested on ZTE blade 3, nexus 7 and nexus 10.

Did a test again and same problem. I did remove the possible for ads when scene started, everything runes fine. But when I press to start my helicopter to move I trigger remove ads and then my game crash. If I let ads spawn when scene start, then my game want crash from "remove ads"

Thanks for the info! I will take a closer look at it as soon as possible.
.: BuruBuru :.

Abliblablobla

  • *
  • Posts: 524
apparently there's a new version of the SDK and it's required to display full-screen ads, is there a chance of having this valuable extension updated with that SDK?

...[4648:70b] <Google:HTML> Google Mobile Ads SDK: You are currently using 6.6.0 of the SDK. A new version, 6.9.2, is available at http://goo.gl/Zc0BYt . Please consider updating your SDK to get the latest features and bug fixes

There is a new AdMob SDK for iOS, but you don't need it if you want to use interstitial/full-screen ads. The current version (6.6.0) is ok.

I had the wrong package name for the app, that's why I couldn't see them, I can see them now, thanks for your help

No problem at all.
For everyone who is wondering why this extension uses an "old" version of the AdMob SDK for iOS the reason is that the current SDK version used in this extension is not that old. Moreover the latest version only comes with some bug fixes and no new interesting features. The new version of this extension will probably use the latest SDK, but I haven't even started to work on it because right now I have to study for my university exams.
.: BuruBuru :.

Abliblablobla

  • *
  • Posts: 524
I specify banner to appear on TOP but admob appears on the bottom :(
did anyone solve this?

Same thing is happening for me.

Are you using this extension or are you using the built in Stencyl blocks? The code should be the same, but I am trying to understand why some users have no problems with top banners while others cannot display banners at the top of the screen...

Also i believe this issue has been brought up but not answered: why does admob make the app crash more in landscape format than portrait? For mine it'll maybe crash 1 out of 10 times in portrait, but 9 times out of 10 in landscape.

Are you using a "hide banner" block before a "show banner" block? If so, maybe you are experiencing the same issue as Tobben2111. As I said above, I will take a closer look at this issue as soon as I can, but in the meanwhile try to use the same workaround used by Tobben2111 and check if it crashes again. 
.: BuruBuru :.

riki82

  • Posts: 325
I specify banner to appear on TOP but admob appears on the bottom :(
did anyone solve this?

Same thing is happening for me.

Are you using this extension or are you using the built in Stencyl blocks? The code should be the same, but I am trying to understand why some users have no problems with top banners while others cannot display banners at the top of the screen...

Also i believe this issue has been brought up but not answered: why does admob make the app crash more in landscape format than portrait? For mine it'll maybe crash 1 out of 10 times in portrait, but 9 times out of 10 in landscape.

Are you using a "hide banner" block before a "show banner" block? If so, maybe you are experiencing the same issue as Tobben2111. As I said above, I will take a closer look at this issue as soon as I can, but in the meanwhile try to use the same workaround used by Tobben2111 and check if it crashes again. 


I confirm that if you use "hide banner" in scene before "show banner" in another scene, the app crashes ;) ONLY ON ANDROID
On iOS works fine

« Last Edit: May 16, 2014, 10:36:30 pm by riki82 »

ManlyMouse

  • Posts: 144
Thanks Abliblablobla, you're a godsend. I'm not using hide banner, in fact the game's only scene has 1 event.

When created-->Show admob smart banner with ad unit ------- at top.
I know more about Stencyl now.

Tharaa

  • Posts: 125
hey guys
how you handle the initialize admob fullscreen ad block?
i mean if you just load it once if you start the game?



have have this codeline now in my mainmenue
so it initialize the fullscreen ad at the start
but every time i switch back to the main menue it initialize again

so how you handle this?

i just can do an extra scene before the mainmenue for initialize
and you cant switch to this scene
but i think this make s my game a lil bit look weird

FortySe7en

  • Posts: 304
I have a 'loading scene' that's black and lasts a second (initializes everything and switches to main menu), it's not bad at all.

Abliblablobla

  • *
  • Posts: 524
@riki82, thanks for confirming the issue!
@ManlyMouse, you're welcome!

hey guys
how you handle the initialize admob fullscreen ad block?
i mean if you just load it once if you start the game?



have have this codeline now in my mainmenue
so it initialize the fullscreen ad at the start
but every time i switch back to the main menue it initialize again

so how you handle this?

i just can do an extra scene before the mainmenue for initialize
and you cant switch to this scene
but i think this make s my game a lil bit look weird

FortySe7en's suggestion is a good one.

I have a 'loading scene' that's black and lasts a second (initializes everything and switches to main menu), it's not bad at all.

Even when you have a very simple game, you want to initialize different things once in a user session. For example you want to load your game attributes, initialize some attributes to specific values, initialize AdMob banners or/and interstitials, load specific atlases depending on different situations (e.g. phone vs tablet) etc etc. Creating this type of scene is the easiest way to accomplish this kind of things. It doesn't have to be a black scene, you can also have a background only scene or even an intro scene, it's up to you!
.: BuruBuru :.