AdMob ads showing only first time

xdan73

  • *
  • Posts: 5
Hi,

my problem is that ads will show, but only on first run of the game, When I exit game and run it again, ads do not show.  They will show only if I clear data of the game on android device, or if app crashes and I run it again.

I have had this issue with built-in solution and with AdMob extension.

Thanks for help!

Abliblablobla

  • *
  • Posts: 524
This issue should be solved in the AdMob extension 3.0 and the upcoming update to the built in AdMob support.
.: BuruBuru :.

Saksham Gulati

  • Posts: 6
hey hi !
I am also facing a similar problem , I mean the admob ads appear only for the first time and then I need to clear cache in order to make them visible .
Please check this out : https://play.google.com/store/apps/details?id=com.sanshitgulati.negativegravityuniverse
Any kind of help is much appreciated !
Thanks !! :)

djngam

  • Posts: 63
Has this issue been resolved? A look around the internet says that perhaps the ad hasnt been linked yet cause it can take up to two days? Im having the same issue as well

xdan73

  • *
  • Posts: 5
I still have same issue. I downloaded Stencyl 3.2, cleared and updated project, installed new Admob extension, placed new blocks - but ads behave same as before.

On first run ads will show as expected. On quit and restart ads will not show untill cache is cleared.

Note - that applies only to banner ads. Interstitials behave OK.

Regards



riki82

  • Posts: 325
Same problem for me  :'(

MrWagoner

  • Posts: 424
I switched from the built-in Admob support to the AdMob Extension and I had the same problem (in both versions). I investigated a bit and found out that the AdView that is responsible for displaying the Ad above the running game can get "destroyed" (cleaned up by the OS when the app is put into the background)  and hence the ads won't be displayed anymore when the game is opened again.
I tinkered around a bit with the source files of the extension to create a quick temporary fix for this: I changed the "Initialize Admob banner block" in such way that it will look whether the AdView exists:

If not, the AdView will be created.
If yes, the already existing AdView will be made visible again.

This fix is not perfect yet:  It won't automatically restore the ad that gets destroyed in the moment the player leaves the game,  it will only allow the subsequent ads to show up again. Also please notice that if the AdView needs to be rebuilt because the player returns to the game, it might take a second or two longer until the ad appears on the screen.

If you want to try the fix with your game, please follow these two steps:

1. Locate the following files in your stencyl workspace folder:

stencylworks\engine-extensions\admob\MyAdmob.hx
stencylworks\engine-extensions\admob\dependencies\myadmob\src\com\abliblablobla\AdMob\MyAdmob.java

Replace these files with the files in the attached ZIP-File.

2. In your game, replace every occurence of the "Show Admob banner" block with the "Initialize AdMob-Banner" block (use the exact same parameters for this block as you have before) Don't worry, the initialization only takes place if really necessary, otherwise this block will act like the "Show"-Block did before.

Please use at your own risk and backup whatever files you deem necessary!

If this fix is working for you and enough people are interested in this, maybe we can ask Abliblablobla to review this and add it to the base version of the extension.


Check out my newest game: Blowy Fish!

Abliblablobla

  • *
  • Posts: 524
I will take a look at this issue for the next version of this extension. Thanks MRWagoner for the proposed fix!
.: BuruBuru :.

mario13579

  • Posts: 19
hey hi !
I am also facing a similar problem , I mean the admob ads appear only for the first time and then I need to clear cache in order to make them visible .
Please check this out : https://play.google.com/store/apps/details?id=com.sanshitgulati.negativegravityuniverse
Any kind of help is much appreciated !
Thanks !! :)


I installed your game and do not see any ads.

« Last Edit: February 23, 2015, 05:18:31 am by mario13579 »