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.