ads.isLoaded Not working in IOS

Ok, I decided to make a fresh thread as I tagged on to others.
First, ads.isLoaded works perfect on all my android games.
I am now porting to IOS and ads.isLoaded is not working, it always returns false.
I depend on this to avoid lag when loading the ad.
If say ads.isLoaded(“interstitial”)== false it works , I know the ad is preloaded in the load stage because it displays video ads with no lag at all.
If I just use ads,show it works fine.
I need ads.Loaded as I use it as a condition to display the ad if loaded if not then do something else.i.e. Show in house ads or continue the game.
So works perfect in android but dosnt work at all in IOS…HELP!

So anybody here know? Brent ?

ads.isLoaded does not work in IOS, can anybody tell me why it always returns false ?

and why it works perfectly in android?

thanks

Can you provide a test case?

HI,

TBH, I have just altered the workflow to handle it in IOS now.

Seems weird android it works fine but IOS it dons, if I get time I will strip everything out and get a test case togethor.

thanks

Rob - I’ve just hit this.  Took a couple of hours to track down it was the isLoaded line.  I pulled it out into a single test app to prove to myself.  Basically there’s no further processing of any lines after the “isLoaded” line occurs.  So not the print line after it, nor a listener return.  When I take the “isLoaded” line out of this testApp and build and put onto my iPhone6plus it works fine.

Code is:

display.setStatusBar( display.HiddenStatusBar ) local ads = require( "ads" ) local APPID = "ca-app-pub-XXXXXX" &nbsp;-- cut local ADMOB\_TESTMODE = false -- create a background for the app local backgroundImg = display.newImageRect( "space.png", display.contentWidth, display.contentHeight ) backgroundImg.anchorX = 0 backgroundImg.anchorY = 0 backgroundImg.x, backgroundImg.y = 0, 0 -- Listner local function adListener( event ) assert(event) &nbsp; &nbsp; print("GCAds:adListener: ", event.type, event.phase, event.name, event.response, event.isError) end -- Init ads.init( "admob", APPID, adListener ) -- Is Loaded print("About to call isLoaded") -- Appears in console output local loaded = ads.isLoaded() -- \<\<=== \*\*\* GETS STUCK HERE \*\*\* print("Just Called isLoaded") -- Does NOT appears in console output -- Load if not loaded then &nbsp; ads.load( "interstitial", { appId=APPID, testMode = ADMOB\_TESTMODE} ) end -- Show ads.show( "interstitial", { x=0, y=0, appId=APPID, testMode = ADMOB\_TESTMODE } ) print("COMPLETED!!!") -- Does NOT appears in console output

Is this a known bug?  Am I doing something wrong?  (can’t see it)  

[PS.  Did lodge as (Case 39049)]

Hi Greg,

glad you posted something I thought it was just me

.

That function requires a parameter “interstitial” be passed to it:

http://docs.coronalabs.com/plugin/ads-admob-v2/isLoaded.html

Rob

thanks Rob - missed this - I’ll try this

Can you get the case number amended so we can get some sort of log error or warning produced in this case.  Would have saved a couple of hours of my time in this case for the mistake I made in trying to track it down… thanks

The actual function is clearly defined as Rob says regarding the use of "interstitial.

I was using this anyway as I always have done so dosnt relate to my previous issue.

As said before I used a workaround.

So anybody here know? Brent ?

ads.isLoaded does not work in IOS, can anybody tell me why it always returns false ?

and why it works perfectly in android?

thanks

Can you provide a test case?

HI,

TBH, I have just altered the workflow to handle it in IOS now.

Seems weird android it works fine but IOS it dons, if I get time I will strip everything out and get a test case togethor.

thanks

Rob - I’ve just hit this.  Took a couple of hours to track down it was the isLoaded line.  I pulled it out into a single test app to prove to myself.  Basically there’s no further processing of any lines after the “isLoaded” line occurs.  So not the print line after it, nor a listener return.  When I take the “isLoaded” line out of this testApp and build and put onto my iPhone6plus it works fine.

Code is:

display.setStatusBar( display.HiddenStatusBar ) local ads = require( "ads" ) local APPID = "ca-app-pub-XXXXXX" &nbsp;-- cut local ADMOB\_TESTMODE = false -- create a background for the app local backgroundImg = display.newImageRect( "space.png", display.contentWidth, display.contentHeight ) backgroundImg.anchorX = 0 backgroundImg.anchorY = 0 backgroundImg.x, backgroundImg.y = 0, 0 -- Listner local function adListener( event ) assert(event) &nbsp; &nbsp; print("GCAds:adListener: ", event.type, event.phase, event.name, event.response, event.isError) end -- Init ads.init( "admob", APPID, adListener ) -- Is Loaded print("About to call isLoaded") -- Appears in console output local loaded = ads.isLoaded() -- \<\<=== \*\*\* GETS STUCK HERE \*\*\* print("Just Called isLoaded") -- Does NOT appears in console output -- Load if not loaded then &nbsp; ads.load( "interstitial", { appId=APPID, testMode = ADMOB\_TESTMODE} ) end -- Show ads.show( "interstitial", { x=0, y=0, appId=APPID, testMode = ADMOB\_TESTMODE } ) print("COMPLETED!!!") -- Does NOT appears in console output

Is this a known bug?  Am I doing something wrong?  (can’t see it)  

[PS.  Did lodge as (Case 39049)]

Hi Greg,

glad you posted something I thought it was just me

.

That function requires a parameter “interstitial” be passed to it:

http://docs.coronalabs.com/plugin/ads-admob-v2/isLoaded.html

Rob

thanks Rob - missed this - I’ll try this

Can you get the case number amended so we can get some sort of log error or warning produced in this case.  Would have saved a couple of hours of my time in this case for the mistake I made in trying to track it down… thanks

The actual function is clearly defined as Rob says regarding the use of "interstitial.

I was using this anyway as I always have done so dosnt relate to my previous issue.

As said before I used a workaround.