6

iAd framework is doing my nut. AGAIN!

Please someone help me towards sanity.

Yesterday was working on the simulator, today it isn't. After an hour of raging at it I actually plug in my brain and log the error (iirc this is on the simulator)

Error Domain=ADErrorDomain
Code=3 "The operation couldn’t be completed. Ad inventory unavailable"
UserInfo=0x5a5bb50 { ADInternalErrorCode=3,
NSLocalizedFailureReason=Ad inventory unavailable }

then I try a reboot.

on the simulator:

Error Domain=ADErrorDomain
Code=4 "The operation couldn’t be completed. Application has iAd Network configuration error"
UserInfo=0x5839510 { ADInternalErrorCode=4,
NSLocalizedFailureReason=Application has iAd Network configuration error }

now try on the device:

Err Domain=ADErrorDomain
Code=1 "The operation couldn’t be completed. (ADErrorDomain error 1.)"
UserInfo=0x19c8c0 {}

finally I find something on Google:

http://useyourloaf.com/blog/2010/11/28/ad-inventory-unavailable-with-ios-42.html

This guy is saying it seems to be an issue with >= iOS 4.2.

So I try again using iOS 4.0 iPhone simulator

Yay, I get yet another error code.

Error Domain=ADErrorDomain Code=0 "Invalid data."

Joe DF
  • 5,438
  • 6
  • 41
  • 63
P i
  • 29,020
  • 36
  • 159
  • 267

1 Answers1

3

On your device, go to the Settings app. Tap Developer. Under iAd Developer App Testing, tap Fill Rate. Select the error rate you want to test.

Victor Engel
  • 2,037
  • 2
  • 25
  • 46