Jump to content
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
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?
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:
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.
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
Just want to add, now that I finally figured it out
- 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
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
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:
@Rob, I used this sample project below to build with edited on appid only
here is error console log
@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:
and make sure it says:
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:
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
Community Forum Software by IP.Board