English 中文(简体)
What to do to fix "no qualified ads found for this request" on iAd?
原标题:

Somehow I got this error message when testing iAd on the device.

"no qualified ads found for this request"

What to do to fix it? Anyone has any idea? On the simulator there is no error, it succeeds to show the "Test Advertisement"

UPDATE:

The real problem here is that the delegate to raise the error IS NOT BEING CALLED, on the simulator it works, and on the iPhone it does not. That is the issue.

More details here:

This function is being called in the Simulator:

- (void)bannerViewDidLoadAd:(ADBannerView *)banner

While this function is being called in the device:

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error

I did enable the iAd in the developer s portal and other apps that I test on the device DO show the Test Advertisement.

最佳回答

This is not really an error to be fixed, but an expected response when no iAd inventory is available. This may be due to many factors, but the most likely one is that there just aren t a lot of ads in the system right now, seeing as how the service only launched six days ago. According to Apple:

If you have dedicated a section of your app for an iAd, it s important to incorporate a banner view delegate that will handle common events, including errors. Having the proper delegate to handle errors maintains the visual experience customers have with ads in your app by preventing a blank banner from being displayed when ads are not available. In addition, if your app displays a blank banner when advertisements are not being displayed, your app will be returned to you by the App Review Team for modification before it can be posted to the App Store.

Apple provides boilerplate code for handling this in the "Working with Banner Views" section of the iAd Programming Guide. See also the discussion around this question.

问题回答

That s an expected error.

The only way to change it is to file bug reports.

This is the error from iTunesConnect when iAd was set without specifying bundleIdentifier. Contact the iTunesConnect team solves the issue.





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签