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

mir007

  • Posts: 42
I'm having a little bit of an issue with the  admob extension on Android. I'm using a banner ad, on the bottom if that matters, and when the game  loses focus the ad disappears. For example, when I go to see another program and come back the ad is gone. And it won't come back anymore in the places I have a SHOW AD.

Anyone?
My Ludum Dare 29 entry: Bone Up


VashTS

  • Posts: 43
I'm having a little bit of an issue with the  admob extension on Android. I'm using a banner ad, on the bottom if that matters, and when the game  loses focus the ad disappears. For example, when I go to see another program and come back the ad is gone. And it won't come back anymore in the places I have a SHOW AD.

Anyone?

According to what I've read in this topic, it's a known issue and has no fix at the moment. :(
It also happens to me with my Motorola Moto G. The thing is, in my case at least, it only happens when tapping the 'Back' button. With the 'Home' button there is no malfunction.

By the way, thanks Abliblablobla for this extension, it's great :D

letmethink

  • *
  • Posts: 2545
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

What I did with one of my games was I had 2 duplicated title screens, one that initialised all the variables and one you returned to when returning to the main menu.
~Letmethink

mir007

  • Posts: 42
According to what I've read in this topic, it's a known issue and has no fix at the moment. :(
It also happens to me with my Motorola Moto G. The thing is, in my case at least, it only happens when tapping the 'Back' button. With the 'Home' button there is no malfunction.

By the way, thanks Abliblablobla for this extension, it's great :D

Okay, thanks for the answer! I tried to work around, but didn't manage, so I changed my ads to interstitials instead. They fit my design better anyway.

And I agree, great extension!
My Ludum Dare 29 entry: Bone Up


mir007

  • Posts: 42
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

What I did with one of my games was I had 2 duplicated title screens, one that initialised all the variables and one you returned to when returning to the main menu.

I did it so that there is a when created block in the main menu page. It has an if-statement in it that asks if a boolean banner initialized is not true, then initialize admob ... after the initialization there's a set boolean banner to false. So the next time it comes in, the boolean banner is false and it doesn't go in.
My Ludum Dare 29 entry: Bone Up


VashTS

  • Posts: 43
Are interstitials supposed to pause the game when showed?

Looks like I can't get them to work xD
I want them to fire after tapping a Replay button and before reloading the scene.
I initialize them just once, and when the Replay button is pressed I use the load and show blocks just before reloading, but when testing on my phone nothing happens, it reloads scene without showing ad. What am I doing wrong?

ahmadoweda

  • Posts: 310
I've a question related to admobs but not to the extension, when my admob account opens it stuck on "loading" and shows nothing but white screen, this happens to me from 12 hours..anybody experienced this issue? does this mean that my account has been closed or something?

Neotron

  • Posts: 475
I've a question related to admobs but not to the extension, when my admob account opens it stuck on "loading" and shows nothing but white screen, this happens to me from 12 hours..anybody experienced this issue? does this mean that my account has been closed or something?

No, don't worry! I am sure you use Chrome browser. Chrome has an unique "feature" to mess up cache.
So, I recommend to try access to your account with Firefox or clear all gathered data from Chrome (that is somehow not always working:P).

ahmadoweda

  • Posts: 310
I had that issue with chrome, firefox, explorer and my mobile web browser too! I didn't know why but it worked today anyways! thank you :)

Kazetoon

  • *
  • Posts: 556
Is anyone else having an issue where you can only show 1 full screen ad per session on iOS?
Little Drop - Try it out!
     
iphone/ipad Android
Newgrounds Stencyl Arcade Kongregate
Developer Website

Abliblablobla

  • *
  • Posts: 524
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

What I did with one of my games was I had 2 duplicated title screens, one that initialised all the variables and one you returned to when returning to the main menu.

I did it so that there is a when created block in the main menu page. It has an if-statement in it that asks if a boolean banner initialized is not true, then initialize admob ... after the initialization there's a set boolean banner to false. So the next time it comes in, the boolean banner is false and it doesn't go in.

Hey mir007, I think it is easier to have a custom loading scene so you don't have use more and more boolean attributes when you have more things to initialize. How are you using the boolean attribute for the interstitials? Are you sure it is working? If you have an actor or a scene attribute, it will be reset to its default value when you come back to the scene where you are using that actor or scene. If you are using a game attribute, it won't be reset when you come back to your starting scene, but at some point in your game you will have to save all the values of the game attributes, including the game attribute you used to initialize the interstitials. For example if you use a game attribute called "Initialize AdMob?" and set its default value to "true", the first time you load your starting scene you will initialize the interstitials and set the attribute to "false". Then the users sets a high score and you save the game. The user quits the game. The users starts to play your game again and the game loads the first scene (your starting scene), but it won't initialize the interstitials because "Initialize AdMob?" is already "false"... (You saved the game, so you saved all the values of the game attributes, including "Initialize AdMob?"). If you have a different method, many users here would be happy to learn something more!
.: BuruBuru :.

Abliblablobla

  • *
  • Posts: 524
Are interstitials supposed to pause the game when showed?

Looks like I can't get them to work xD
I want them to fire after tapping a Replay button and before reloading the scene.
I initialize them just once, and when the Replay button is pressed I use the load and show blocks just before reloading, but when testing on my phone nothing happens, it reloads scene without showing ad. What am I doing wrong?

No, the game won't be paused when there is an interstitial. If you have a "Game Over" screen, you can display an interstitial before showing the "Game Over" screen. If you want to display an interstitial just after a user pressed the replay button, you can display it at the beginning of the next scene instead of displaying it at the end of the current scene. If you do so, remember to pause the game.
.: BuruBuru :.

Abliblablobla

  • *
  • Posts: 524
I've a question related to admobs but not to the extension, when my admob account opens it stuck on "loading" and shows nothing but white screen, this happens to me from 12 hours..anybody experienced this issue? does this mean that my account has been closed or something?

Sometimes Google's servers are down for maintenance, nothing to worry about. I am not sure, but I think that Google would inform you if they closed your account.
.: BuruBuru :.

Abliblablobla

  • *
  • Posts: 524
Is anyone else having an issue where you can only show 1 full screen ad per session on iOS?

Did you include Google AdSense inventory? (This is something you have to do from the AdMob site)
I think I was able to display more than one interstitial per session, but I will have a look at this issue (?) whenever I start to work on the new version of this extension (probably early this summer since I don't have much spare time at the moment).
.: BuruBuru :.

Kazetoon

  • *
  • Posts: 556
Is anyone else having an issue where you can only show 1 full screen ad per session on iOS?

Did you include Google AdSense inventory? (This is something you have to do from the AdMob site)
I think I was able to display more than one interstitial per session, but I will have a look at this issue (?) whenever I start to work on the new version of this extension (probably early this summer since I don't have much spare time at the moment).
I tried looking for something that has to do with AdSense inventory but only found something that has to do with allowed and blocked ads, is that it? Just to clarify, what I meant by only 1 full screen ad is if I use the show ad block and close the ad, the show ad block doesn't do anything in the next scene.

« Last Edit: May 20, 2014, 04:04:38 pm by Kazetoon »
Little Drop - Try it out!
     
iphone/ipad Android
Newgrounds Stencyl Arcade Kongregate
Developer Website