Corona Adsfor iOS not showing

I’ve been trying to get Corona Ads to work for a day and a half now for iOS. I used Flurry Analytics  to narrow the problem --> only two Corona Ad event.phases are ever called “Init” and “request” 

So the ad placement is never “found” and it never “failed”

Any ideas? This is my build settings: 

-- Supported values for orientation:-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = {  orientation = {  default = "portrait",  supported = { "portrait","portraitUpsideDown" } },                excludeFiles =        {           iphone = { "Icon-xxxhdpi.png", "Icon-xxhdpi.png", "Icon-xhdpi.png", "Icon-hdpi.png", "Icon-mdpi.png", "Icon-ldpi.png","Icon-ouya.png",},           android = { "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-40.png",                "Icon-Small-40@2x.png",                "Icon-Small-40@3x.png",                "Icon-Small-50.png",                "Icon-Small-50@2x.png",                "Icon-Small.png",                "Icon-Small@2x.png",                "Icon-Small@3x.png",                "Default-568h@2x.png",                "Default-Landscape-568h@2x.png",                "Default-Landscape-667h@2x.png",                "Default-Landscape-736h@3x.png",                "Default-Landscape@2x.png",                "Icon-ouya.png",                },        },               android =        {            largeHeap = true,            allowAppsReadOnlyAccessToFiles = false,            usesPermissions =            {                "android.permission.INTERNET",                "com.android.vending.CHECK\_LICENSE",            },                       supportsScreens =            {                resizeable    = true,                smallScreens  = true,                normalScreens = true,                largeScreens  = true,                xlargeScreens = true,            },        },  iphone = {  plist = {                    CFBundleDisplayName = "Blood Frenzy",                    CFBundleName = "Blood Frenzy",                    CFBundleIconFile = "Icon.png",                    CFBundleIconFiles = {                        "Icon.png",                        "Icon@2x.png",                        "Icon-Small-40.png",                        "Icon-Small-40@2x.png",                        "Icon-Small-40@3x.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-50.png",                        "Icon-Small-50@2x.png",                        "Icon-Small.png",                        "Icon-Small@2x.png",                        "Icon-Small@3x.png"                    },  --required                     UILaunchImages = {                        {  -- iPhone 4 LandscapeLeft                        ["UILaunchImageMinimumOSVersion"] = "7.0",                        ["UILaunchImageName"] = "Default",                        ["UILaunchImageOrientation"] = "LandscapeLeft",                        ["UILaunchImageSize"] = "{320, 480}"                    },                                                          {  -- iPhone 4 LandscapeRight                        ["UILaunchImageMinimumOSVersion"] = "7.0",                        ["UILaunchImageName"] = "Default",                        ["UILaunchImageOrientation"] = "LandscapeRight",                        ["UILaunchImageSize"] = "{320, 480}"                    },                                      {  -- iPhone 5 Portrait                        ["UILaunchImageMinimumOSVersion"] = "7.0",                        ["UILaunchImageName"] = "Default-568h",                        ["UILaunchImageOrientation"] = "Portrait",                        ["UILaunchImageSize"] = "{320, 568}"                    },                                       {  -- iPhone 5 LandscapeLeft                        ["UILaunchImageMinimumOSVersion"] = "7.0",                        ["UILaunchImageName"] = "Default-568h",                        ["UILaunchImageOrientation"] = "LandscapeLeft",                        ["UILaunchImageSize"] = "{320, 568}"                    },                    {  -- iPhone 5 LandscapeRight                        ["UILaunchImageMinimumOSVersion"] = "7.0",                        ["UILaunchImageName"] = "Default-568h",                        ["UILaunchImageOrientation"] = "LandscapeRight",                        ["UILaunchImageSize"] = "{320, 568}"                    },                                      {  -- iPad LandscapeLeft                        ["UILaunchImageMinimumOSVersion"] = "7.0",                        ["UILaunchImageName"] = "Default-Landscape",                        ["UILaunchImageOrientation"] = "LandscapeLeft",                        ["UILaunchImageSize"] = "{768, 1024}"                    },                    {  -- iPad LandscapeRight                        ["UILaunchImageMinimumOSVersion"] = "7.0",                        ["UILaunchImageName"] = "Default-Landscape",                        ["UILaunchImageOrientation"] = "LandscapeRight",                        ["UILaunchImageSize"] = "{768, 1024}"                    },                                                          {  -- iPhone 6 LandscapeLeft                        ["UILaunchImageMinimumOSVersion"] = "8.0",                        ["UILaunchImageName"] = "Default-667h",                        ["UILaunchImageOrientation"] = "LandscapeLeft",                        ["UILaunchImageSize"] = "{375, 667}"                    },                    {  -- iPhone 6 LandscapeRight                        ["UILaunchImageMinimumOSVersion"] = "8.0",                        ["UILaunchImageName"] = "Default-667h",                        ["UILaunchImageOrientation"] = "LandscapeRight",                        ["UILaunchImageSize"] = "{375, 667}"                    },                                                          {  -- iPhone 6 Plus LandscapeLeft                        ["UILaunchImageMinimumOSVersion"] = "8.0",                        ["UILaunchImageName"] = "Default-Landscape-736h",                        ["UILaunchImageOrientation"] = "LandscapeLeft",                        ["UILaunchImageSize"] = "{414, 736}"                    },                                       {  -- iPhone 6 Plus LandscapeRight                        ["UILaunchImageMinimumOSVersion"] = "8.0",                        ["UILaunchImageName"] = "Default-Landscape-736h",                        ["UILaunchImageOrientation"] = "LandscapeRight",                        ["UILaunchImageSize"] = "{414, 736}"                    },                                   },     --required                    UIApplicationExitsOnSuspend = false,                    UIPrerenderedIcon = true,-- set to false for "shine" overlay                    UIStatusBarHidden = true,                    UIAppFonts = { "AvenirLTStd-Black.otf","SourceCodePro-Black.ttf" },              --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend                 NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },                NSLocationAlwaysUsageDescription = { "" },                NSLocationWhenInUseUsageDescription = { "" },   }, },   plugins =        {            ["plugin.coronaAds"] =            {                publisherId = "com.coronalabs",                supportedPlatforms = { iphone=true, android=true }            },             ["plugin.google.play.services"] =            {                publisherId = "com.coronalabs",                supportedPlatforms = { iphone=true, android=true }            },                       ["plugin.android.support.v4"] =            {                publisherId = "com.coronalabs",                supportedPlatforms = { android=true }            },             ["plugin.adbuddiz"] =            {                publisherId = "com.adbuddiz"            },             ["plugin.flurry.analytics"] =            {                publisherId = "com.coronalabs",                supportedPlatforms = { iphone=true, android=true }            },         },  }

do you ever call the .show() method?

Yeah, this is my code in main:

 ------------------------------------------------------    --CORONA ADS     -----------------------------------------------------     -- Corona Ads listener function     local function adListener( event )         if ( event.phase == "request" ) then            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement request"  )        end         if ( event.phase == "found" ) then            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement found"  )        end         if ( event.phase == "failed" ) then            adids.bUsingCoronaAds = false            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement failed"  )        end         if ( event.phase == "shown" ) then            adids.bUsingCoronaAds = true            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement shown"  )        end          if ( event.phase == "closed" ) then            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement closed"  )        end                 -- Successful initialization of Corona Ads         if ( event.phase == "init" ) then                flurryAnalytics.logEvent( "Corona Ads event: init"  )             -- Show an ad             coronaAds.show( adids.CoronaAdsBanner, false )             end     end      -- Initialize Corona Ads (substitute your own API key when generated)     coronaAds.init( adids.CoronaAdsApiKey, adListener )

That code is a challenge to follow. I hope in your editor it’s formatted better. I’m assuming your adids.CoronaAdsBanner and adids.CoronaAdsApiKey are correct and that you only have one function named adListener?

Yes, adids.CoronaAdsBanner and adids.CoronaAdsApiKey are correct. The code is formatted correctly when I paste it --once you post it – it changes. Sorry about that. Let me try this:


    --CORONA ADS

    -----------------------------------------------------
     – Corona Ads listener function
     local function adListener( event )

        if ( event.phase == “request” ) then
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement request”  )
        end

        if ( event.phase == “found” ) then
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement found”  )
        end

        if ( event.phase == “failed” ) then
            adids.bUsingCoronaAds = false
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement failed”  )
        end

        if ( event.phase == “shown” ) then
            adids.bUsingCoronaAds = true
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement shown”  )
        end

         if ( event.phase == “closed” ) then
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement closed”  )
        end
        
         – Successful initialization of Corona Ads
         if ( event.phase == “init” ) then
                flurryAnalytics.logEvent( “Corona Ads event: init”  )
             – Show an ad
             coronaAds.show( adids.CoronaAdsBanner, false )    
         end
     end

     – Initialize Corona Ads (substitute your own API key when generated)
     coronaAds.init( adids.CoronaAdsApiKey, adListener )

 

What’s going on in the console log of the device you’re testing on?

Thanks for your help Rob but I’ve decided to use RevMob. It’s up and running on my first try. Maybe I’ll try Corona Ads on my next project.

That’s fine. RevMob is a popular choice. But still we need to work out kinks in Corona Ads. It would have been nice to see if you were getting some error messages or not.

Rob

do you ever call the .show() method?

Yeah, this is my code in main:

 ------------------------------------------------------    --CORONA ADS     -----------------------------------------------------     -- Corona Ads listener function     local function adListener( event )         if ( event.phase == "request" ) then            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement request"  )        end         if ( event.phase == "found" ) then            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement found"  )        end         if ( event.phase == "failed" ) then            adids.bUsingCoronaAds = false            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement failed"  )        end         if ( event.phase == "shown" ) then            adids.bUsingCoronaAds = true            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement shown"  )        end          if ( event.phase == "closed" ) then            flurryAnalytics.logEvent( "Corona Ads event: ad for ".. tostring(event.placementId) .. " placement closed"  )        end                 -- Successful initialization of Corona Ads         if ( event.phase == "init" ) then                flurryAnalytics.logEvent( "Corona Ads event: init"  )             -- Show an ad             coronaAds.show( adids.CoronaAdsBanner, false )             end     end      -- Initialize Corona Ads (substitute your own API key when generated)     coronaAds.init( adids.CoronaAdsApiKey, adListener )

That code is a challenge to follow. I hope in your editor it’s formatted better. I’m assuming your adids.CoronaAdsBanner and adids.CoronaAdsApiKey are correct and that you only have one function named adListener?

Yes, adids.CoronaAdsBanner and adids.CoronaAdsApiKey are correct. The code is formatted correctly when I paste it --once you post it – it changes. Sorry about that. Let me try this:


    --CORONA ADS

    -----------------------------------------------------
     – Corona Ads listener function
     local function adListener( event )

        if ( event.phase == “request” ) then
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement request”  )
        end

        if ( event.phase == “found” ) then
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement found”  )
        end

        if ( event.phase == “failed” ) then
            adids.bUsingCoronaAds = false
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement failed”  )
        end

        if ( event.phase == “shown” ) then
            adids.bUsingCoronaAds = true
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement shown”  )
        end

         if ( event.phase == “closed” ) then
            flurryAnalytics.logEvent( "Corona Ads event: ad for “… tostring(event.placementId) … " placement closed”  )
        end
        
         – Successful initialization of Corona Ads
         if ( event.phase == “init” ) then
                flurryAnalytics.logEvent( “Corona Ads event: init”  )
             – Show an ad
             coronaAds.show( adids.CoronaAdsBanner, false )    
         end
     end

     – Initialize Corona Ads (substitute your own API key when generated)
     coronaAds.init( adids.CoronaAdsApiKey, adListener )

 

What’s going on in the console log of the device you’re testing on?

Thanks for your help Rob but I’ve decided to use RevMob. It’s up and running on my first try. Maybe I’ll try Corona Ads on my next project.

That’s fine. RevMob is a popular choice. But still we need to work out kinks in Corona Ads. It would have been nice to see if you were getting some error messages or not.

Rob