-- Your Android application ID local bannerAppID = "ca-app-pub-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/\*\*\*\*\*\*\*\*\*\*" local interstitialAppID = "ca-app-pub-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/\*\*\*\*\*\*\*\*\*" if system.getInfo("platformName") == "iPhone OS" then -- Your iOS application IDs intersititalAppID = "ca-app-pub-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/\*\*\*\*\*\*\*\*\*" bannerAppID = "ca-app-pub-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/\*\*\*\*\*\*\*\*\*" end
I need help I dont know were to place this stuff. Can you please place in my code and send it to me were I can just paste it. I have 8 other careers. Please understand. And this is really starting to stress me out.
-- Your Android application ID local bannerAppID = "ca-app-pub-8347067101481503/2335507715" local interstitialAppID = "ca-app-pub-8347067101481503/5236550917" if system.getInfo("platformName") == "iPhone OS" then -- Your iOS application IDs intersititalAppID = "ca-app-pub-8347067101481503/3759817713" bannerAppID = "ca-app-pub-8347067101481503/4080572917" end
I just ran and tested this code on my iPhone. You may have issues with your AdMob portal where you get your AppId’s from. Why are you submitting apps before you have this working?
Are you by any chance testing on a Rooted or Jailbroken device? Are you getting any errors in your device’s console log? I’ve asked for this several times and you have never answered this question. There will be reasons why it’s not working an it will be printed in your device log.
How to make a test app? It’s not any different than any other app. You need a main.lua with that code in it. A build.settings that includes your plugin and a config.lua.
@LsVtechTurbo95, the Corona community forums are here to help you on a best effort method. Corona Labs cannot write your program for you. If you wish to hire a Corona Developer you can request a quote in one of our sub-forums dedicated to hiring Corona Developers. See: http://forums.coronalabs.com/forum/586-corona-jobs/
There is an expectation that you will try to also help yourself. All advice that’s been given to you on this topic has been sound and has been given to you by multiple people. I don’t know why you and your programmer are having difficulties implementing this. You have to take some responsibility yourself. No one on this forum has access to your AdMob account (nor should they). By refusing to provide information from your console log (and having been shown twice to the tutorial that teaches you how), there isn’t much anyone on this forum can do for you.
I even provided you a 100% complete working AdMob sample main.lua. It’s job is to show a screen and show an ad. It’'s up to you to adapt this.
Ok - finally discovered the answer to my initial question/problem after returning to this app.
I was trying to put up an interstitial ad just before going back to a different scene which displayed a banner ad. In doing so the call to show the banner obviously kept the interstitial from displaying. This was checked by commenting out the banner ad.
Normally you put the .init() code in main.lua and then the calls to ads.show() and ads.hide() where you need it in your code. You’re code is too unique to answer such a broad question.
Normally you put the .init() code in main.lua and then the calls to ads.show() and ads.hide() where you need it in your code. You’re code is too unique to answer such a broad question.