Problems with admob on iOS

As the topic title says, I’m having problems with admob on and iOS device. 

This is my iPad’s log: 

<Error>: HID: The ‘Passive’ connection ‘AppName’ access to protected services is denied.

<Warning>: luaopen_CoronaProvider_ads_admob

<Error>: Could not successfully update network info during initialization.

<Warning>: <Google> To get test ads on this device, call: request.testDevices = @[@“a12e770d03531bf3ce949fc16e009d61”];

In Android I have no problem. I did add the two versions of the app (Android/iOS) on the Monetize section of the admob page.

Any help? 

You should have gotten a different App ID/Provider ID from AdMob for iOS.  Are you calling ad.init() with the right ID?

Rob

Yes, I have to AppIDs, One for Android and One for iOS and I’m using them when them correctly, I think.

-- ADDS if cacharro.isAndroid then ads.init( "admob", "AndroidID", adListener ) end if cacharro.isApple then ads.init( "admob", "iOSID", adListener ) end ads.show( "banner", { x=0, y=0, })

(cacharro si my method for knowing if is iOS or Android)

Can you post your build.settings?

What version of Corona SDK are you using?

I’m using Corona Version 2014.2189 (2014.3.6)

Here’s my build.settings: 

settings = { plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, }, orientation = { default = "portrait", supported = { "portrait", } }, iphone = { plist = { UIStatusBarHidden = true, UIPrerenderedIcon = true, UIAppFonts ={ "Amatic-Bold.ttf" }, } }, -- Android permissions androidPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", }, }

Today I tested the game on an iPhone and adds showed fine, but in iPad they’re still missing. Any clue why this is happening?

Is there any new information in the log file?  Does adMob need different App ID’s for iPad and iPhone?  I know some ad providers do use separate ID’s based on platform.

Rob

You should have gotten a different App ID/Provider ID from AdMob for iOS.  Are you calling ad.init() with the right ID?

Rob

Yes, I have to AppIDs, One for Android and One for iOS and I’m using them when them correctly, I think.

-- ADDS if cacharro.isAndroid then ads.init( "admob", "AndroidID", adListener ) end if cacharro.isApple then ads.init( "admob", "iOSID", adListener ) end ads.show( "banner", { x=0, y=0, })

(cacharro si my method for knowing if is iOS or Android)

Can you post your build.settings?

What version of Corona SDK are you using?

I’m using Corona Version 2014.2189 (2014.3.6)

Here’s my build.settings: 

settings = { plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, }, orientation = { default = "portrait", supported = { "portrait", } }, iphone = { plist = { UIStatusBarHidden = true, UIPrerenderedIcon = true, UIAppFonts ={ "Amatic-Bold.ttf" }, } }, -- Android permissions androidPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", }, }

Today I tested the game on an iPhone and adds showed fine, but in iPad they’re still missing. Any clue why this is happening?

Is there any new information in the log file?  Does adMob need different App ID’s for iPad and iPhone?  I know some ad providers do use separate ID’s based on platform.

Rob