AdMob using both banner and interstitial ads - HELP!

change the AppID’s in this code with your own.

-- 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

 And I’m statin

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.

I did this. Multiple times.

My code.

-- 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.

Rob

 My account doesnt even say Im a basic member. -_-

I’ve tested it on my iPhone but that was with no ads. No its not jailbroken and I submit it cause my fan base were begging me too.

How can I make a test app and how to I view the device log???

You don’t need to be a Basic account to use AdMob ads.  You need it to do In App Purchases.  The forums don’t always catch up with your account setting.

How do you view your device log?   Please read this tutorial:  http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

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.

Rob

Wow I think he’s helped you plenty as it is. That kind of attitude no ones going to offer you any help.

@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.

We have very specific forum rules and expected behavior from community members.  Please make sure you read and understand these rules before you post to the forums:  http://coronalabs.com/blog/2013/04/02/corona-forum-rules-and-guidelines/

Rob

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.

User (my) error, but thanks for the feedback!

David

So do i put this code you gave me in the main.lua file ?

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.

Rob

So do i put this code you gave me in the main.lua file ?

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.

Rob