Admob integration, what's my app id?

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.

Hi everyone, I got the problem with ads on admob as when i built i always get error “No such file or directory” while i am trying to use plugin. Did i miss any configuration for ads api? Thank…

and i also try the sample project from github replacing with new appid but the built always return null, and never get done with this. And  Do i have to be pro or something else
please help with this.

You don’t need to be pro.  Its likely an issue with your build.settings or your code.  Can you post your build.settings and the contents of your console log where you’re app is running?  If you don’t know how to get your console log:

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

@Rob, I used this sample project below to build with edited on appid only

https://github.com/coronalabs/plugins-sample-ads-admob/

here is error console log

Runtime error

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:295: <error>{“status”:32512,“message”:“sh: /Applications/Xcode: No such file or directory”}</error>

stack traceback:

 [C]: ?

 [C]: in function ‘assert’

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:318: in function ‘build’

 ?: in function ‘buildExe’

 ?: in function <?:695>

Runtime error: …-ads-admob-master.app/.build/libtemplate/Builder.lua:295: <error>{“status”:32512,“message”:“sh: /Applications/Xcode: No such file or directory”}</error>

stack traceback:

 [C]: ?

 [C]: in function ‘assert’

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:318: in function ‘build’

 ?: in function ‘buildExe’

 ?: in function <?:695>

and in built.setting there was nothing edited. 
As I test there something error with plugins field in built.setting, when i off that field the build is fine.

Something’s not right.  I just downloaded it, didn’t change a thing and it built. Of course I can’t run it because I didn’t change any AppID’s, but you’re getting this error during build right?

What version of Corona SDK are you running?

Can you post the build.settings?

yes, at first i use with 2013.1202 version to build, it error

then i change to 2014.2189 version but also the same error occur with those message above

I use the same code and build with android, it working fine and show ads successful on android device, but during the built for IOS I always got those error above!

What if we are looking for loading a banner ad during a scene AND a exit interstitial ad at the exit of scene ? do I need to call ad.init twice in same file with different IDs ?

(note that this is for the new admob , old admob it was clear. new admob has IDs for each “banner” or “intersitial” )

@lonly_son, Engineering things this is the result of a faulty Xcode install on your computer.  Please verify you’re point to the right place:

From the terminal do:

xcode-select -p

and make sure it says:

/Applications/Xcode.app/Contents/Developer

If it does, I would remove and re-install Xcode making sure you have the latest version.  If it’s not pointing to that, make sure that path exists:

ls -l /Applications/Xcode.app/Contents/Developer

It should output this:

total 0
drwxr-xr-x   3 root  wheel  102 Apr 11 16:44 Documentation
drwxr-xr-x   6 root  wheel  204 Apr 11 16:44 Library
drwxr-xr-x   6 root  wheel  204 Apr 11 16:44 Makefiles
drwxr-xr-x   5 root  wheel  170 Apr 11 16:44 Platforms
drwxr-xr-x   3 root  wheel  102 Jan 15 15:00 Toolchains
drwxr-xr-x  18 root  wheel  612 Apr 11 16:46 Tools
drwxr-xr-x   7 root  wheel  238 Apr 11 16:46 usr

(well the dates and times may be different)

If it doesn’t, then you might need to run:

xcode-select -s /Applications/Xcode.app/Contents/Developer

Rob

Thank Rob, I’ll try it.

Rob , 

I think the new admob, for some reason is not showing interstitial ads. Have you tried it ?

Thanks!

Can I get you to file a bug report on this.  Make sure to include your build.settings and config.lua that you are using.

Thanks

Rob

Just found out Corona has a admob-V2 in 2014.2189. will try it out today and check if interstitial works!

Hi everyone, I got the problem with ads on admob as when i built i always get error “No such file or directory” while i am trying to use plugin. Did i miss any configuration for ads api? Thank…

and i also try the sample project from github replacing with new appid but the built always return null, and never get done with this. And  Do i have to be pro or something else
please help with this.

You don’t need to be pro.  Its likely an issue with your build.settings or your code.  Can you post your build.settings and the contents of your console log where you’re app is running?  If you don’t know how to get your console log:

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

@Rob, I used this sample project below to build with edited on appid only

https://github.com/coronalabs/plugins-sample-ads-admob/

here is error console log

Runtime error

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:295: <error>{“status”:32512,“message”:“sh: /Applications/Xcode: No such file or directory”}</error>

stack traceback:

 [C]: ?

 [C]: in function ‘assert’

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:318: in function ‘build’

 ?: in function ‘buildExe’

 ?: in function <?:695>

Runtime error: …-ads-admob-master.app/.build/libtemplate/Builder.lua:295: <error>{“status”:32512,“message”:“sh: /Applications/Xcode: No such file or directory”}</error>

stack traceback:

 [C]: ?

 [C]: in function ‘assert’

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

 …-ads-admob-master.app/.build/libtemplate/Builder.lua:318: in function ‘build’

 ?: in function ‘buildExe’

 ?: in function <?:695>

and in built.setting there was nothing edited. 
As I test there something error with plugins field in built.setting, when i off that field the build is fine.