Admob integration, what's my app id?

Hi,
I’m trying to put ads using admob in my game. After registering my application, I’m still not sure where can I get my app Id from the admob control panel.

I can only see publisher Id but that’s it…
So my question is : what’s the app Id that I need to enter on ads.init? where do I get it (Admob)?

Thanks

It’s under the Monitize menu ont he AdMob site.  Click on your App and it will show you your different ad units and you can see your Ad unit ID.  That should be the ID You need.

tbTZK4p.png

Hi Rob,

Thanks for the answer, I really appreciate weekend supports as I am basically just weekend developer as well.

I still couldn’t find the monetize menu you’re talking about in the admob control panel. Which is strange as I feel like I can’t even follow a simple instruction :slight_smile:

After looking around I think I found what I’m looking for. Is it this Mediation ID? It’s the only way I can set up a banner ads for my application. Checking the Admob SDK docs I think this is the one they’re talking about.

The only problem now is… it’s not working. When I call ads.init with this mediation ID I don’t get any callback saying it’s initialized properly or not. 

Has anyone had this problem before?

Thanks

Hmm… now that I read thoroughly the fine line again, could this be the Publisher ID? : 
“Each type of site or app has a specific version of Publisher Code required to integrate with the AdMob marketplace.”
 

and this is the instruction for sdk implementation :

The five lines of code it takes to add a banner:

  • Import com.google.ads.*
  • Declare an AdView instance
  • Create it, specifying a unit ID—your AdMob publisher ID
  • Add the view to the UI
  • Load it with an ad

It says publisher ID, surely this is what Corona plugin should use too right?

I’m wonder if you’re seeing the old interface.  There was a prompt that I clicked on that changed how things work and I’ve not been able to get back to the old thing. My stuff looks different.  Keep in mind, I don’t really use this, much.  Hopefully someone else from the community who uses AdMob more regularly can answer  your questions.

ok,

I tried everything, none of them worked and even uses the sample code : https://github.com/coronalabs/plugins-sample-ads-admob

The code is not that good and you need to fix a few lines to make sense though. I can’t believe this sample code is the official admob implementation sample.

I guess I’ll wait for another user to help me out on this, it can’t be that hard isn’t it? I know there’s at least one guy who had the same problem as I am :slight_smile:

Just want to add, now that I finally figured it out :slight_smile:

  • It’s actually called publisherID on your admob control panel. When you create a new app/site you’ll be given a new unique publisher ID.

  • ads.init doesn’t yield the listener callback, only after you call ads.show

Hope this help others

Hi,

I’m receiving this error - no app id was supplied to ads.init(), a test id was used.  Can anyone help? I have used pub id supplied by admob.

corona admob plugin not working with new Ad unit ID?

Ad unit ID: ca-app-pub-XXXXXXXXXXXXXXXXXX/xxxxxxxxxxxxx

It’s under the Monitize menu ont he AdMob site.  Click on your App and it will show you your different ad units and you can see your Ad unit ID.  That should be the ID You need.

tbTZK4p.png

Hi Rob,

Thanks for the answer, I really appreciate weekend supports as I am basically just weekend developer as well.

I still couldn’t find the monetize menu you’re talking about in the admob control panel. Which is strange as I feel like I can’t even follow a simple instruction :slight_smile:

After looking around I think I found what I’m looking for. Is it this Mediation ID? It’s the only way I can set up a banner ads for my application. Checking the Admob SDK docs I think this is the one they’re talking about.

The only problem now is… it’s not working. When I call ads.init with this mediation ID I don’t get any callback saying it’s initialized properly or not. 

Has anyone had this problem before?

Thanks

Hmm… now that I read thoroughly the fine line again, could this be the Publisher ID? : 
“Each type of site or app has a specific version of Publisher Code required to integrate with the AdMob marketplace.”
 

and this is the instruction for sdk implementation :

The five lines of code it takes to add a banner:

  • Import com.google.ads.*
  • Declare an AdView instance
  • Create it, specifying a unit ID—your AdMob publisher ID
  • Add the view to the UI
  • Load it with an ad

It says publisher ID, surely this is what Corona plugin should use too right?

I’m wonder if you’re seeing the old interface.  There was a prompt that I clicked on that changed how things work and I’ve not been able to get back to the old thing. My stuff looks different.  Keep in mind, I don’t really use this, much.  Hopefully someone else from the community who uses AdMob more regularly can answer  your questions.

ok,

I tried everything, none of them worked and even uses the sample code : https://github.com/coronalabs/plugins-sample-ads-admob

The code is not that good and you need to fix a few lines to make sense though. I can’t believe this sample code is the official admob implementation sample.

I guess I’ll wait for another user to help me out on this, it can’t be that hard isn’t it? I know there’s at least one guy who had the same problem as I am :slight_smile:

Just want to add, now that I finally figured it out :slight_smile:

  • It’s actually called publisherID on your admob control panel. When you create a new app/site you’ll be given a new unique publisher ID.

  • ads.init doesn’t yield the listener callback, only after you call ads.show

Hope this help others

Hi,

I’m receiving this error - no app id was supplied to ads.init(), a test id was used.  Can anyone help? I have used pub id supplied by admob.

Hi, I put the ad in adshow Id and I got the same message in the app

This is my code for banner in main.lua

ads.init( “admob”, appID, adListener )

ads.show( “banner”, { x=0, y=0, appId = “ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxx” } )

Anyone know what it takes to put the Id claiming???

The publisher id that calls where it goes?

ads.init( “admob”, “ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxx”, adListener )

ads.show( “banner”, { x=0, y=0 } )

Try that.

Perfect, it works fine, very grateful and thank you very much.

Regards Dani.

corona admob plugin not working with new Ad unit ID?

Ad unit ID: ca-app-pub-XXXXXXXXXXXXXXXXXX/xxxxxxxxxxxxx