Corona ads not showing

My corona ads aren’t showing. I am testing my app out on my device and the app is working but the corona ads aren’t showing. I feel like it is due to my build settings but i am confused so please help me. I am having ads show up on my main.lua screen which is right after “Powered by Corona Labs” that screen, and i have ads supposed to be showing on my menu screen. All ads are interstitial. Here is my code for my build settings:    ***Please note that in userPermissions i only have android.permission for two things, on the tutorial it shows more. Is this the problem?

settings = {    orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "landscapeRight", supported = { "landscapeRight" ,} }, plugins=   {       ["plugin.coronaAds"] =         {           publisherId = "com.coronalabs",           supportedPlatforms = { android=true }         },      ["plugin.google.play.services"]=      {      publisherId="com.coronalabs",      supportedPlatforms={ android=true}      }, ["shared.android.support.v4"]=   {   publisherId="com.coronalabs",   supportedPlatforms={ android=true}   },   },    excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend          CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXX",  -- replace XXXXXXXXX with your Facebook appId } } } --]] } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE" }, }, }

****Here is my main lua code, my apiKey is changed on this code for privacy purposes.****

local composer=require ("composer") display.setStatusBar( display.HiddenStatusBar ) local coronaAds=require("plugin.coronaAds") local interstitialPlacement="interstitial-1" local function adListener( event ) if (event.phase=="init") then coronaAds.show(interstitialPlacement, true) end end coronaAds.init("d78f393-1278-12s1-bb39-77981lk78ff1", adListener)

***I don’t see anything wrong with this code because in the integration guide the code is exactly the same.

Are your ads active in your dashboard? It generally takes 24 hours after setting up a placement before they go active?

Are you getting any messages in your console log?

If the forums didn’t mess up your indentions in build.settings, you might want to consider trying to reformat it so that you can make sure all your curly braces line up properly.

https://coronalabs.com/blog/2015/06/09/tutorial-the-value-of-well-formatted-code/

https://coronalabs.com/blog/2014/07/08/tutorial-understanding-build-settings/

Those both can help with code formatting and having an easy to read build.settings file.

Rob

I just incorporated the ads today but my app is already “Live” for its status when I see it on the My Apps section. So do I have to wait for 24 hours for the ads. Also all my console log says is that plugin.coronaAds library is not available on this platform.

You cannot test Corona Ads (or any ad provider for that matter) in the simulator. You have to test on a real device.

Rob

I am testing on real device that plugin message just came on for the simulator I know I have to test on real device and I am doing that but my ads aren’t showing on that device. You said I may have to wait for 24 hours but my app status is live but do I stil have to wait since I just added the code in for ads?

If your status is live, then you should be seeing ads. Again, look in your device’s console log for messages. On Android that means running “adb logcat”.

Rob

What do you mean by my device console log and what is add logcat?

Please read:

https://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

I found an error in my build.settings. I forgot a comma after the android permission access network state line. Now this is what shows up in the console log for the simulator. 

17:17:52.014  PluginSync: plugin com.coronalabs/plugin.coronaAds needs to be updated for platform win32-sim to build number: 2828

17:17:52.014  PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.coronaAds/2016.2828/win32-sim/plugin.coronaAds.zip

17:17:52.369  WARNING: The ‘plugin.coronaads’ library is not available on this platform.

Am i supposed to update because i updated to newest version of corona about 2 weeks ago.

So i think my API Key is messed up. I used the API key in the example and the ads worked! How should i fix this?

What version of Corona are you using?

v2016.2949 but the api key is the problem, does the version affect that?

It shouldn’t be telling you that you need a newer version.

You’ve verified the version by find the version in the console log? or By Doing a Help->About?

Rob

How long should I expect for an email with a new Api key for my app? I just need to know how long it will take because I am going to release my app in four days on Google play store so I need this ASAP. Where is the help button?

I don’t think the version is the problem because if it was then the ads wouldn’t be showing up for the Api key shown in the example in the integration guide, but they are it just that my Api key isn’t working so I sent email requesting for new one. How long till I get a response, do you have an estimate?

Regarding the download version it says 2016.2949 on the home screen when i click on corona simulator. The console log shows this:

18:49:20.246  Platform: iPhone / x64 / 10.0 / Intel® HD Graphics / 2.1.0 - Build 8.15.10.2900 / 2016.2949 / en_US | US | en_US | en

So the version is 2016.2949, but i am almost super sure i need new API key.

Hopefully they can get back to you soon. 

Rob

Can I just make another app with the same name in order to get new api?

You could try making a new placement instead of using the default placements.

I got message from the support and they said the problem isn’t with my API key but because I didn’t provide info for the bundle id and play store url. My app domain and bundle id i put as the same thing com.gmail.shadowknight.TrumpAttack. Am i supposed to do that. What should i do for the url because my app isnt actually on the play store yet. Right now my bundle id and app domain are the same and my ads are still not working.

Many ad vendors use “Live in the store” as the definition to give you live ads. Usually you can get the URL for you app once you create the store entry. On Android URL’s are predictable:

https://play.google.com/store/apps/details?id=com.yourdomain.yourapp

Rob