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

Haeydr

  • Posts: 79
You need to use 'initialize admob' block at the start of the game, using the pub-XXXXXXXXXXXXXXXX stuff.
Then you use ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXX to display the ads you want to show with 'show ad block'.

I don't really see the "initialize admob" block anywhere :/. Can you post a screenshot of which blocks you are talking about that i need to use? Thanks.

FortySe7en

  • Posts: 304
Sorry,  you only need to initialize the full screen ads, not banners.
For me it works when I just use the block to show the advert and put the ID of the advert inside that block.
I have NOTHING filled in the settings page (monetization tab asks for admob key for use in android, but that is not for this extention I believe, otherwise it wouldnt work for me, but it does)

Abliblablobla

  • *
  • Posts: 524
I'm having difficulty setting up IN-APP PRODUCTS in Google Play for my game POPc.

I have done the following:
1. In Stencyl, I have ticked "Enable Purchases".
2. I have entered the Android Public Key which is a 4 line long set of characters and digits.
3. Compiled the apk and uploaded to google play as "BETA TESTING".

In Google Play, when I click on "IN-app Products", I receive the following error:

"Your app doesn't have any in-app products yet. To add in-app products, you need to add the BILLING permission to your APK. Upload a new APK".

What am I doing wrong?
Please help as this is the last item I need to fix before I can publish to Android.

Jon, suggested the following:
The billing permission is included by default unless you are using an older version or possibly using older versions of certain extensions that did not account for this (this snagged a lot of people) but were overriding AndroidManifest.xml.

I used the latest nightly build from 24 May. Only extension I'm using is the latest Admob Extension.  Tried compiling on a Mac and PC, uploaded both versions to Google Play - but got the same error.

Could it be due to the Admob extension?

Since Stencyl 3.1 all the extensions were moved to you workspace. It is still possible that you have an old version of this extension somewhere in your computer. Check your workspace folder and if you find the admob extension, delete it. Check your extensions folder under your-path-to-stencyl/plaf/haxe/ and if you find the admob extension delete it. Download and install the latest version. Let me know if it works!
.: BuruBuru :.

Abliblablobla

  • *
  • Posts: 524
Hello guys,

I just started using stencyl not too long and i'm looking to publish my first app, but i can't seem to find the publisher ID that i need to use this extension. I read the guide saying it must be in this format "a15166ea78ce23b", but i can't see it anywhere on my AdMob page, all i see is an Ad unit ID in the format "ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXX" for an ad unit and my publisher ID which is in the format "pub-XXXXXXXXXXXXXXXX". I tried using both of these while adding the code as the guide stated and stencyl threw an error "Ads has no field initAdmob".

Any help would be greatly appreciated.

Did you solve your issue?
.: BuruBuru :.

Haeydr

  • Posts: 79
Did you solve your issue?

No, i still haven't been able to use this extension properly.

Jon

  • *
  • Posts: 17524
Given how many support related questions there are related to this, I've split this off into a subforum now.

Please start separate topics for your questions (versus replying here), so we can keep this tidy.

RulezTeam

  • Posts: 318
I have seen that there is already a post for this. Just to confirm that on Android 4.4 AdMob isn't shown anymore.

Please Abliblablobla, can you look at this ?

Thank you.


P.S.: Jon, from 1 August Google switch to Google Play Services to show ads, so some changes will be needed to Stencyl (https://developers.google.com/mobile-ads-sdk/docs/#play)

« Last Edit: June 05, 2014, 01:37:52 am by RulezTeam »

Abliblablobla

  • *
  • Posts: 524
Given how many support related questions there are related to this, I've split this off into a subforum now.

Please start separate topics for your questions (versus replying here), so we can keep this tidy.

Thanks!
.: BuruBuru :.

Abliblablobla

  • *
  • Posts: 524
I have seen that there is already a post for this. Just to confirm that on Android 4.4 AdMob isn't shown anymore.

Please Abliblablobla, can you look at this ?

Thank you.

I will try to create a new version of this extension based on Google Play Services, but I don't have enough spare time until the end of June / beginning of July. When I start to work on the next version, I will take a look at all the bugs that were pointed out by the community.

P.S.: Jon, from 1 August Google switch to Google Play Services to show ads, so some changes will be needed to Stencyl (https://developers.google.com/mobile-ads-sdk/docs/#play)

I just want to stress that all the games that are already using this extension won't be affected in any way. This restriction will only affect new games and new updates published after August 1st. I hope to have a new version of this extension before that date.
.: BuruBuru :.

bonzero

  • Posts: 488
Thanks Abliblablobla for your terrific work on this extension, for me this is an essential part of stencyl  (more important than other features) so i'm glad this easy and powerful extension exists

bonzero

  • Posts: 488
Ive also noticed that this extension overwrites or changes the android manifest file and prevents the in-app purchases from working and also other extensions like the vungle ad network won't work, is there any way around this? like  being able to modify the permissions manually etc

RulezTeam

  • Posts: 318
Hi bonzero,

if you download the last version, you don't have anymore this problem

bonzero

  • Posts: 488
I think I did, I will check again

Abliblablobla

  • *
  • Posts: 524
Thanks Abliblablobla for your terrific work on this extension, for me this is an essential part of stencyl  (more important than other features) so i'm glad this easy and powerful extension exists

Thanks!

Ive also noticed that this extension overwrites or changes the android manifest file and prevents the in-app purchases from working and also other extensions like the vungle ad network won't work, is there any way around this? like  being able to modify the permissions manually etc

For anyone who notices this issue, make sure you have the latest version of this extension. Also be sure you don't have an old version somewhere on your computer. If you have just downloaded the latest version, use "Clean Project".
.: BuruBuru :.

RulezTeam

  • Posts: 318
Hi Abliblablobla,

in your guide, you explain that for interstitial banner, we must use initialize block only once in a user session.
So, this is my question: when an user lost focus, and then gain focus, is it considered a new user session ?

I tell you this, because, I have tested that when I lost focus, and then re-open my game, interstitial banner aren't showed anymore. Probably, because I doesn't initialize them. Is this correct ?

Thank you