iAd ads not working on approved 64-bit app

Ok, 

so I’ve built a word game for dutch children that is ad-supported. I’ve added iAd for iOS and Admob for Android. During testing I got banners for both Admob and iOS. So it worked perfectly. Even tested with errors and fillrate issues. Went like a charm.

The app was approved on Feb 12 2015. The google Admob ads work fine. However the iAd ads don’t work.

This is what I could find in the logs:

I get this one once (the debug statement is from the app itself)

\<Warning\>: 20150217 17:26:24:173 - DEBUG - GemiAds : trying to retrieve add with appId: com.gemiware.woordflitsenfree Feb 17 17:26:24 Gemini-Retina AdSheet[4477] \<Error\>: assertion failed: 12B466: libxpc.dylib + 71820 [2A02E77C-4317-32E2-92FB-E37AF8747B2E]: 0x7d Feb 17 17:26:24 Gemini-Retina Unknown[4477] \<Error\>: Feb 17 17:26:25 Gemini-Retina AdSheet[4477] \<Error\>: Could not successfully update network info during initialization.

then for every time an ad is being requested by the app

Error, no ad received: The operation couldn’t be completed. Application has iAd Network configuration error

I built the app with build v2015.2545 with 64-bit support

in iTunes Connect on the iAds tab it says that live ads are served, but I see that no request is received:

Is this a propagation issue? it’s been 5 days…

the code I use:

local ads = require("ads") local adProvider = "iads" local appID = "com.gemiware.woordflitsenfree" local testMode = false local function adListener(event) local msg = event.response logger:debug("ad event name: " .. event.name) if event.isError then logger:debug("Error, no ad received: " .. msg) ads.show("banner", {testMode = testMode, x=display.screenOriginX / 2, y=display.screenOriginY}) else logger:debug("Ah ha! Got one!") if event.phase ~= nil then logger:debug("ad event phase: " .. event.phase) logger:debug("ad event type: " .. event.type) end logger:debug("ad event message: " .. msg) end end ads.init(adProvider, appID, adListener) local function showAd(event) logger:debug("trying to retrieve add with appId: " .. appID) ads.show("banner", { testMode = testMode, x=display.screenOriginX / 2, y=display.screenOriginY}) end timer.performWithDelay(500, showAd)

Hi @Hendri Thjis,

Can I see how you included the iAds plugin within your build.settings file?

Thanks,

Brent

Most certainly,

plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, },

Hi @Hendri Thjis,

This is hard to diagnose because we don’t have a comparison point where it worked in the past, but perhaps doesn’t work now. Your code looks fine, so it could be a setup issue in iTunes Connect. Have you carefully confirmed that every setting is exactly correct, that the app ID matches, and that there are no other restrictions (localization perhaps) that would be preventing ads from being served?

Thanks,

Brent

Hmm… when I use the code and set test mode to true it works instantly in the simulator and on my iPad and on my iPhone.

The appId matches the bundle id from iTunes Connect: com.gemiware.woordflitsenfree

I’ve only got a dutch version, no english version or other version of the app. Could that be an issue?

for the rest the settings in itunes connect are the following:

Store Information Localizations enc Newsstand App No Prerendered Icon Flag Yes Entitlements WoordFlitsenFree.app/WoordFlitsenFree keychain-access-groups: ( "MYAPPLEID.com.gemiware.woordflitsenfree" ) application-identifier: MYAPPLEID.com.gemiware.woordflitsenfree beta-reports-active: true get-task-allow: false

I dont know what localizations:enc means, someone at stackoverflow reports this as a problem:

http://stackoverflow.com/questions/28242230/ios-app-localization-strange-value-in-itunes-connect

I also see a field called application-identifier that is prefixed with my apple developer id.

Hmm… it might be an Apple issue. When I check the details in iAd, the icon for my app is not shown. 

It is stated that the app receives live ads.

But when I click on the details the supported languages field is empty. Is localization something that is being configured at corona build time? or is this apple only?

Hi Hendri,

Localizations are handled on Apple’s side. We don’t control that aspect of ads. Hopefully you can figure it out… keep me posted.

Take care,

Brent

I understand you don’t control the ad localization settings. But you might set some default values for localization or i18n in the xcode project during the build phase of the app. (there are settings in xcode for localization of the app). Those might result in the localization being off and therefore result in the error. I’ve checked my older app future trains. In that app the localizations value in the app store is English in stead of enc. (it is an english only app).

Sigh…

Asked Apple to look into it. They told me to wait a few more business days and 2 hours later it magically appears to be working…

So on the bright side:

No issues with iAd implementation in Corona! even in the public beta build it is OK

the code I use:

local ads = require("ads") local adProvider = "iads" local appID = "com.gemiware.woordflitsenfree" local testMode = false local function adListener(event) local msg = event.response logger:debug("ad event name: " .. event.name) if event.isError then logger:debug("Error, no ad received: " .. msg) ads.show("banner", {testMode = testMode, x=display.screenOriginX / 2, y=display.screenOriginY}) else logger:debug("Ah ha! Got one!") if event.phase ~= nil then logger:debug("ad event phase: " .. event.phase) logger:debug("ad event type: " .. event.type) end logger:debug("ad event message: " .. msg) end end ads.init(adProvider, appID, adListener) local function showAd(event) logger:debug("trying to retrieve add with appId: " .. appID) ads.show("banner", { testMode = testMode, x=display.screenOriginX / 2, y=display.screenOriginY}) end timer.performWithDelay(500, showAd)

Hi @Hendri Thjis,

Can I see how you included the iAds plugin within your build.settings file?

Thanks,

Brent

Most certainly,

plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, },

Hi @Hendri Thjis,

This is hard to diagnose because we don’t have a comparison point where it worked in the past, but perhaps doesn’t work now. Your code looks fine, so it could be a setup issue in iTunes Connect. Have you carefully confirmed that every setting is exactly correct, that the app ID matches, and that there are no other restrictions (localization perhaps) that would be preventing ads from being served?

Thanks,

Brent

Hmm… when I use the code and set test mode to true it works instantly in the simulator and on my iPad and on my iPhone.

The appId matches the bundle id from iTunes Connect: com.gemiware.woordflitsenfree

I’ve only got a dutch version, no english version or other version of the app. Could that be an issue?

for the rest the settings in itunes connect are the following:

Store Information Localizations enc Newsstand App No Prerendered Icon Flag Yes Entitlements WoordFlitsenFree.app/WoordFlitsenFree keychain-access-groups: ( "MYAPPLEID.com.gemiware.woordflitsenfree" ) application-identifier: MYAPPLEID.com.gemiware.woordflitsenfree beta-reports-active: true get-task-allow: false

I dont know what localizations:enc means, someone at stackoverflow reports this as a problem:

http://stackoverflow.com/questions/28242230/ios-app-localization-strange-value-in-itunes-connect

I also see a field called application-identifier that is prefixed with my apple developer id.

Hmm… it might be an Apple issue. When I check the details in iAd, the icon for my app is not shown. 

It is stated that the app receives live ads.

But when I click on the details the supported languages field is empty. Is localization something that is being configured at corona build time? or is this apple only?

Hi Hendri,

Localizations are handled on Apple’s side. We don’t control that aspect of ads. Hopefully you can figure it out… keep me posted.

Take care,

Brent

I understand you don’t control the ad localization settings. But you might set some default values for localization or i18n in the xcode project during the build phase of the app. (there are settings in xcode for localization of the app). Those might result in the localization being off and therefore result in the error. I’ve checked my older app future trains. In that app the localizations value in the app store is English in stead of enc. (it is an english only app).

Sigh…

Asked Apple to look into it. They told me to wait a few more business days and 2 hours later it magically appears to be working…

So on the bright side:

No issues with iAd implementation in Corona! even in the public beta build it is OK

Exactly the same problem. What did you write to apple?